/* --- VARIABLES Y RESET --- */
:root {
    /* Paleta de Colores Premium */
    --primary: #c08497;       /* Rosa Viejo elegante */
    --primary-dark: #a06375;  /* Versión oscura para hover */
    --text-dark: #2c2c2c;     /* Gris muy oscuro */
    --text-light: #666666;    /* Gris medio */
    --bg-light: #f9f9f9;
    --white: #ffffff;
    
    /* Footer Colores Específicos */
    --footer-bg: #121212;
    --footer-text: #aeaeae;

    /* Fuentes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* Reset Global (Solo una vez) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- HEADER "GLASSMORPHISM" --- */
header {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* --- LOGO TIPOGRÁFICO --- */
.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: capitalize;
    position: relative;
    transition: color 0.3s ease;
}

.logo-accent {
    color: var(--primary);
    font-size: 2.5rem;
    line-height: 0;
}

.logo-text:hover { color: var(--primary); }
.logo-text:hover .logo-accent { color: var(--text-dark); }

@media (max-width: 768px) {
    .logo-text { font-size: 1.8rem; }
}

/* --- NAV --- */
nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 30px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

/* --- BANNER CINEMÁTICO --- */
.main-img {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), 
                url(img/banner.webp) no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.banner-content {
    max-width: 800px;
    padding: 50px;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.banner-content h1, .banner-content .subtitle {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.banner-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.1;
}

.banner-content h1 span {
    font-style: italic;
    color: var(--primary);
}

.banner-content .subtitle {
    font-size: 1.2rem;
    margin: 20px 0 40px 0;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* BOTÓN PREMIUM */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 2px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border: 1px solid var(--primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* --- SECCIONES GENERALES --- */
section { padding: 80px 20px; }

h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 400;
}

/* --- PRODUCTOS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: transparent;
    border: none;
    text-align: center;
    transition: transform 0.4s ease;
}

.product-card:hover { transform: translateY(-10px); }

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 10px 0 5px;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- TESTIMONIOS --- */
.testimonials { background-color: var(--white); }

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    padding: 40px;
    flex: 1 1 300px;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 80px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 20px;
}

.testimonial-card p {
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #444;
}

.testimonial-card h4 {
    margin-top: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
}

.stars {
    color: #d4af37;
    font-size: 14px;
    letter-spacing: 3px;
}

/* --- GALERÍA --- */
.gallery-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover img { transform: scale(1.15); }

.gallery-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .overlay { opacity: 1; }

.gallery-card .overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    border: 1px solid var(--white);
    padding: 10px 25px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
}

/* --- SOBRE NOSOTROS --- */
.about-section {
    background-color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.text-container {
    max-width: 700px;
    margin: 0 auto;
}

.text-container p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 30px;
}

.text-container strong {
    color: var(--primary);
    font-weight: 700;
}

/* --- CONTACTO --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto 80px auto;
    background: #fff;
    padding: 50px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: -10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #fcfcfc;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    border-radius: 4px; /* Un poco de radio para suavizar */
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

.btn-envio {
    margin-top: 10px;
    padding: 18px;
    background-color: var(--text-dark);
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-envio:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* =========================================
   ESTILOS DEL FOOTER (INTEGRADO Y LIMPIO)
   ========================================= */

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    font-size: 0.95rem; /* Ligeramente más grande */
}

/* Contenedor footer */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MAQUETACIÓN GRID */
.footer-grid {
    display: grid;
    /* Grid responsive automático */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 50px;
    margin-bottom: 60px;
}

/* Títulos del Footer */
.footer-brand {
    font-family: var(--font-heading); /* Usa la fuente Playfair */
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Subtítulos (Explorar, Contacto) */
.footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Texto general del footer */
.footer-text {
    line-height: 1.8;
    color: #aeaeae;
    margin-bottom: 1.5rem;
}

/* Listas */
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }

/* Enlaces del Footer */
.footer a {
    color: #aeaeae;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    padding-left: 5px; /* Efecto sutil de movimiento */
}

/* Iconos de contacto */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Iconos Sociales */
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* Estilo para los iconos si usas una librería como Boxicons */
.social-icons i {
    font-size: 1.5rem;
    color: var(--white);
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

.social-icons i:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Formulario Newsletter */
.newsletter-form {
    display: flex;
    gap: 0; /* Pegados */
}

.newsletter-form input {
    padding: 12px;
    width: 100%;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #fff;
    border-radius: 4px 0 0 4px; /* Solo redondeado a la izquierda */
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--white);
    color: #000;
    border: none;
    border-radius: 0 4px 4px 0; /* Solo redondeado a la derecha */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Parte inferior (Copyright) */
.footer-bottom {
    border-top: 1px solid #252525;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #666;
}

.legal-links {
    display: flex;
    gap: 25px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .banner-content h1 { font-size: 2.8rem; }
    header { padding: 0 20px; flex-direction: column; height: auto; padding-bottom: 20px;}
    nav { margin-top: 15px; }
    nav a { margin: 0 10px; font-size: 12px; }
    .product-grid { padding: 0 20px; }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   BOTONES FLOTANTES (WHATSAPP Y SCROLL)
   ========================================= */

.btn-flotante {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Círculo perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000; /* Siempre encima de todo */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Para quitar subrayado del link */
}

/* Efecto Hover general */
.btn-flotante:hover {
    transform: translateY(-5px); /* Se eleva un poco */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* --- ESTILO WHATSAPP --- */
.btn-whatsapp {
    bottom: 20px; /* Pegado abajo */
    background-color: #25D366; /* Verde oficial de WhatsApp */
}

.btn-whatsapp:hover {
    background-color: #1ebe57; /* Un poco más oscuro al hover */
}

/* --- ESTILO SCROLL UP --- */
.btn-scroll {
    bottom: 80px; /* 80px arriba para no tapar al de WhatsApp */
    background-color: var(--text-dark); /* Usamos tu gris oscuro elegante */
    opacity: 0; /* Invisible al principio */
    visibility: hidden;
    transform: translateY(20px); /* Empieza un poco abajo */
}

.btn-scroll:hover {
    background-color: var(--primary); /* Se pone rosa al pasar el mouse */
}

/* Clase que agrega JS para mostrar el botón */
.btn-scroll.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}