﻿/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    --brand: #8a1538;        
    --brand-dark: #5e0e26;   
    --gold: #f1b434;         
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --bg-body: #4a0e22;      
    --bg-card: #2a0812;      
    --border-color: rgba(255,255,255,0.1);
    --success-green: #2ecc71; 
}

/* ==========================================================================
   BASE Y RESET
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-white); 
    overflow-x: hidden; 
    line-height: 1.6; 
}
body.no-scroll { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section-padding { padding: 80px 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   TIPOGRAFÍA Y TÍTULOS
   ========================================================================== */
.section-title { font-size: 2.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.5rem; text-align: center; }
.section-subtitle { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; display: block; text-align: center; margin-bottom: 40px; }
.big-services-title { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 1.8rem; letter-spacing: 2px; display: block; text-align: center; margin-bottom: 60px; padding-top: 20px; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn { display: inline-block; padding: 15px 35px; background-color: var(--gold); color: #2a0812; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 50px; border: none; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s; width: fit-content; }
.btn:hover { transform: translateY(-3px); background-color: white; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.btn-outline { display: inline-block; padding: 13px 35px; background-color: transparent; color: var(--text-gray); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 50px; border: 2px solid var(--border-color); cursor: pointer; transition: 0.3s; width: fit-content; }
.btn-outline:hover { border-color: white; color: white; background: rgba(255,255,255,0.05); }

/* ==========================================================================
   MODALES Y BANNERS (Edad y Cookies)
   ========================================================================== */
.overlay-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.overlay-modal.active { opacity: 1; pointer-events: auto; }
.age-modal { background: var(--bg-card); padding: 50px; border-radius: 20px; border: 1px solid var(--gold); text-align: center; max-width: 500px; width: 90%; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: 0.5s ease; }
.overlay-modal.active .age-modal { transform: translateY(0); }
.age-modal h2 { font-size: 2rem; margin-bottom: 15px; color: var(--gold); text-transform: uppercase; }
.age-modal p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px; }
.age-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.age-buttons .btn, .age-buttons .btn-outline { width: 100%; max-width: 200px; }

.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: rgba(42, 8, 18, 0.95); padding: 20px 40px; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); z-index: 9998; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); backdrop-filter: blur(10px); transition: bottom 0.5s ease; }
.cookie-banner.active { bottom: 0; }
.cookie-text { font-size: 0.95rem; color: var(--text-gray); max-width: 800px; line-height: 1.5; }
.cookie-text a { color: var(--gold); text-decoration: underline; font-weight: bold; margin-left: 5px;}
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; margin-left: 20px; }
.cookie-btn { padding: 10px 20px; font-weight: bold; border-radius: 5px; cursor: pointer; transition: 0.3s; font-family: inherit; font-size: 0.9rem; text-transform: uppercase; border: none; }
.cookie-accept { background: var(--gold); color: var(--bg-card); }
.cookie-accept:hover { background: white; }
.cookie-reject { background: transparent; color: var(--text-gray); border: 1px solid var(--text-gray); }
.cookie-reject:hover { background: rgba(255,255,255,0.1); color: white; }

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; background-color: var(--bg-body); border-bottom: 1px solid transparent; box-shadow: none; -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%); mask-image: linear-gradient(to bottom, black 90%, transparent 100%); transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, mask-image 0.3s ease, -webkit-mask-image 0.3s ease; }
.header.scrolled { padding: 15px 0; -webkit-mask-image: none; mask-image: none; background-color: rgba(74, 14, 34, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-left: 6vw; padding-right: 6vw; }
.brand-wrapper { display: flex; align-items: center; gap: 15px; }
.logo { height: 42px; width: auto; border-radius: 4px; transition: 0.3s; }
.brand-text { font-weight: 900; font-size: 1.2rem; color: white; text-transform: uppercase; letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--gold); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--gold); }
.lang-switch { display: flex; gap: 10px; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 20px; margin-left: 10px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white; padding: 2px 6px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-weight: bold; transition: 0.3s; }
.lang-btn.active, .lang-btn:hover { background: var(--gold); color: var(--bg-body); border-color: var(--gold); }
.menu-toggle { display: none; font-size: 1.8rem; background: none; border: none; color: white; cursor: pointer; }

/* ==========================================================================
   HERO E IMÁGENES PRINCIPALES
   ========================================================================== */
.hero { min-height: 90vh; display: flex; align-items: center; position: relative; padding-top: 80px; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 45% 55%; width: 100%; height: 100%; min-height: 90vh; }
.hero-layout-cava { grid-template-columns: 58% 42%; } /* Específico de cava.html */
.hero-content { padding: 0 50px 0 6vw; display: flex; flex-direction: column; justify-content: center; z-index: 5; }
.eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; font-size: 0.9rem; }
.hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 25px; color: white; }
.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 35px; max-width: 500px; }
.hero-image-wrapper { position: relative; width: 100%; height: 100%; }
.hero-image-wrapper::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 50%; background: linear-gradient(to right, var(--bg-body) 0%, transparent 100%); z-index: 2; pointer-events: none;}
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; }

