/* ===== VARIABLES Y RESET ===== */
:root {
    --color-primary: #FFC400;
    --color-primary-dark: #e6b000;
    --color-dark-bg: #1a1a1a;
    --color-darker: #111111;
    --color-text-white: #ffffff;
    --color-text-dark: #222222;
    --color-text-grey: #666666;
    --color-danger: #d32f2f;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-section: 90px;
    --spacing-section-mobile: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-bg);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 15px;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

.fw-light { font-weight: 300 !important; }
.fw-bold { font-weight: 700 !important; }
.text-primary { color: var(--color-primary) !important; }
.text-white { color: #fff !important; }
.text-dark { color: #222 !important; }
.text-danger { color: var(--color-danger) !important; }

.section-header { margin-bottom: 50px; text-align: center; }
.section-header.text-left { text-align: left; }
.section-subtitle {
    display: block; font-family: var(--font-heading); font-size: 0.9rem;
    letter-spacing: 2px; color: #999; margin-bottom: 10px;
    text-transform: uppercase; font-weight: 400;
}
.separator {
    width: 60px; height: 4px; background-color: var(--color-primary);
    margin: 15px auto 0; position: relative; border-radius: 2px;
}
.text-left .separator { margin: 15px 0 0 0; }

img { max-width: 100%; height: auto; display: block; }
.footer-top img[src*="logo"] { width: auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: var(--spacing-section) 0; }

/* Fondos blancos (contraste) */
.bg-white, .testimonials-section, .blog-section { background-color: white; color: var(--color-text-dark); }
.bg-white h2, .bg-white h3, .bg-white h4,
.testimonials-section h2, .testimonials-section h3,
.blog-section h2, .blog-section h3 { color: #111; }
.bg-white h2 span:not(.text-primary),
.testimonials-section h2 span:not(.text-primary),
.blog-section h2 span:not(.text-primary) { color: #111; }
.bg-white p, .bg-white li, .testimonials-section p, .blog-section p { color: #444; }
.bg-white .section-subtitle, .testimonials-section .section-subtitle, .blog-section .section-subtitle { color: #666; }

/* ===== UI ===== */
.cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #111; color: white; padding: 16px 32px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    border: none; cursor: pointer; border-radius: 4px; font-size: 0.9rem;
    font-family: var(--font-body); transition: 0.3s;
}
.cta-btn:hover { background: #333; transform: translateY(-2px); }
.cta-btn:disabled { background: #999; cursor: not-allowed; transform: none; opacity: 0.7; }
.cta-btn-yellow { background: var(--color-primary); color: #111; }
.cta-btn-yellow:hover { background: #fff; color: #111; }

/* ===== HEADER ===== */
.header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo img { max-height: 60px; width: auto; }
.nav-menu { display: flex; gap: 30px; }
.nav-link { font-size: 14px; font-weight: 500; text-transform: uppercase; color: #fff; letter-spacing: 1px; }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.hamburger { display: none; font-size: 26px; color: white; cursor: pointer; background: none; border: none; }

/* ===== HERO ===== */
.hero {
    height: 100vh; min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('/assets/img/hero.webp');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
}
@media (max-width: 768px) {
    .hero { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('/assets/img/hero-mobile.webp'); }
}
.hero-content { max-width: 900px; padding-top: 80px; }
.hero-subtitle { font-size: 1.2rem; color: #eee; margin-bottom: 40px; font-weight: 300; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-box { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ===== INFO BAR ===== */
.info-bar { width: 100%; background-color: var(--color-primary); position: relative; z-index: 10; overflow: hidden; }
.info-bar-container { display: flex; align-items: center; justify-content: center; height: 70px; width: 100%; max-width: 1200px; margin: 0 auto; }
.info-side { flex: 1; display: flex; align-items: center; font-weight: 700; font-family: var(--font-heading); gap: 10px; color: #111; font-size: 1.1rem; z-index: 2; }
.info-side.left { justify-content: flex-end; padding-right: 40px; }
.info-side.right { justify-content: flex-start; padding-left: 40px; }
.info-center {
    flex: 0 0 auto; background-color: #111; color: var(--color-primary); height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-family: var(--font-heading); font-weight: 700;
    padding: 0 60px; transform: skewX(-35deg); margin: 0 10px; z-index: 5;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.info-center span { transform: skewX(35deg); display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* ===== OFERTA / EXPERIENCIA ===== */
.offer-grid, .experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.offer-img img, .experience-img img { width: 100%; border-radius: 6px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.check-list { margin-top: 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 1rem; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.check-list li:last-child { border-bottom: none; }
.check-list i { color: var(--color-primary); font-size: 1.2rem; margin-top: 3px; }
.check-list-content strong { display: block; color: #111; font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }

/* ===== STATS ===== */
.stats-section {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/assets/img/stats-bg.webp');
    background-attachment: fixed; background-size: cover; padding: 80px 0; color: white;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-item i { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 10px; }
.stat-number { font-size: 3rem; font-weight: 700; font-family: var(--font-heading); display: block; line-height: 1; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* ===== SERVICIOS ===== */
.services-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.service-item { flex: 0 1 300px; text-align: center; padding: 30px 20px; transition: 0.3s; border-radius: 8px; position: relative; }
.service-item:hover { background: #f9f9f9; transform: translateY(-5px); }
.service-item i { font-size: 3rem; color: #333; margin-bottom: 20px; transition: 0.3s; }
.service-item:hover i { color: var(--color-primary); }
.service-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-item p { color: #666; font-size: 0.95rem; }
.service-popup {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    width: 260px; background-color: #111; color: #fff; padding: 15px;
    border-radius: 6px; font-size: 0.85rem; line-height: 1.4;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-bottom: 3px solid var(--color-primary);
    opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; z-index: 20; text-align: left;
}
.bg-white .service-popup { color: #fff; }
.service-item:hover .service-popup { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-10px); }
.popup-title { display: block; color: var(--color-primary); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; font-family: var(--font-heading); }

.ruta-services-toggle { text-align: center; margin-top: 40px; }
.ruta-services-container { display: none; background-color: #f4f4f4; padding: 60px 0; margin-top: 40px; border-top: 1px solid #eee; }
.ruta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.ruta-card { background: white; padding: 30px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-left: 4px solid var(--color-primary); }
.ruta-card i { font-size: 2rem; margin-bottom: 15px; color: #333; }
.ruta-card h4 { margin-bottom: 8px; color: #111; }
.ruta-card p { color: #555; }
.ruta-card .quote { color: var(--color-primary-dark); font-style: italic; font-size: 0.9rem; display: block; margin-bottom: 10px; }

/* ===== TESTIMONIOS ===== */
.testimonials-section { background-color: #f8f8f8; }
.google-reviews-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-top: 25px; }
.google-review-card {
    background: white; border-radius: 8px; padding: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; transition: transform 0.3s; border: 1px solid #f0f0f0;
}
.google-review-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.12); }
.review-header { display: flex; align-items: center; margin-bottom: 10px; position: relative; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 500; font-size: 1rem; margin-right: 10px; flex-shrink: 0; }
.avatar-purple { background-color: #7b1fa2; }
.avatar-blue { background-color: #1976d2; }
.avatar-orange { background-color: #e64a19; }
.avatar-green { background-color: #388e3c; }
.review-info h5 { margin: 0; font-size: 0.9rem; color: #202124; font-weight: 600; font-family: var(--font-body); text-transform: none; }
.review-info span { font-size: 0.75rem; color: #757575; }
.google-icon { position: absolute; top: 0; right: 0; width: 20px; height: 20px; }
.review-stars { color: #fbbc04; font-size: 0.8rem; margin-bottom: 10px; letter-spacing: 1px; }
.review-body { font-size: 0.85rem; color: #444; line-height: 1.45; flex-grow: 1; max-height: 110px; overflow-y: auto; padding-right: 5px; }
.review-body::-webkit-scrollbar { width: 4px; }
.review-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
.review-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.review-body::-webkit-scrollbar-thumb:hover { background: #999; }
.reviews-footer { margin-top: 35px; text-align: center; }

/* ===== SPLIT / FORM HOME ===== */
.split-section { display: flex; flex-wrap: wrap; }
.split-left, .split-right { flex: 1; padding: 80px 50px; display: flex; flex-direction: column; justify-content: center; min-width: 350px; }
.split-left { position: relative; color: #111; overflow: hidden; }
.split-left::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/form-bg.webp'); background-size: cover; filter: blur(4px); z-index: -2; }
.split-left::after { content: ""; position: absolute; inset: 0; background-color: rgba(255, 196, 0, 0.9); z-index: -1; }
.split-left h2, .split-left h4 { color: #111; }
.split-left h4.text-danger { color: var(--color-danger); }
.split-right { background-color: #111; color: white; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.form-input, .form-select {
    width: 100%; padding: 14px; background: rgba(255,255,255,0.05);
    border: 1px solid #444; color: white; font-family: var(--font-body); font-size: 0.95rem; border-radius: 4px; transition: border 0.3s;
}
.form-input:focus, .form-select:focus { border-color: var(--color-primary); outline: none; background: rgba(255,255,255,0.1); }
option { background: #222; color: #fff; }
option:disabled { color: #999; }
.input-group { position: relative; width: 100%; }
.error-msg { display: none; color: #ff5252; font-size: 0.75rem; position: absolute; bottom: -18px; left: 0; }
.form-input.is-invalid, .form-select.is-invalid { border-color: #ff5252; background-color: rgba(255, 82, 82, 0.05); }
.legal-check { margin-top: 20px; display: flex; align-items: start; gap: 10px; font-size: 0.8rem; color: #ccc; line-height: 1.4; }
.legal-check a { text-decoration: underline; color: var(--color-primary); }
.legal-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }
.hp-field { display: none !important; visibility: hidden; opacity: 0; position: absolute; left: -9999px; }

#formResponse { margin-top: 15px; padding: 10px; border-radius: 4px; display: none; text-align: center; font-weight: 600; }
.success-msg { background: rgba(76, 175, 80, 0.2); color: #81c784; border: 1px solid #4caf50; }
.error-response { background: rgba(244, 67, 54, 0.2); color: #e57373; border: 1px solid #f44336; }

/* ===== MAPA / ZONAS ===== */
.map-areas-section { display: flex; flex-wrap: wrap; background: white; margin-top: 20px; border-top: 1px solid #eee; color: #222; }
.map-wrapper { flex: 1; min-width: 300px; min-height: 500px; background: #eee; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; min-height: 500px; }
.areas-wrapper { flex: 1; min-width: 300px; padding: 60px 50px; background-color: #fff; color: #222; }
.areas-wrapper h3 { font-size: 2rem; margin-bottom: 10px; color: #111; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.area-column h4 { border-bottom: 2px solid var(--color-primary); display: inline-block; padding-bottom: 5px; margin-bottom: 15px; color: #111; }
.area-column ul li { margin-bottom: 8px; font-size: 0.95rem; color: #555; }
.area-column ul li::before { content: '•'; color: var(--color-primary); font-weight: bold; margin-right: 8px; }
.areas-extra-link { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.95rem; color: #444; }
.areas-extra-link a { display: inline-flex; align-items: center; gap: 8px; margin-left: 5px; color: var(--color-darker); font-weight: 700; }
.areas-extra-link a:hover { color: var(--color-primary-dark); }
.areas-extra-link i { color: #25d366; font-size: 1.2rem; }

/* ===== FAQ ===== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; padding: 25px 0; }
.faq-question { font-weight: 700; font-family: var(--font-heading); font-size: 1.15rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #222; text-transform: uppercase; }
.faq-question:hover { color: var(--color-primary-dark); }
.faq-answer { margin-top: 15px; color: #555; display: none; line-height: 1.7; font-size: 0.95rem; }
.faq-item:hover .faq-answer, .faq-item.open .faq-answer { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* ===== BLOG (cards en home) ===== */
.blog-section { background-color: #f4f4f4; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.blog-img { height: 220px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.blog-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-title { font-size: 1.2rem; margin-bottom: 10px; color: #222; }
.blog-desc { font-size: 0.9rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.blog-meta { color: var(--color-primary-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }

/* ===== FOOTER ===== */
.footer { background-color: #111; color: #777; font-size: 0.9rem; padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; border-bottom: 1px solid #333; padding-bottom: 10px; display: inline-block; }
.footer-list li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-list i { color: var(--color-primary); margin-top: 3px; }
.footer-social { margin-top: 20px; font-size: 1.2rem; }
.footer-social a { margin-right: 15px; color: #fff; }
.footer-cta { margin-top: 15px; padding: 10px 20px; font-size: 0.85rem; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 30px; }

/* ===== ANIMACIONES ===== */
.scroll-progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: var(--color-primary); width: 0%; z-index: 99999; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== BANNER STICKY ===== */
.bottom-sticky-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2); transform: translateY(100%);
    transition: transform 0.4s ease-in-out; font-family: var(--font-body);
}
.bottom-sticky-banner.visible { transform: translateY(0); }
.sticky-header { background-color: var(--color-primary); color: #111; text-align: center; font-size: 0.75rem; font-weight: 700; padding: 8px 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.sticky-buttons { display: flex; gap: 10px; padding: 10px 15px 15px; background-color: #f8f8f8; justify-content: center; }
.sticky-btn { flex: 1; max-width: 400px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; color: white; transition: background 0.3s; }
.sticky-btn i { font-size: 1.1rem; }
.btn-call { background-color: #333; }
.btn-call:hover { background-color: #111; }
.btn-wa { background-color: #25d366; }
.btn-wa:hover { background-color: #1ebc59; }

/* =====================================================
   PÁGINAS INTERNAS (blog, convenios, legal)
   ===================================================== */
body.page-article { background-color: #f9f9f9; color: var(--color-text-dark); line-height: 1.8; }
.page-article h1, .page-article h2, .page-article h3, .page-article h4 { color: #111; }
.page-article h1 { font-size: 3rem; color: white; }
.page-article h2 { font-size: 2.2rem; margin-top: 40px; border-left: 5px solid var(--color-primary); padding-left: 15px; }
.page-article h3 { font-size: 1.5rem; margin-top: 30px; }
.page-article .footer { margin-top: 60px; }
.page-article .footer h4 { color: white; }

.blog-hero {
    height: 60vh; min-height: 450px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), var(--hero-img, url('/assets/img/blog-hero.webp'));
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding-top: 80px; color: white;
}
.blog-meta-header { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; display: block; }

.article-container {
    max-width: 800px; margin: -60px auto 0; background: white; padding: 50px;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative; z-index: 2;
}
.article-container.wide { max-width: 900px; padding: 60px; }
.article-lead { font-size: 1.2rem; font-weight: 500; color: #444; margin-bottom: 30px; font-style: italic; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.article-body p { margin-bottom: 20px; color: #555; font-size: 1.05rem; }
.article-body > ul:not(.custom-list) li { color: #555; margin-bottom: 8px; }
.wide .article-body p { text-align: justify; font-size: 1rem; margin-bottom: 15px; }

.custom-list { list-style: none; margin: 20px 0; }
.custom-list li { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.custom-list i { color: var(--color-primary-dark); font-size: 1.2rem; margin-top: 5px; }
.custom-list strong { color: #111; font-weight: 700; }
.custom-list p { margin-bottom: 0; font-size: 0.95rem; }

.alert-box { background-color: #fff8e1; border-left: 5px solid var(--color-primary); padding: 25px; margin: 30px 0; border-radius: 4px; }
.alert-box li { color: #555; margin-bottom: 6px; }
.alert-title { font-weight: 700; color: #d32f2f; display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }

.inline-cta { background-color: #111; color: white; padding: 40px; text-align: center; border-radius: 8px; margin: 50px 0; background-image: url('/assets/img/carbon-fibre.png'); }
.inline-cta h3 { color: white; margin-top: 0; }
.article-body .inline-cta p { color: #ddd; }

.article-img-full { width: 100%; height: auto; border-radius: 6px; margin: 25px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.article-body figcaption { font-size: 0.85rem; color: #777; text-align: center; margin-top: -15px; margin-bottom: 25px; }
.video-wrapper { width: 100%; max-width: 450px; margin: 40px auto; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.15); background: #000; }
.video-wrapper video { width: 100%; display: block; }
.badge-container { text-align: center; margin: 40px 0; padding: 20px; background-color: #f4f4f4; border-radius: 8px; }
.badge-container h3 { margin-top: 0; font-size: 1.2rem; color: #333; }
.badge-img { max-width: 250px; width: 100%; height: auto; margin: 0 auto; }
.quote-box { border-left: 4px solid var(--color-primary); background: #fff8e1; padding: 20px; font-style: italic; color: #333; font-weight: 600; margin-top: 30px; }
.legal-contact-box { background-color: #f4f4f4; border-left: 4px solid var(--color-primary); padding: 25px; margin: 40px 0; border-radius: 4px; }
.legal-contact-box h3 { margin-top: 0; }

/* ===== CONTACTO ===== */
body.page-contact { background-color: #f4f4f4; color: var(--color-text-dark); }
.page-contact h1, .page-contact h2, .page-contact h3, .page-contact h4, .page-contact h5 { color: #111; }
.page-contact .footer h4 { color: white; }
.page-hero {
    height: 50vh; min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('/assets/img/form-bg.webp');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white; margin-bottom: 50px;
}
.page-contact .page-hero h1 { color: white; font-size: 3rem; margin-bottom: 10px; }
.breadcrumb { font-size: 0.9rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
.contact-info-section { padding: 0 0 50px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-card { background: white; padding: 30px; text-align: center; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.info-card p { color: #555; }
.info-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 20px; }

.forms-section { padding: 50px 0 80px; }
.forms-grid { display: flex; flex-wrap: wrap; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; }
.form-col-left { flex: 1; padding: 60px; background: white; min-width: 350px; }
.form-col-right { flex: 1; padding: 60px; background: #1a1a1a; color: white; min-width: 350px; }
.form-col-right h2 { color: #ffffff !important; }
.form-col-right p { color: #cccccc !important; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; font-family: var(--font-heading); text-transform: uppercase; }
.form-control { width: 100%; padding: 14px; border-radius: 4px; font-family: var(--font-body); border: 1px solid #ddd; outline: none; transition: 0.3s; }
.form-control:focus { border-color: var(--color-primary); }
.form-control option { background: #fff; color: #111; }
.form-control option:disabled { color: #777; }
.dark-theme-input .form-label { color: var(--color-primary); }
.dark-theme-input .form-control { background: rgba(255,255,255,0.05); border: 1px solid #444; color: white; }
.dark-theme-input .form-control:focus { background: rgba(255,255,255,0.1); border-color: var(--color-primary); }
.dark-theme-input ::placeholder { color: #888; }
.dark-theme-input option { background: #222; color: white; }
.dark-theme-input option:disabled { color: #999; }
.file-upload-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.file-upload-input { font-size: 0.9rem; color: #ccc; padding: 10px 0; cursor: pointer; }
.file-upload-input::file-selector-button { margin-right: 15px; border: none; background: var(--color-primary); padding: 10px 20px; border-radius: 4px; color: #111; font-weight: 700; cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-hint { font-size: 0.75rem; color: #888; margin-top: 6px; }

.status-message { margin-top: 15px; padding: 15px; border-radius: 4px; font-size: 0.9rem; text-align: center; display: none; }
.status-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-blocked { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; font-weight: bold; }
.loader { border: 3px solid #f3f3f3; border-top: 3px solid var(--color-primary); border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; display: none; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===== 404 ===== */
body.page-404 { padding-bottom: 0; background: var(--color-darker); }
.e404-wrap {
    background: radial-gradient(circle at 50% 30%, #2a2a2a 0%, var(--color-darker) 70%);
    color: #fff; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 60px 20px 0; overflow: hidden; position: relative;
}
.e404-code { font-family: var(--font-heading); font-weight: 700; font-size: clamp(5rem,18vw,11rem); line-height: 1; letter-spacing: 4px; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.e404-code span { color: var(--color-primary); }
.e404-title { font-family: var(--font-heading); text-transform: uppercase; font-size: clamp(1.3rem,4vw,2rem); margin: 10px 0 12px; }
.e404-text { color: #cfcfcf; max-width: 520px; font-size: 1rem; line-height: 1.6; margin-bottom: 30px; }
.e404-cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.e404-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; font-size: .9rem; transition: .3s; }
.e404-btn-yellow { background: var(--color-primary); color: #111; }
.e404-btn-yellow:hover { background: #fff; transform: translateY(-2px); }
.e404-btn-wa { background: #25d366; color: #fff; }
.e404-btn-wa:hover { background: #1ebc59; transform: translateY(-2px); }
.road-scene { width: 100%; max-width: 760px; position: relative; height: 170px; margin-top: 10px; }
.truck { position: absolute; bottom: 34px; left: 50%; width: 240px; transform: translateX(-50%); animation: truck-bob 1.1s ease-in-out infinite, truck-enter 1.6s cubic-bezier(.22,1,.36,1) 1; }
@keyframes truck-bob { 0%,100%{transform:translateX(-50%) translateY(0) rotate(0deg);} 25%{transform:translateX(-50%) translateY(-2px) rotate(-.4deg);} 75%{transform:translateX(-50%) translateY(1px) rotate(.4deg);} }
@keyframes truck-enter { from{opacity:0;transform:translateX(-180%) translateY(0);} to{opacity:1;transform:translateX(-50%) translateY(0);} }
.truck svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.wheel { transform-origin: center; transform-box: fill-box; animation: spin .55s linear infinite; }
.beacon { transform-box: fill-box; animation: flash .7s steps(1) infinite; }
@keyframes flash { 0%,49%{opacity:1;} 50%,100%{opacity:.15;} }
.smoke { opacity: 0; animation: puff 1.8s ease-out infinite; }
.smoke.s2 { animation-delay: .6s; }
.smoke.s3 { animation-delay: 1.2s; }
@keyframes puff { 0%{opacity:.5;transform:translate(0,0) scale(.5);} 100%{opacity:0;transform:translate(-30px,-26px) scale(1.6);} }
.road { position: absolute; left: 0; bottom: 0; width: 100%; height: 34px; background: #2c2c2c; border-top: 3px solid #3a3a3a; }
.road-line { position: absolute; left: 0; top: 15px; width: 200%; height: 4px; background: repeating-linear-gradient(to right,var(--color-primary) 0 38px,transparent 38px 78px); animation: road-move .45s linear infinite; opacity: .85; }
@keyframes road-move { from{transform:translateX(0);} to{transform:translateX(-78px);} }
.e404-footnote { position: relative; z-index: 2; color: #888; font-size: .8rem; padding: 18px 0 24px; letter-spacing: .5px; }
.e404-footnote a { color: var(--color-primary); }

/* ===== COOKIES / CONSENTIMIENTO ===== */
.cookie-banner {
    position: fixed; left: 16px; bottom: 16px; z-index: 100000; width: calc(100% - 32px); max-width: 440px;
    background: #111; color: #ddd; border-top: 4px solid var(--color-primary); border-radius: 8px;
    padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.45); font-size: 0.85rem; line-height: 1.5;
}
.cookie-banner h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.cookie-banner h4 i { color: var(--color-primary); margin-right: 6px; }
.cookie-banner a { color: var(--color-primary); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.cookie-actions .cta-btn { padding: 10px 16px; font-size: 0.8rem; width: auto; border: 1px solid #444; }
.cookie-actions .cta-btn-yellow { border-color: var(--color-primary); }
.cookie-link { background: none; border: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
.cookie-banner .cookie-link { color: var(--color-primary); }
.footer-bottom .cookie-link { color: #777; }
.footer-bottom .cookie-link:hover { color: var(--color-primary); }
.cookie-modal { position: fixed; inset: 0; z-index: 100001; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal-box { background: #fff; color: #222; border-radius: 8px; padding: 28px; max-width: 480px; width: 100%; border-top: 4px solid var(--color-primary); }
.cookie-modal-box h3 { color: #111; margin-bottom: 15px; }
.cookie-opt { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eee; }
.cookie-opt p { font-size: 0.8rem; color: #666; margin-top: 3px; }
.cookie-opt input { width: 20px; height: 20px; accent-color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.cookie-modal .cookie-link { color: #555; }
.consent-placeholder { height: 100%; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 15px; background: #eee; color: #444; }
.consent-placeholder i { font-size: 3rem; color: var(--color-primary); }
.consent-placeholder p { max-width: 340px; color: #444; font-size: 0.9rem; }
.consent-placeholder .cta-btn { width: auto; }
.map-wrapper [data-consent-src] iframe { width: 100%; height: 100%; min-height: 500px; border: 0; }
.form-col-left .legal-check { color: #555; }
.form-col-left .legal-check a { color: #111; }
.legal-table { width: 100%; border-collapse: collapse; margin: 15px 0 25px; font-size: 0.9rem; }
.legal-table th, .legal-table td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; color: #555; vertical-align: top; }
.legal-table th { background: #f4f4f4; color: #111; font-family: var(--font-heading); text-transform: uppercase; }
.legal-table-wrap { overflow-x: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero { background-position: 25% center !important; }
    .section-padding { padding: var(--spacing-section-mobile) 0; }
    .hero h1 { font-size: 2.8rem; }
    .offer-grid, .experience-grid { grid-template-columns: 1fr; gap: 40px; }
    .experience-grid { display: flex; flex-direction: column-reverse; }
    .info-bar-container { flex-direction: column; height: auto; background: var(--color-primary); padding: 0; }
    .info-side { width: 100%; padding: 10px 0 !important; justify-content: center !important; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .info-center { width: 100%; transform: none; margin: 0; padding: 15px 0; font-size: 1.4rem; border-left: 10px solid var(--color-primary); border-right: 10px solid var(--color-primary); }
    .info-center span { transform: none; width: 100%; justify-content: center; }
    .hamburger { display: block; }
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(0,0,0,0.95); flex-direction: column; padding: 30px 0; text-align: center; transform: translateY(-150%); transition: 0.4s; gap: 20px; }
    .nav-menu.active { transform: translateY(0); }
    .map-areas-section { margin-top: 30px; }
    .page-article h1 { font-size: 2.2rem; }
    .article-container, .article-container.wide { margin-top: 0; padding: 30px 20px; border-radius: 0; }
    .page-hero { height: 40vh; }
    .info-grid { grid-template-columns: 1fr; gap: 15px; }
    .forms-grid { flex-direction: column; }
    .form-col-left, .form-col-right { padding: 40px 20px; min-width: 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .page-article h2 { font-size: 1.7rem; }
    .hero-subtitle { font-size: 1rem; padding: 0 15px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-section { background-attachment: scroll; }
    .split-left, .split-right { padding: 50px 20px; min-width: 0; }
    .form-grid, .form-row-2 { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: 1fr; gap: 20px; }
    .areas-wrapper { padding: 40px 20px; }
    .cta-btn { width: 100%; }
    .footer .cta-btn.footer-cta { width: auto; }
    .google-reviews-container { display: flex; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
    .google-review-card { min-width: 260px; scroll-snap-align: center; }
    .sticky-header { font-size: 0.65rem; white-space: nowrap; padding: 6px 5px; overflow: hidden; text-overflow: ellipsis; }
    .sticky-buttons { padding: 8px 10px 10px; }
    .sticky-btn { padding: 8px 5px; font-size: 0.85rem; }
    .e404-btn { width: 100%; max-width: 300px; }
    .truck { width: 185px; bottom: 30px; }
    .road-scene { height: 150px; }
}
