@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

/* --- SISTEMA DE DISEÑO POKÉMON (Kanto Region Style) --- */
:root {
    --primary: #EE1515;    /* Rojo Pokéball */
    --secondary: #3D7DCA;  /* Azul Pokémon */
    --accent: #FFCB05;     /* Amarillo Pokémon */
    --dark: #212121;       /* Negro Carbón */
    --light: #ffffff;
    --gray-bg: #f0f0f0;
    --text-main: #333333;
    --shadow: 0 4px 0 rgba(0,0,0,0.2);
    --font-main: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--gray-bg) !important;
    color: var(--text-main);
    overflow-x: hidden;
    font-size: 16px;
}

/* Animaciones suaves */
.main-content {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NAVBAR ESTILO KANTO --- */
.navbar-roomx {
    background: var(--light) !important;
    border-bottom: 4px solid var(--primary);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar-roomx .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark) !important;
}

.navbar-roomx .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0 4px;
    padding: 0.35rem 0.5rem !important;
    position: relative;
    white-space: nowrap;
}

.navbar-roomx .navbar-brand span {
    font-size: 1.15rem !important;
}

.navbar-roomx .navbar-brand img {
    height: 40px !important;
}

@media (max-width: 991.98px) {
    .navbar-roomx .search-container {
        width: 100% !important;
        margin: 0.75rem 0 !important;
    }
}

/* --- CARRUSEL HOME --- */
.carousel-home-item {
    height: 320px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.carousel-home-item .carousel-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.carousel-home-item .carousel-desc {
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-home-item .carousel-product-img {
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

@media (max-width: 767.98px) {
    .carousel-home-item {
        height: 300px;
    }

    .carousel-home-item .carousel-product-img {
        max-height: 160px;
    }
}

.navbar-roomx .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}

.navbar-roomx .nav-link:hover::after, 
.navbar-roomx .nav-link.active::after {
    width: 100%;
}

/* --- CARDS DE PRODUCTO --- */
.product-card {
    background: var(--light);
    border: 4px solid var(--dark);
    border-radius: 0;
    transition: all 0.3s;
    overflow: hidden;
    height: 100%;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-card .card-img-top {
    padding: 15px;
    border-radius: 25px;
    transition: transform 0.5s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-price {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1rem;
}

/* --- BOTONES --- */
.btn-room {
    background: var(--accent);
    color: var(--dark);
    border: 4px solid var(--dark);
    border-radius: 0;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-weight: 700;
    transition: all 0.2s;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--dark);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.btn-room:hover {
    background: var(--primary);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--dark);
}

/* --- UTILS --- */
.text-primary-room { color: var(--primary); }
.text-secondary-room { color: var(--secondary); }
.bg-dark-room { background-color: var(--dark); color: white; }

/* --- POKÉMON CONFIRMATION PAGE --- */
.pokemon-confirmation {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
}

.pokemon-confirmation h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.pokemon-confirmation .pokemon-subtitle {
    font-size: 1rem;
}

.pokemon-header span {
    font-size: 0.95rem;
    font-weight: 700;
}

.pokemon-card {
    border: 4px solid var(--dark);
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--dark);
    background: white;
}

.pokemon-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-bottom: 4px solid var(--dark);
    text-transform: uppercase;
}

.pokemon-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 6px 12px;
    border: 2px solid var(--dark);
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pokemon-table {
    border: 2px solid var(--dark);
}

.pokemon-table th {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}

.pokemon-table td {
    border: 2px solid var(--dark);
    font-size: 0.95rem;
}

.pokemon-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    border: 4px solid var(--dark);
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 var(--dark);
}

.pokemon-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--dark);
    color: var(--dark);
}

.pokemon-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--dark);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.pokeball-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom, #EE1515 50%, white 50%);
    border-radius: 50%;
    border: 3px solid #212121;
    position: relative;
    animation: bounce 2s infinite;
    vertical-align: middle;
}

.pokeball-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border: 3px solid #212121;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pokeball-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #212121;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* --- POKÉDEX FRAME --- */
.pokedex-frame {
    background: #e0e0e0;
    border: 12px solid var(--primary);
    border-radius: 20px 20px 0 20px;
    position: relative;
    box-shadow: 20px 20px 0 var(--dark);
    margin-top: 2rem;
    padding: 30px;
}

.pokedex-frame::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50px;
    width: 40px;
    height: 40px;
    background: #3498db;
    border: 5px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.pokedex-screen {
    background: #ffffff;
    border: 8px solid var(--dark);
    border-radius: 5px;
    padding: 20px;
    min-height: 400px;
}

/* --- REGLAS RESPONSIVAS PREMIUM PARA MÓVILES --- */
@media (max-width: 767.98px) {
    /* Centrado de títulos y textos descriptivos */
    h1, h2, .h1, .h2 {
        text-align: center !important;
    }
    
    .section-title, .page-header-title {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Carrusel de Inicio en Móviles */
    .carousel-home-item {
        height: auto !important;
        min-height: 250px;
        padding: 2rem 1rem !important;
    }

    .carousel-home-item .carousel-title {
        font-size: 1.5rem !important;
        text-align: center !important;
    }

    .carousel-home-item .carousel-desc {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .carousel-home-item .btn-room {
        display: block;
        margin: 0.5rem auto 0 auto !important;
        width: fit-content;
    }

    /* Cards de Producto en Móvil */
    .product-card {
        margin-bottom: 1rem;
        text-align: center !important;
    }

    .product-card .card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
    }

    .product-card .btn-room, 
    .product-card .btn {
        width: 100% !important;
        margin-top: 0.5rem;
    }

    /* Formularios y Tarjetas de Login/Registro/Recuperación */
    .card.shadow {
        border-radius: 12px;
    }

    .card-footer {
        text-align: center !important;
    }

    /* Ajustes del Marco Pokédex para pantallas pequeñas */
    .pokedex-frame {
        padding: 15px !important;
        border-width: 6px !important;
        box-shadow: 6px 6px 0 var(--dark) !important;
        border-radius: 14px !important;
        margin-top: 1rem !important;
    }

    .pokedex-frame::before {
        top: -16px !important;
        left: 20px !important;
        width: 28px !important;
        height: 28px !important;
        border-width: 3px !important;
    }

    .pokedex-screen {
        padding: 12px !important;
        border-width: 4px !important;
        min-height: auto !important;
    }

    /* Filtros de catálogo en móvil */
    .card form.row {
        text-align: center !important;
    }

    .card form.row label {
        text-align: center !important;
        display: block;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Centrado de alertas y notificaciones */
    .alert {
        text-align: center !important;
        font-size: 0.9rem;
    }

    /* Tablas responsivas en móvil */
    .table-responsive {
        border: 0;
    }

    .table th, .table td {
        text-align: center !important;
        vertical-align: middle;
    }
}