/* Especiales para el slideshow de la Cava */
.hero-layout-cava .hero-image-wrapper::after { width: 35%; }
.hero-layout-cava .hero-image-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10%; background: linear-gradient(to bottom, var(--bg-body) 0%, transparent 100%); z-index: 2; pointer-events: none; }
.fade-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 10%; background: linear-gradient(to top, var(--bg-body) 0%, transparent 100%); z-index: 2; pointer-events: none; }
.cava-slideshow img { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1.5s ease-in-out; }
.cava-slideshow img.active { opacity: 1; }

/* ==========================================================================
   SECCIONES GENERALES (Nosotros, Servicios)
   ========================================================================== */
.stripe { position: relative; overflow: hidden; padding: 15px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: center; color: var(--text-gray); background: linear-gradient(90deg, rgba(138,21,56,0.3), rgba(138,21,56,0.3)); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.stripe::before { content:""; position:absolute; top:0; bottom:0; left:0; width:40%; background:radial-gradient(farthest-side at 0 50%, rgba(241,180,52,0.15), transparent); pointer-events:none; }
.stripe::after { content:""; position:absolute; top:0; bottom:0; right:0; width:40%; background:radial-gradient(farthest-side at 100% 50%, rgba(241,180,52,0.15), transparent); pointer-events:none; }

.about-section { background-color: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { color: var(--text-gray); font-size: 1.15rem; line-height: 1.8; margin-bottom: 20px; }
.about-image { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%); mask-image: linear-gradient(to right, black 85%, transparent 100%); }
.about-image img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.about-image:hover img { transform: scale(1.05); }

.services-section { display: flex; flex-direction: column; align-items: center; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; width: 100%; }
.service-row:nth-of-type(even) .service-header { order: 2; }
.service-row:nth-of-type(even) .service-slideshow { order: 1; }
.service-header { text-align: center; }
.service-header h3 { font-size: 2.2rem; color: white; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.service-header p { color: var(--gold); font-size: 1.15rem; line-height: 1.6; }
.gold-divider { height: 1px; width: 60%; margin: 0 auto; border: none; background: radial-gradient(circle, var(--gold) 0%, transparent 100%); opacity: 0.4; }

.service-slideshow { display: grid; width: 100%; max-width: 400px; margin: 0 auto; align-items: center; position: relative; }
.service-slideshow img { grid-area: 1 / 1; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; transition: opacity 1.5s ease-in-out; }
.service-slideshow img.active { opacity: 1; z-index: 2; }

/* ==========================================================================
   COMPONENTES ESPECÍFICOS DE LA CAVA
   ========================================================================== */
.tech-banner { background: var(--brand-dark); padding: 40px; border-radius: 15px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; border-left: 5px solid var(--gold); }
.tech-item { text-align: center; }
.tech-item span { display: block; color: var(--gold); font-size: 2rem; font-weight: 900; }
.tech-item label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

.origin-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 50px; }
.origin-card { background: var(--bg-card); padding: 40px 30px; border-radius: 12px; border: 1px solid var(--border-color); transition: 0.3s; flex: 1 1 calc(33.333% - 30px); min-width: 320px; max-width: 450px; display: flex; flex-direction: column; }
.origin-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.origin-card h3 { color: var(--gold); margin-bottom: 20px; font-size: 1.5rem; display: flex; align-items: center; gap: 15px; }
.origin-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.7; }
.flag-icon { width: 45px; height: 32px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(241, 180, 52, 0.4); box-shadow: 0 4px 8px rgba(0,0,0,0.5); flex-shrink: 0; }
.multi-flag { position: relative; width: 45px; height: 32px; flex-shrink: 0; }
.multi-flag img { position: absolute; width: 32px; height: 22px; object-fit: cover; border-radius: 3px; border: 1px solid rgba(241, 180, 52, 0.6); box-shadow: 0 2px 6px rgba(0,0,0,0.6); transition: 0.3s; }
.multi-flag .flag-1 { top: 0; left: 0; z-index: 1; }
.multi-flag .flag-2 { bottom: 0; right: 0; z-index: 2; }
.origin-card:hover .multi-flag .flag-1 { transform: translate(-3px, -3px); }
.origin-card:hover .multi-flag .flag-2 { transform: translate(3px, 3px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
#faq { background-color: #22060e; border-top: 1px solid rgba(241, 180, 52, 0.2); box-shadow: inset 0 20px 40px rgba(0,0,0,0.3); }
.faq-grid { max-width: 800px; margin: 0 auto; display: grid; gap: 15px; }
.faq-item { background: rgba(255,255,255,0.08); border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; }
.faq-item:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); transform: translateX(5px); }
.faq-question { width: 100%; padding: 20px; text-align: left; background: none; border: none; color: white; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { color: var(--gold); }
.faq-question::after { content: '+'; color: var(--gold); font-size: 1.5rem; transition: 0.3s; }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--text-gray); }
.faq-answer p { padding: 0 20px 20px 20px; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); }
.contact-content { padding: 50px; position: relative; }
.contact-intro { color: var(--text-gray); font-size: 1rem; margin-bottom: 30px; line-height: 1.6; }
.info-row { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.icon { width: 35px; text-align: center; font-size: 1.5rem; line-height: 1.2; flex-shrink: 0; margin-top: 3px; }
.info-text { display: flex; flex-direction: row; align-items: baseline; flex-wrap: wrap; }
.info-text strong { color: var(--gold); display: inline-block; width: 100px; flex-shrink: 0; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: white; border-radius: 6px; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; }
.privacy-check { display: flex; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-gray); text-align: left; }
.privacy-check input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; cursor: pointer; }
.privacy-check label { cursor: pointer; line-height: 1.4; display: inline-block; }
.privacy-check label a { color: var(--gold); text-decoration: underline; font-weight: 600; }
.privacy-check label a:hover { color: white; }
.map-wrapper { min-height: 400px; position: relative; }
.map-wrapper iframe { position: absolute; width: 100%; height: 100%; border: 0; }
#successMessage { display: none; text-align: center; padding: 30px 20px; background: rgba(46, 204, 113, 0.1); border: 1px solid var(--success-green); border-radius: 8px; color: var(--success-green); font-weight: 700; margin-top: 20px; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal-page h1 { font-size:2.5rem; margin-bottom:30px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; color: var(--gold); }
.legal-page h2 { color:var(--gold); margin-top:40px; margin-bottom:15px; font-size: 1.3rem; }
.legal-page p, .legal-page li { color:var(--text-gray); font-size: 1rem; margin-bottom: 15px; }
.legal-page ul { margin-bottom: 20px; }
.legal-page strong { color: white; }
.legal-page a { color:var(--gold); text-decoration:none; }
.legal-card { background:var(--bg-card); padding:50px; border-radius:16px; border:1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.back-btn { display: inline-block; margin-bottom: 30px; color: rgba(255,255,255,0.6); text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
.back-btn:hover { color: var(--gold); transform: translateX(-5px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background-color: #1a0408; color: #a0a0a0; padding: 60px 0 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--gold); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col p { line-height: 1.6; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--gold); transform: translateX(5px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.footer-contact span { color: var(--gold); font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; text-align: center; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.legal-links a { margin-left: 15px; color: #888; }
.legal-links a:hover { color: var(--gold); }

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .nav-container { padding: 0 20px; }
    
    /* Hero Index */
    .hero-layout { grid-template-columns: 1fr; grid-template-rows: auto 300px; }
    .hero-content { padding: 50px 6vw; text-align: center; }
    .hero-image-wrapper { height: 300px; }
    .hero-image-wrapper::after { width: 100%; height: 50%; background: linear-gradient(to bottom, var(--bg-body) 0%, transparent 100%); }
    
    /* Hero Cava */
    .hero-layout-cava { grid-template-rows: auto 500px; }
    .hero-layout-cava .hero-image-wrapper { height: 500px; }
    .hero-layout-cava .hero-image-wrapper::after { width: 100%; height: 30%; background: linear-gradient(to bottom, var(--bg-body) 0%, transparent 100%); }

    /* Componentes */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-text { text-align: center; order: -1; } 
    .about-image { -webkit-mask-image: none; mask-image: none; }
    .service-row { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
    .service-row:nth-of-type(even) .service-header { order: 1; }
    .service-row:nth-of-type(even) .service-slideshow { order: 2; }
    .service-header { text-align: center; }
    .contact-wrapper { display: flex !important; flex-direction: column !important; }
    .map-wrapper { min-height: 400px !important; width: 100% !important; display: block !important; }
    .service-header h3 { font-size: 1.8rem; }
    .big-services-title { font-size: 1.4rem; margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .header.menu-open { background-color: var(--brand-dark); backdrop-filter: none; -webkit-backdrop-filter: none; mask-image: none; -webkit-mask-image: none; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--brand-dark); flex-direction: column; justify-content: center; transition: 0.4s; z-index: 1001; box-shadow: -5px 0 20px rgba(0,0,0,0.5); }
    .nav-links.open { right: 0; }
    .menu-toggle { display: block; z-index: 1002; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-links a { margin: 0 10px; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 15px; padding: 20px 15px; }
    .cookie-buttons { margin-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .info-text { flex-direction: column; }
    .info-text strong { width: auto; margin-bottom: 2px; }
    .contact-content { padding: 30px; }
    .legal-card { padding: 30px 20px; }
}