/* --- Variables de Identidad de Marca --- */
:root {
    /* Paleta de Colores definida en el Branding */
    --surface-sand: #d1baa0;
    --surface-mauve: #aa9898;
    --surface-taupe: #716767;
    --surface-deep: #121212;
    --accent-plum: #621a77;
    --accent-violet: #721c8d;
    --priority-rouge: #ff0000;
    --text-white: #ffffff;
    
    /* Tipografías */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Estilos Generales --- */
html {
    scroll-behavior: smooth; /* Esto activa el deslizamiento suave en toda la página */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #f9f9f9;
    color: var(--surface-deep);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Barra de Navegación --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--text-white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    height: 60px; 
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--accent-plum);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-violet);
}

/* Menú Hamburguesa (oculto en escritorio) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-plum);
}

/* --- Sección Hero (Recibidor) --- */
.hero {
    position: relative;
    height: 85vh; 
    width: 100%;
    /* Ruta de la imagen de fondo */
    background-image: url('static/Media/Tienda2.jpeg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    padding: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Botón Transparente con Borde */
.btn-primary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Estado Hover del Botón (Ponerse rojo) */
.btn-primary:hover {
    background-color: var(--priority-rouge);
    border-color: var(--priority-rouge);
    color: var(--text-white);
}

/* --- Sección Carrusel 3D (ENCAPSUALDO Y CORREGIDO) --- */
.carousel-section {
    position: relative; 
    padding: 2rem 0 6rem 0; /* Espacio inferior para el botón */
    background-color: #fff;
    text-align: center;
    overflow: hidden; 
}

.section-title {
    font-family: var(--font-heading);
    color: var(--accent-plum);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* La "Jaula" del carrusel para limitar el ancho */
.carousel-box {
    max-width: 1000px; 
    margin: 0 auto;    
    position: relative;
    padding: 0 20px;   
}

.swiper {
    width: 100%;
    padding-top: 20px;
    /* Espacio extra abajo para que quepan las bolitas */
    padding-bottom: 60px; 
}

/* CORRECCIÓN: Bolitas de paginación abajo del todo */
.swiper-pagination {
    bottom: 5px !important; 
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-plum) !important;
}

/* TAMAÑO FORZADO DE LAS TARJETAS */
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px !important;  
    height: 450px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    border-radius: 8px;
    overflow: hidden; 
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Botón Flotante (Estático en la sección) --- */
/* --- Ajuste del botón flotante en móvil (CORREGIDO) --- */
    .floating-cta {
        position: absolute; /* Aseguramos su posición */
        width: auto; /* Ancho automático basado en el contenido */
        max-width: 90%; /* PERO nunca más del 90% de la pantalla */
        
        /* Centrado horizontal absoluto */
        left: 50%;
        transform: translateX(-50%);
        
        bottom: 15px;
        padding: 10px 15px; /* Un poco más de padding vertical */
        
        /* Flexbox para centrar el contenido interno */
        display: flex;
        align-items: center;
        justify-content: center; /* Centra texto e icono horizontalmente */
        gap: 10px; /* Espacio entre texto e icono */
        
        white-space: normal; /* IMPORTANTE: Permite que el texto haga salto de línea si es necesario */
        text-align: center; /* Asegura que si hay 2 líneas, estén centradas */
    }
    
    /* Ajuste del texto interno para que se vea bien si se divide */
    .floating-cta .cta-text {
        font-size: 0.8rem;
        line-height: 1.2;
        flex: 1; /* Deja que el texto ocupe el espacio disponible */
    }

    .floating-cta:hover {
        /* Mantenemos el centrado y solo añadimos el pequeño salto */
        transform: translateX(-50%) translateY(-2px);
    }

.cta-text {
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: left;
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 6px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background-color: var(--surface-taupe);
    color: var(--text-white);
    padding: 3rem 5% 1rem;
    text-align: center;
}

/* Logo del footer oculto */
.footer-logo {
    display: none; 
}

.footer-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--surface-sand);
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--surface-sand);
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    border-bottom: 1px solid var(--priority-rouge);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #ccc;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* --- Responsividad (Mobile) --- */
/* Unificamos todas las reglas móviles aquí */
@media (max-width: 768px) {
    /* 1. BLINDAJE CONTRA DESBORDAMIENTO HORIZONTAL */
    body, html {
        overflow-x: hidden;
    }
    
    /* Menú Hamburguesa */
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Menú lateral */
    .nav-links {
        position: fixed; left: auto; right: -100%; top: 70px; gap: 0;
        flex-direction: column; background-color: var(--text-white);
        width: 100%; text-align: center; transition: 0.3s ease-in-out;
        box-shadow: -5px 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1.5rem 0; }

    /* Tipografía Hero */
    .hero-content h1 { font-size: 2.5rem; }
    
    /* 2. CORRECCIÓN ESTRUCTURAL DEL CARRUSEL EN MÓVIL */
    .carousel-section {
        /* Asegura que la sección no sea más ancha que la pantalla */
        width: 100%;
        overflow-x: hidden;
    }

    .carousel-box {
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* Corta cualquier exceso lateral */
    }

    /* Tamaño fijo seguro para móviles */
    .swiper-slide {
        width: 250px !important; 
        height: 375px !important;
    }

    /* Ajuste del botón flotante en móvil */
    .floating-cta {
        width: auto; right: 50%; transform: translateX(50%);
        bottom: 15px; white-space: nowrap;
    }
    .floating-cta:hover { transform: translateX(50%) translateY(-2px); }
}