/* --- RESET GENERAL DE ESTILOS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* PALETA DE COLORES RE-DISEÑADA "MELO BOUTIQUE LUXE" */
:root {
    --color-principal: #ffb7c5;     /* Rosa Champaña Suave */
    --color-secundario: #d4af37;    /* Oro Elegante (Nude/Muted gold) */
    --color-oscuro: #0d0d0d;        /* Negro Absoluto Minimalista */
    --color-gris-tarjeta: #1a1a1a;  /* Gris Premium Elegante */
    --color-blanco: #ffffff;
    --color-gris-texto: #cccccc;    /* Gris Suave */
    --color-whatsapp: #25d366;
}

body {
    background-color: var(--color-oscuro);
    color: var(--color-blanco);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- MENÚ DE NAVEGACIÓN BOUTIQUE --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 183, 197, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 300; /* Estilo tipográfico más elegante y estilizado */
    letter-spacing: 4px;
    color: var(--color-blanco);
    text-transform: uppercase;
}

.logo i {
    color: var(--color-principal);
    margin-right: 8px;
    font-size: 1.2rem;
}

.navbar nav a {
    color: var(--color-blanco);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar nav a:hover {
    color: var(--color-principal);
    text-shadow: 0 0 5px rgba(255, 183, 197, 0.4);
}

/* --- AJUSTE DE SECCIONES INDEPENDIENTES (1 SECCIÓN POR PANTALLA) --- */
section {
    width: 100vw;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 50%, var(--color-principal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-principal), var(--color-secundario));
    margin: 15px auto 0 auto;
}

/* --- SECCIÓN INICIO (HERO PREMIUM) --- */
.hero-section {
    background-image: linear-gradient(rgba(13, 13, 13, 0.75), rgba(13, 13, 13, 0.9)), 
                      url('imagenfondo/fondo.jpg'); /* Te sugiero usar aquí una imagen estética de modas */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--color-principal);
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.hero-content p {
    max-width: 650px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: var(--color-gris-texto);
    line-height: 1.8;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 15px 45px;
    background: transparent;
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    border: 1px solid var(--color-principal);
    border-radius: 0px; /* Bordes rectos para un look más arquitectónico de alta costura */
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--color-principal);
    color: var(--color-oscuro);
    box-shadow: 0 10px 25px rgba(255, 183, 197, 0.25);
}

/* --- SECCIÓN NOSOTROS --- */
.about-section {
    background-color: #121212;
    padding: 60px 20px; /* Ajusta según tus necesidades */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide en dos columnas iguales */
    gap: 40px; /* Espacio entre imagen y texto */
    align-items: center; /* Centra verticalmente */
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Opcional: bordes redondeados */
    display: block;
}

.about-text {
    text-align: left; /* Alinea el texto a la izquierda para mejor lectura junto a la imagen */
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--color-secundario);
    font-weight: 300;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--color-gris-texto);
    margin-bottom: 25px;
    font-weight: 300;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* En móviles, pone la imagen sobre el texto */
    }
}

/* --- CATÁLOGO DE MODA INTERACTIVO (CSS PURO) --- */
.gallery {
    background-color: var(--color-oscuro);
}

.gallery-input-hidden {
    display: none !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    width: 100%;
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    width: 100%;
    height: 380px; /* Un poco más estilizado hacia arriba */
    perspective: 1500px;
}

/* EFECTO GIRO 3D MINIMALISTA */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0px;
    overflow: hidden;
}

/* CARA FRONTAL */
.card-front {
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-color: var(--color-gris-tarjeta);
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(90%) contrast(105%);
    transition: transform 0.5s ease;
}

.gallery-item:hover .card-image {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(13, 13, 13, 0.95));
    padding: 30px 15px;
    text-align: center;
}

.gallery-info h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-blanco);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CARA TRASERA */
.card-back {
    transform: rotateY(180deg);
    background-color: var(--color-gris-tarjeta);
    border: 1px solid var(--color-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 1;
}

.card-back-content {
    text-align: center;
    width: 100%;
}

.card-back-content h3 {
    color: var(--color-principal);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

.card-back-content p {
    font-size: 0.95rem;
    color: var(--color-gris-texto);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-gallery-trigger {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--color-blanco);
    border: 1px solid var(--color-principal);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-gallery-trigger:hover {
    background-color: var(--color-principal);
    color: var(--color-oscuro);
}

/* --- SUB-GALERÍAS EXPANDIBLES --- */
.sub-gallery-wrapper {
    display: none;
    width: 100%;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sub-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.sub-gallery-header h3 {
    font-size: 1.4rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-principal);
}

.btn-back {
    padding: 10px 24px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-blanco);
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: var(--color-blanco);
    color: var(--color-oscuro);
}

/* CUADRÍCULA DE PRODUCTOS */
.expanded-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

.product-card {
    background-color: var(--color-gris-tarjeta);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.product-img-box {
    width: 100%;
    aspect-ratio: 3 / 4; /* Proporción vertical clásica de fotografía de modas */
    overflow: hidden;
    background-color: #0d0d0d;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 183, 197, 0.4);
}

.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

/* LÓGICA DE ACTIVACIÓN CON PURE CSS */
#tab-home:checked ~ .main-view { display: grid; }
#tab-urban:checked ~ .main-view,
#tab-formal:checked ~ .main-view,
#tab-accesorios:checked ~ .main-view,
#tab-calzado:checked ~ .main-view { display: none; }

#tab-urban:checked ~ .view-urban { display: block; }
#tab-formal:checked ~ .view-formal { display: block; }
#tab-accesorios:checked ~ .view-accesorios { display: block; }
#tab-calzado:checked ~ .view-calzado { display: block; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CONTACTO COMERCIAL BOUTIQUE --- */
.contact-section {
    background-color: #121212;
    position: relative;
}

.contact-sub {
    text-align: center;
    color: var(--color-gris-texto);
    margin-bottom: 45px;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.contact-box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.contact-info {
    background-color: var(--color-gris-tarjeta);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    border: 1px solid rgba(255, 183, 197, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.contact-icon {
    font-size: 2rem;
    color: var(--color-principal);
    margin-bottom: 20px;
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-info p {
    color: var(--color-gris-texto);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

.btn-whatsapp-section {
    display: inline-block;
    background-color: var(--color-whatsapp);
    color: var(--color-blanco);
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-whatsapp-section:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.social-links p {
    margin-bottom: 10px !important;
}

.social-links a {
    color: var(--color-gris-texto);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-principal); /* Cambia al color principal al pasar el mouse */
}

/* --- FOOTER ADAPTADO --- */
.horizontal-footer {
    width: 100%;
    background-color: var(--color-oscuro);
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.01);
    margin-top: 60px;
}

.motivation-phrase {
    font-size: 1rem;
    color: var(--color-principal);
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* --- BOTÓN FLOTANTE COMERCIAL --- */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    section {
        padding-top: 140px;
    }
    section h2 {
        font-size: 2rem;
    }
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 12px;
    }
    .navbar nav a {
        margin: 0 10px;
        font-size: 0.75rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    .expanded-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .contact-box {
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        width: 100%;
    }
}

/* ==========================================================================
   HERO / INICIO - CON FONDO
   ========================================================================== */
#inicio {
    /* Fondo con imagen y un degradado oscuro encima para que el texto sea legible */
    background-image: linear-gradient(rgba(10, 11, 16, 0.8), rgba(10, 11, 16, 0.8)), 
                      url('imagenesfondo/melonboutique.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Esto crea un efecto parallax elegante al hacer scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

