:root {
    --primary-color: #265a85;
    --secondary-color: #817f80;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f9fbfd; 
    --white: #ffffff;
    --dark-bg: #0f171e;
    --font-title: 'Aclonica', sans-serif;
    --font-text: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* RESET Y BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-text); color: var(--text-dark); background-color: var(--white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, .font-title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* TEXTURAS */
.texture-gradient {
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden; 
}
.texture-gradient::before, .texture-gradient::after {
    content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(100px); z-index: 0; opacity: 0.3; pointer-events: none;
}
.texture-gradient::before { top: -200px; left: -200px; background: rgba(38, 90, 133, 0.3); }
.texture-gradient::after { bottom: -200px; right: -200px; background: rgba(129, 127, 128, 0.2); }
.texture-gradient .container { position: relative; z-index: 1; }

/* HEADER */
header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 1000;
    transition: var(--transition); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
header.scrolled { padding: 15px 0; background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 55px; }
.nav-links { display: flex; list-style: none; align-items: center; gap: 40px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 1rem; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.btn-nav { background: var(--primary-color); color: var(--white) !important; padding: 12px 25px; border-radius: 30px; box-shadow: 0 4px 15px rgba(38, 90, 133, 0.3); }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(38, 90, 133, 0.4); }
.menu-toggle { display: none; color: var(--text-dark); font-size: 1.5rem; cursor: pointer; }

/* HERO INICIO */
.hero-full {
    height: 100vh; min-height: 700px; background-image: url('img/hero-compresor.jpg');
    background-size: cover; background-position: center; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px;
}
.hero-bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(15,23,30,0.7) 0%, rgba(15,23,30,0.9) 100%); z-index: 1; }
#air-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-content-center { position: relative; z-index: 3; max-width: 900px; padding: 0 20px; color: var(--white); }
.hero-full h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-full h1 span { color: #a0c4e0; }
.hero-full p { font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* BOTONES */
.btn { display: inline-block; padding: 16px 40px; text-decoration: none; border-radius: 30px; font-weight: 600; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; }
.btn-primary { background: var(--primary-color); color: var(--white); border: none; }
.btn-glow { box-shadow: 0 0 25px rgba(38, 90, 133, 0.6); }
.btn-primary:hover { background: #1e4a6d; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.btn-outline { background: rgba(255,255,255,0.1); color: var(--white); border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
.btn-outline:hover { background: var(--white); color: var(--text-dark); border-color: var(--white); transform: translateY(-3px); }

/* ESTADÍSTICAS */
.stats-section { background: var(--white); padding: 60px 0; position: relative; z-index: 10; border-bottom: 1px solid #eaeaea; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-item h3 { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 5px; }
.stat-item p { font-size: 1rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* MARCAS (CARRUSEL INFINITO) */
.brands-section { padding: 60px 0; background: var(--white); border-bottom: 1px solid #eaeaea; overflow: hidden; }
.brands-title { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--text-light); letter-spacing: 2px; margin-bottom: 40px; text-transform: uppercase; }
.marquee-wrapper { width: 100%; overflow: hidden; position: relative; }
.marquee-content { display: flex; width: max-content; animation: scroll 35s linear infinite; }
.marquee-group { display: flex; gap: 60px; padding-right: 60px; align-items: center; }
.brand-logo { height: 50px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(100%) opacity(0.5); transition: filter 0.3s ease, transform 0.3s ease; }
.brand-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SERVICIOS */
.services-section { padding: 120px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 80px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 15px; }
.section-header p { color: var(--text-light); font-size: 1.2rem; }
.editorial-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #eaeaea; border-left: 1px solid #eaeaea; }
.editorial-card { padding: 50px 40px; border-right: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; display: flex; gap: 30px; transition: var(--transition); background: var(--white); cursor: default; }
.editorial-card:last-child { grid-column: span 2; justify-content: center; }
.editorial-card:hover { background: var(--bg-light); }
.ed-icon { font-size: 2.5rem; color: var(--primary-color); transition: var(--transition); }
.editorial-card:hover .ed-icon { transform: scale(1.1); color: #4a90e2; }
.ed-content h3 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 10px; transition: var(--transition); }
.editorial-card:hover .ed-content h3 { color: var(--primary-color); }
.ed-content p { color: var(--text-light); font-size: 1rem; line-height: 1.6; }

/* PROCESO */
.process-section { padding: 120px 0; }
.timeline { display: flex; justify-content: space-between; position: relative; margin-top: 60px; }
.timeline::before { content: ''; position: absolute; top: 40px; left: 10%; width: 80%; height: 2px; background: #d0d0d0; z-index: 1; }
.timeline-item { flex: 1; text-align: center; position: relative; z-index: 2; padding: 0 20px; }
.timeline-icon { width: 80px; height: 80px; background: var(--white); border: 3px solid var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 2rem; color: var(--primary-color); transition: var(--transition); }
.timeline-item:hover .timeline-icon { background: var(--primary-color); color: var(--white); transform: scale(1.1); box-shadow: 0 10px 20px rgba(38,90,133,0.3); }
.timeline-content h3 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 10px; }
.timeline-content p { color: var(--text-light); font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* POR QUÉ ELEGIRNOS */
.why-us-section { padding: 120px 0; background: var(--white); }
.why-us-container { display: flex; gap: 60px; align-items: center; }
.why-us-text { flex: 1; }
.why-us-text h2 { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 20px; }
.why-us-intro { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; }
.why-us-item { display: flex; gap: 20px; margin-bottom: 30px; }
.why-icon { width: 60px; height: 60px; background: var(--bg-light); border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary-color); font-size: 1.5rem; transition: var(--transition); }
.why-us-item:hover .why-icon { background: var(--primary-color); color: var(--white); }
.why-us-item h4 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 5px; }
.why-us-item p { color: var(--text-light); font-size: 0.95rem; }
.why-us-image { flex: 1; position: relative; }
.why-us-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary-color); color: var(--white); padding: 25px; border-radius: 20px; text-align: center; box-shadow: 0 15px 30px rgba(38,90,133,0.3); }
.experience-badge span { font-family: var(--font-title); font-size: 2.5rem; line-height: 1; display: block; margin-bottom: 5px; }
.experience-badge p { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* VISÍTANOS (INICIO) */
.location-section { padding: 120px 0; background: var(--bg-light); }
.location-container { display: flex; gap: 60px; align-items: center; }
.location-info { flex: 1; }
.location-info h2 { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 20px; }
.location-info p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 30px; }
.location-list { list-style: none; margin-bottom: 40px; }
.location-list li { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; color: var(--text-dark); }
.location-list li i { color: var(--primary-color); font-size: 1.3rem; margin-top: 5px; }
.location-map { flex: 1; height: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* FOOTER */
footer { background: #0f171e; color: var(--white); padding: 80px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 60px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-col p { color: #8899a6; margin-bottom: 10px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #8899a6; text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #666; font-size: 0.9rem; }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: var(--white); width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

/* ANIMACIONES */
.anim-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   ESTILOS PÁGINA NOSOTROS
   ========================================= */
.hero-short {
    height: 50vh; min-height: 400px; background-image: url('img/sullair-verde.jpg');
    background-size: cover; background-position: center; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px;
}
.hero-short h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 15px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.hero-short p { font-size: 1.2rem; color: #d1e1ec; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.about-section { padding: 120px 0; background: var(--white); }
.about-container { display: flex; gap: 80px; align-items: center; }
.about-text { flex: 1.2; }
.about-text h2 { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 25px; }
.about-intro { font-size: 1.3rem; font-weight: 600; color: var(--text-dark); margin-bottom: 20px; }
.about-text p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 15px; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.about-badge { position: absolute; background: var(--primary-color); color: var(--white); padding: 20px 25px; border-radius: 15px; box-shadow: 0 15px 30px rgba(38,90,133,0.4); text-align: center; animation: float 4s ease-in-out infinite; }
.badge-1 { top: -20px; left: -30px; }
.badge-2 { bottom: -20px; right: -30px; animation-delay: 2s; }
.about-badge span { font-family: var(--font-title); font-size: 2.5rem; line-height: 1; display: block; margin-bottom: 5px; }
.about-badge p { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #d1e1ec; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.values-section { padding: 120px 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-card { background: var(--white); padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); border-bottom: 4px solid transparent; }
.value-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--primary-color); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.value-icon { width: 70px; height: 70px; background: rgba(38, 90, 133, 0.1); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; transition: var(--transition); }
.value-card:hover .value-icon { background: var(--primary-color); color: var(--white); }
.value-card h3 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 15px; }
.value-card p { color: var(--text-light); font-size: 0.95rem; }

.cta-banner { padding: 100px 0; background: var(--primary-color); text-align: center; color: var(--white); }
.cta-container h2 { font-size: 2.8rem; margin-bottom: 20px; }
.cta-container p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.cta-banner .btn-primary { background: var(--white); color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.cta-banner .btn-primary:hover { background: #f0f0f0; transform: translateY(-5px); }

/* =========================================
   ESTILOS PÁGINA CONTACTO
   ========================================= */
.contact-section { padding: 100px 0; background: var(--bg-light); }
.contact-container { display: flex; gap: 60px; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-info h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 20px; }
.contact-desc { color: var(--text-light); font-size: 1.1rem; margin-bottom: 40px; }

.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-icon { width: 50px; height: 50px; background: rgba(38, 90, 133, 0.1); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.info-item h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 5px; }
.info-item p { color: var(--text-light); font-size: 1rem; margin-bottom: 3px; }
.info-item a { color: var(--text-light); text-decoration: none; transition: var(--transition); }
.info-item a:hover { color: var(--primary-color); }
.info-item small { color: var(--secondary-color); }

.visitas-card { background: var(--primary-color); color: var(--white); padding: 25px; border-radius: 15px; display: flex; gap: 20px; align-items: center; margin-top: 40px; box-shadow: 0 10px 30px rgba(38, 90, 133, 0.3); }
.visitas-card i { font-size: 2.5rem; opacity: 0.8; }
.visitas-card h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--white); }
.visitas-card p { font-size: 0.9rem; opacity: 0.9; }

.contact-form-container { flex: 1; background: var(--white); padding: 50px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }
.contact-form-container h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; }
.contact-form-container > p { color: var(--text-light); margin-bottom: 30px; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-family: var(--font-text); font-size: 1rem; background: var(--bg-light); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(38, 90, 133, 0.1); }
.submit-btn { width: 100%; margin-top: 10px; cursor: pointer; border: none; }

.map-full-section { width: 100%; line-height: 0; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-full h1 { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .editorial-services-grid { grid-template-columns: 1fr; }
    .editorial-card:last-child { grid-column: span 1; }
    .timeline { flex-direction: column; gap: 40px; }
    .timeline::before { display: none; }
    .why-us-container, .location-container { flex-direction: column; }
    .why-us-image, .location-map { margin-top: 40px; width: 100%; }
    .experience-badge { bottom: 10px; right: 10px; }
    .footer-content { grid-template-columns: 1fr; }
    
    .about-container { flex-direction: column; }
    .about-image { margin-top: 40px; width: 90%; }
    .badge-1 { left: -10px; }
    .badge-2 { right: -10px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-container { flex-direction: column; }
    .contact-form-container { width: 100%; padding: 40px 30px; }
}

@media (max-width: 768px) {
    header { padding: 10px 0; }
    .logo img { height: 42px; }
    .menu-toggle { display: block; font-size: 1.4rem; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: var(--transition); }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.8rem; } 
    .section-header p { font-size: 1rem; }
    
    .hero-full { min-height: 600px; padding-top: 60px; }
    .hero-full h1 { font-size: 2.2rem; }
    .hero-full p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .stats-section { padding: 40px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 15px; }
    .stat-item h3 { font-size: 2.2rem; } 
    .stat-item p { font-size: 0.8rem; } 

    .services-section { padding: 60px 0; }
    .editorial-card { flex-direction: column; padding: 25px 20px; gap: 15px; }
    .ed-icon { font-size: 2rem; }
    .ed-content h3 { font-size: 1.1rem; } 
    .ed-content p { font-size: 0.9rem; }

    .process-section { padding: 60px 0; }
    .timeline-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 15px; }
    .timeline-content h3 { font-size: 1.1rem; }
    .timeline-content p { font-size: 0.9rem; }
    
    .why-us-section { padding: 60px 0; }
    .why-us-text h2 { font-size: 1.8rem; }
    .why-us-intro { font-size: 1rem; margin-bottom: 25px; }
    .why-us-item h4 { font-size: 1.1rem; }
    .why-us-item p { font-size: 0.85rem; }
    
    .location-section { padding: 60px 0; }
    .location-info h2 { font-size: 1.8rem; }
    .location-info p { font-size: 1rem; }
    .location-list li { font-size: 0.95rem; }
    .location-map { height: 300px; }

    footer { padding: 50px 0 20px; }
    .footer-logo { height: auto !important; width: 100%; max-width: 230px; object-fit: contain; object-position: left; margin-bottom: 15px; }
    .footer-col h4 { font-size: 1.1rem; margin-bottom: 15px; }
    .footer-col p, .footer-col ul a { font-size: 0.9rem; }

    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    
    .hero-short h1 { font-size: 2.2rem; }
    .hero-short p { font-size: 1rem; }
    .about-text h2 { font-size: 2rem; }
    .about-intro { font-size: 1.1rem; }
    .values-section { padding: 60px 0; }
    .values-grid { grid-template-columns: 1fr; }
    .value-card { padding: 30px 20px; }
    .cta-banner { padding: 60px 0; }
    .cta-container h2 { font-size: 1.8rem; }
    
    .contact-section { padding: 60px 0; }
    .form-row { flex-direction: column; gap: 0; }
    .contact-form-container h3 { font-size: 1.5rem; }
}

@media (max-width: 380px) {
    .logo img { height: 38px; }
    .hero-full h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.5rem; }
    .stats-grid { gap: 15px 10px; }
    .stat-item h3 { font-size: 1.8rem; }
    .stat-item p { font-size: 0.7rem; }
}

/* =========================================
   MODAL DE ÉXITO (FORMULARIO)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 30, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Animación del Checkmark */
.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
}

.checkmark {
    width: 25px;
    height: 45px;
    border: solid #25d366;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
    margin-bottom: 15px;
    animation: checkmark-pop 0.6s ease-in-out forwards;
    opacity: 0;
}

@keyframes checkmark-pop {
    0% { opacity: 0; transform: scale(0) rotate(45deg); }
    50% { transform: scale(1.2) rotate(45deg); }
    100% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* =========================================
   PÁGINAS LEGALES (Privacidad y Términos)
   ========================================= */
.legal-section {
    padding: 150px 0 100px; /* Espacio para el header fijo */
    background: var(--white);
    min-height: 80vh;
}

.legal-content {
    max-width: 800px; /* Hace que el texto sea fácil de leer */
    margin: 0 auto;
    color: var(--text-dark);
}

.legal-content h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.legal-date {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 50px;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 40px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(38, 90, 133, 0.1);
}

.legal-content p, .legal-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* =========================================
   CHECKBOX DE PRIVACIDAD (Formulario)
   ========================================= */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    cursor: pointer;
}

.form-check label a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* =========================================
   MODAL DE ÉXITO ANIMADO
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 30, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
}

.checkmark {
    width: 25px;
    height: 45px;
    border: solid #25d366;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
    margin-bottom: 15px;
    opacity: 0;
    animation: checkmark-pop 0.6s ease-in-out forwards;
}

@keyframes checkmark-pop {
    0% { opacity: 0; transform: scale(0) rotate(45deg); }
    50% { transform: scale(1.2) rotate(45deg); }
    100% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* Ajuste Responsive para Páginas Legales */
@media (max-width: 768px) {
    .legal-section { padding: 120px 0 60px; }
    .legal-content h1 { font-size: 2rem; }
    .legal-content h2 { font-size: 1.2rem; }
    .legal-content p, .legal-content li { font-size: 0.95rem; }
    
    .modal-content { padding: 40px 20px; }
}