/* =========================================
   TRANSMUSOS — Moderno & Minimalista
   Amarillo · Azul Oscuro · Azul Claro
   ========================================= */

:root {
    --yellow: #FFD000;
    --yellow-light: #FFE14D;
    --yellow-dark: #E6BB00;
    --blue-dark: #0A1E3D;
    --blue-dark-2: #112D5A;
    --blue-dark-3: #1A3F7A;
    --blue-light: #4A9FE5;
    --blue-light-2: #6BB5ED;
    --blue-light-3: #2B87D9;
    --text: #1a1a2e;
    --text-2: #3d3d5c;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-2: #f7f8fc;
    --bg-3: #eef1f8;
    --shadow-sm: 0 1px 2px rgba(10,30,61,0.04);
    --shadow: 0 4px 16px rgba(10,30,61,0.06);
    --shadow-lg: 0 12px 40px rgba(10,30,61,0.1);
    --shadow-xl: 0 24px 60px rgba(10,30,61,0.14);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }

/* --- Preloader --- */
#preloader {
    position: fixed; inset: 0;
    background: var(--blue-dark);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { text-align: center; }
.loader-logo { width: 64px; height: 64px; margin: 0 auto 20px; object-fit: contain; }
.loader-bar {
    width: 120px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px; overflow: hidden;
}
.loader-fill {
    width: 40%;
    height: 100%;
    background: var(--yellow);
    border-radius: 4px;
    animation: loadFill 1.2s ease-in-out infinite;
}
@keyframes loadFill {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* --- Utility --- */
.text-yellow { color: var(--yellow); }

/* --- Section Header --- */
.section-header { text-align: center; max-width: 560px; margin: 0 auto 72px; }
.section-tag {
    display: inline-block;
    color: var(--blue-light);
    font-size: 12px; font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid rgba(74,159,229,0.2);
    background: rgba(74,159,229,0.05);
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800; color: var(--blue-dark);
    margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.5px;
}
.section-header p { font-size: 16px; color: var(--text-muted); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    font-family: var(--font); font-size: 14px; font-weight: 600;
    border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary {
    background: var(--yellow); color: var(--blue-dark); border-color: var(--yellow);
}
.btn-primary:hover {
    background: var(--yellow-light); border-color: var(--yellow-light);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,208,0,0.3);
}
.btn-ghost {
    background: transparent; color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08); color: var(--bg);
    border-color: rgba(255,255,255,0.4);
}
.btn-lg { padding: 15px 34px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-nav {
    margin-left: 12px; padding: 9px 20px;
    background: var(--yellow); color: var(--blue-dark) !important;
    border-radius: var(--radius); font-weight: 700; font-size: 13px;
}
.btn-nav:hover { background: var(--yellow-light); transform: translateY(-1px); }

/* =========================================
   HEADER
   ========================================= */
#header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; transition: var(--transition);
}
#header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--bg); font-weight: 300; }
.logo img { height: 36px; width: 36px; object-fit: contain; border-radius: 6px; }
.logo strong { font-weight: 800; }
#header.scrolled .logo { color: var(--blue-dark); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 7px 14px; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.7); border-radius: 8px; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--bg); background: rgba(255,255,255,0.08); }
#header.scrolled .nav-link { color: var(--text-muted); }
#header.scrolled .nav-link:hover, #header.scrolled .nav-link.active { color: var(--blue-dark); background: var(--bg-2); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 100;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--bg); border-radius: 2px; transition: var(--transition); }
#header.scrolled .nav-toggle span { background: var(--blue-dark); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(5px) translateX(5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-5px) translateX(5px); }

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center;
    background: var(--blue-dark); overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10,30,61,0.88) 0%,
        rgba(10,30,61,0.75) 50%,
        rgba(10,30,61,0.95) 100%
    );
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-particles .particle {
    position: absolute; width: 3px; height: 3px;
    background: var(--yellow); border-radius: 50%; opacity: 0.15;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh); opacity: 0; }
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    padding-top: 72px; flex: 1; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    padding-bottom: 120px;
}
.hero-badge {
    display: inline-block;
    color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500;
    margin-bottom: 24px; letter-spacing: 1px;
    animation: fadeIn 0.8s ease-out;
}
.hero h1 {
    font-size: clamp(34px, 5.5vw, 64px); font-weight: 900;
    color: var(--bg); line-height: 1.08; margin-bottom: 20px;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}
.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255,255,255,0.5); max-width: 500px;
    margin: 0 auto 36px; line-height: 1.6; font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-buttons {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* Stats bar at bottom of hero */
.hero-stats-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    z-index: 2;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 56px; padding: 24px 0;
}
.stat { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--bg); line-height: 1; }
.stat-plus { font-size: 18px; font-weight: 700; color: var(--yellow); }
.stat-label {
    display: block; font-size: 11px; color: rgba(255,255,255,0.35);
    margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar { background: var(--bg-2); padding: 18px 0; border-bottom: 1px solid var(--border); }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.trust-item i { color: var(--blue-light); font-size: 15px; }

/* =========================================
   SERVICES
   ========================================= */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
    position: relative; background: var(--bg); border-radius: var(--radius-lg);
    padding: 32px 26px; border: 1.5px solid var(--border); transition: var(--transition);
}
.service-card:hover {
    border-color: rgba(74,159,229,0.3); transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.service-card.featured {
    border-color: var(--yellow);
    background: linear-gradient(180deg, rgba(255,208,0,0.02) 0%, var(--bg) 100%);
}
.service-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--yellow); color: var(--blue-dark);
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
}
.service-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-2); border-radius: var(--radius); margin-bottom: 18px;
}
.service-icon i { font-size: 20px; color: var(--blue-dark-2); }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.service-card > p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.service-features { display: flex; flex-direction: column; gap: 5px; }
.service-features li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-2); font-weight: 500;
}
.service-features li i { color: var(--blue-light); font-size: 10px; }

/* =========================================
   ABOUT
   ========================================= */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-content .section-tag { display: inline-block; }
.about-content h2 {
    font-size: clamp(26px, 3.5vw, 38px); font-weight: 800;
    color: var(--blue-dark); margin-bottom: 18px; line-height: 1.15; letter-spacing: -0.5px;
}
.about-lead { font-size: 16px; color: var(--text); font-weight: 500; line-height: 1.7; margin-bottom: 10px; }
.about-content > p { color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; font-size: 15px; }
.about-values { display: flex; flex-direction: column; gap: 14px; }
.value-item {
    display: flex; gap: 14px; align-items: flex-start; padding: 14px;
    background: var(--bg); border-radius: var(--radius);
    border: 1px solid var(--border); transition: var(--transition);
}
.value-item:hover { border-color: rgba(74,159,229,0.3); box-shadow: var(--shadow); }
.value-icon {
    width: 40px; height: 40px; min-width: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-2); border-radius: 8px;
}
.value-icon i { font-size: 16px; color: var(--blue-dark-2); }
.value-item h4 { font-size: 14px; font-weight: 700; color: var(--blue-dark); margin-bottom: 1px; }
.value-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.about-image-container { position: relative; }
.about-image {
    border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.experience-badge {
    position: absolute; bottom: -16px; right: -8px;
    background: var(--yellow); color: var(--blue-dark);
    padding: 18px; border-radius: var(--radius-lg);
    text-align: center; box-shadow: var(--shadow-lg);
}
.exp-number { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.exp-text { font-size: 11px; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.5px; }

/* =========================================
   FLEET
   ========================================= */
.fleet { background: var(--bg); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fleet-card {
    background: var(--bg); border-radius: var(--radius-lg); padding: 28px 22px;
    text-align: center; border: 1.5px solid var(--border); transition: var(--transition);
}
.fleet-card:hover { border-color: rgba(74,159,229,0.3); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fleet-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-2); border-radius: 50%; margin: 0 auto 16px;
}
.fleet-icon i { font-size: 24px; color: var(--blue-dark-2); }
.fleet-card h3 { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.fleet-specs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.spec {
    display: flex; justify-content: space-between; padding: 5px 10px;
    background: var(--bg-2); border-radius: 6px; font-size: 12px;
}
.spec-label { font-weight: 600; color: var(--text-2); }
.spec-value { color: var(--blue-dark-2); font-weight: 600; }
.fleet-card > p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Fleet single card */
.fleet-single { max-width: 600px; margin: 0 auto; }
.fleet-card-wide { text-align: center; }
.fleet-card-wide .fleet-specs { max-width: 360px; margin: 0 auto 16px; }
.fleet-card-wide > p { font-size: 14px; line-height: 1.65; }

/* Fleet 2-col grid */
.fleet-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Gallery */
.fleet-gallery { margin-top: 56px; }
.fleet-gallery h3 {
    text-align: center; font-size: 18px; font-weight: 700;
    color: var(--blue-dark); margin-bottom: 24px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item {
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 16/10; transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* =========================================
   OPERATION DETAIL
   ========================================= */
.operation-detail {
    margin-top: 64px; padding: 40px;
    background: var(--blue-dark); border-radius: var(--radius-xl);
}
.operation-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.operation-item { text-align: center; }
.operation-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,208,0,0.12); border-radius: 50%; margin: 0 auto 14px;
}
.operation-icon i { font-size: 20px; color: var(--yellow); }
.operation-item h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.operation-item p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.55; }

/* =========================================
   COVERAGE
   ========================================= */
.coverage { background: var(--bg-2); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.coverage-content .section-tag { display: inline-block; }
.coverage-content h2 {
    font-size: clamp(26px, 3.5vw, 38px); font-weight: 800;
    color: var(--blue-dark); margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.5px;
}
.coverage-content > p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.coverage-zones { display: flex; flex-direction: column; gap: 14px; }
.zone {
    background: var(--bg); padding: 18px 22px; border-radius: var(--radius);
    border-left: 3px solid var(--yellow); border-top: 1px solid var(--border);
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.zone:hover { box-shadow: var(--shadow); border-left-color: var(--blue-light); }
.zone-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.zone-header i { color: var(--blue-dark-2); font-size: 14px; }
.zone-header h4 { font-size: 14px; font-weight: 700; color: var(--blue-dark); }
.zone p { color: var(--text-muted); font-size: 13px; line-height: 1.5; padding-left: 24px; }

.map-placeholder {
    background: var(--blue-dark); border-radius: var(--radius-xl); padding: 44px;
    text-align: center; min-height: 420px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.map-visual { margin-bottom: 28px; position: relative; }
.map-visual > i { font-size: 100px; color: rgba(255,255,255,0.04); }
.route-dot { position: absolute; bottom: 30%; left: 48%; }
.route-dot .pulse {
    display: block; width: 12px; height: 12px;
    background: var(--yellow); border-radius: 50%; position: relative;
}
.route-dot .pulse::after {
    content: ''; position: absolute; inset: -6px;
    border: 2px solid var(--yellow); border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}
.route-label {
    position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
    white-space: nowrap; background: var(--yellow); color: var(--blue-dark);
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 50px;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
.map-destinations { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dest {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.45);
    padding: 4px 12px; background: rgba(255,255,255,0.03); border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}
.dest i { font-size: 4px; color: var(--yellow); }

/* =========================================
   CTA
   ========================================= */
.cta-section {
    position: relative; padding: 100px 0; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(10,30,61,0.92) 0%, rgba(17,45,90,0.88) 100%);
}
.cta-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 560px; margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(26px, 4vw, 36px); font-weight: 800;
    color: var(--bg); margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.5px;
}
.cta-content p { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================
   CONTACT
   ========================================= */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.contact-form {
    background: var(--bg); padding: 36px; border-radius: var(--radius-xl);
    border: 1.5px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 14px;
    font-family: var(--font); font-size: 14px; color: var(--text);
    background: var(--bg-2); border: 1.5px solid transparent;
    border-radius: var(--radius); transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-light); background: var(--bg);
    box-shadow: 0 0 0 3px rgba(74,159,229,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--blue-dark); }
.form-check label { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-bottom: 0; }
.form-check label a { color: var(--blue-light); text-decoration: underline; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
    background: var(--bg-2); padding: 22px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); display: flex; gap: 14px;
    align-items: flex-start; transition: var(--transition);
}
.info-card:hover { border-color: rgba(74,159,229,0.3); box-shadow: var(--shadow); }
.info-icon {
    width: 42px; height: 42px; min-width: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border);
}
.info-icon i { font-size: 16px; color: var(--blue-dark-2); }
.info-card h4 { font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.info-card p a { color: var(--blue-light); font-weight: 500; }
.info-card p a:hover { color: var(--blue-dark); }
.info-card .highlight { color: var(--blue-light-3); font-weight: 600; }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--blue-dark); padding: 52px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.35); font-size: 13px; line-height: 1.65; margin-bottom: 18px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border-radius: 8px;
    color: rgba(255,255,255,0.35); font-size: 14px; transition: var(--transition);
}
.social-links a:hover { background: var(--yellow); color: var(--blue-dark); transform: translateY(-2px); }
.footer-links h4 {
    font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8);
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: #25d366; color: var(--bg); font-size: 24px;
    border-radius: 50%; box-shadow: 0 4px 16px rgba(37,211,102,0.3);
    z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
.scroll-top {
    position: fixed; bottom: 24px; right: 90px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-dark); color: var(--bg); font-size: 14px;
    border: none; border-radius: 50%; cursor: pointer;
    box-shadow: var(--shadow); z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--blue-dark-2); transform: translateY(-2px); }

/* =========================================
   ANIMATIONS
   ========================================= */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-left"] { transform: translateX(20px); }
[data-aos="zoom-in"] { transform: scale(0.96); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* =========================================
   RESPONSIVE
   ========================================= */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .fleet-grid { grid-template-columns: repeat(2, 1fr); }
    .fleet-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .operation-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .about-grid { gap: 48px; }
    .coverage-grid { gap: 40px; }
    .contact-grid { gap: 32px; }
    .section-header { margin-bottom: 48px; }
}

/* --- Tablet portrait / Small tablets --- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 26px; }

    /* Nav */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 320px; height: 100vh;
        background: var(--bg);
        flex-direction: column; align-items: flex-start;
        padding: 88px 24px 24px; gap: 2px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 99;
        overflow-y: auto;
    }
    .nav-menu.open { right: 0; }
    .nav-link { color: var(--text-2) !important; width: 100%; padding: 11px 14px; font-size: 15px; }
    .nav-link:hover, .nav-link.active { background: var(--bg-2) !important; color: var(--blue-dark) !important; }
    .btn-nav { width: 100%; justify-content: center; margin-left: 0; margin-top: 10px; }

    /* Hero */
    .hero { min-height: 100svh; }
    .hero-content { padding-bottom: 140px; padding-left: 8px; padding-right: 8px; }
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; max-width: 90%; }
    .hero-buttons { gap: 10px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; padding: 18px 12px; }
    .hero-stats .stat { flex: 1 1 40%; min-width: 0; }
    .stat-number { font-size: 24px; }
    .stat-label { font-size: 10px; letter-spacing: 0.5px; }

    /* Trust */
    .trust-bar { padding: 14px 0; }
    .trust-items { gap: 10px 16px; justify-content: flex-start; }
    .trust-item { font-size: 12px; flex: 0 0 auto; }
    .trust-item i { font-size: 13px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px 20px; }
    .service-card h3 { font-size: 16px; }

    /* Operation detail */
    .operation-detail { padding: 24px; margin-top: 40px; }
    .operation-grid { grid-template-columns: 1fr; gap: 20px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-visual { order: -1; }
    .about-content h2 { font-size: 26px; }
    .about-lead { font-size: 15px; }
    .about-content > p { font-size: 14px; margin-bottom: 24px; }
    .experience-badge { bottom: -12px; right: -4px; padding: 14px; }
    .exp-number { font-size: 22px; }

    /* Fleet */
    .fleet-grid { grid-template-columns: 1fr; }
    .fleet-grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .fleet-card { padding: 24px 18px; }
    .fleet-gallery { margin-top: 36px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
    .gallery-item { aspect-ratio: 16/9; }

    /* Coverage */
    .coverage-grid { grid-template-columns: 1fr; gap: 28px; }
    .coverage-content h2 { font-size: 26px; }
    .map-placeholder { min-height: 320px; padding: 32px 20px; }
    .map-visual > i { font-size: 72px; }
    .map-destinations { gap: 6px; }

    /* CTA */
    .cta-section { padding: 64px 0; }
    .cta-content h2 { font-size: 24px; }
    .cta-content p { font-size: 14px; }
    .cta-buttons { gap: 10px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 400px; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 22px; letter-spacing: -0.3px; }
    .section-header p { font-size: 14px; }
    .section-tag { font-size: 11px; padding: 4px 12px; }

    /* Hero */
    .hero h1 { font-size: 26px; letter-spacing: -0.8px; margin-bottom: 16px; }
    .hero-badge { font-size: 11px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 14px; max-width: 100%; margin-bottom: 28px; }
    .hero-content { padding-bottom: 130px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; font-size: 14px; padding: 13px 24px; }
    .hero-stats { gap: 12px; padding: 14px 8px; }
    .hero-stats .stat { flex: 1 1 45%; }
    .stat-number { font-size: 20px; }
    .stat-plus { font-size: 14px; }
    .stat-label { font-size: 9px; }

    /* Trust */
    .trust-bar { padding: 12px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .trust-items { flex-wrap: nowrap; gap: 14px; padding: 0 4px; }
    .trust-item { white-space: nowrap; font-size: 11px; }

    /* Services */
    .service-card { padding: 20px 16px; }
    .service-badge { top: 10px; right: 10px; font-size: 9px; padding: 2px 8px; }
    .service-icon { width: 42px; height: 42px; margin-bottom: 14px; }
    .service-icon i { font-size: 18px; }
    .service-card h3 { font-size: 15px; }
    .service-card > p { font-size: 13px; margin-bottom: 12px; }
    .service-features li { font-size: 12px; }

    /* Operation */
    .operation-detail { padding: 18px; margin-top: 28px; border-radius: var(--radius-lg); }
    .operation-icon { width: 44px; height: 44px; }
    .operation-icon i { font-size: 18px; }
    .operation-item h4 { font-size: 14px; }
    .operation-item p { font-size: 12px; }

    /* About */
    .about-content h2 { font-size: 24px; }
    .about-lead { font-size: 14px; }
    .about-content > p { font-size: 13px; }
    .about-image { border-radius: var(--radius-lg); }
    .value-item { padding: 12px; gap: 12px; }
    .value-icon { width: 36px; height: 36px; min-width: 36px; }
    .value-icon i { font-size: 14px; }
    .value-item h4 { font-size: 13px; }
    .value-item p { font-size: 12px; }

    /* Fleet */
    .fleet-card { padding: 20px 16px; }
    .fleet-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .fleet-icon i { font-size: 20px; }
    .fleet-card h3 { font-size: 14px; }
    .fleet-card > p { font-size: 12px; }
    .spec { font-size: 11px; padding: 4px 8px; }
    .fleet-gallery h3 { font-size: 16px; margin-bottom: 16px; }

    /* Coverage */
    .coverage-content h2 { font-size: 24px; }
    .zone { padding: 14px 16px; }
    .zone-header h4 { font-size: 13px; }
    .zone p { font-size: 12px; padding-left: 20px; }
    .map-placeholder { min-height: 280px; padding: 24px 16px; border-radius: var(--radius-lg); }
    .map-visual > i { font-size: 56px; }
    .dest { font-size: 11px; padding: 3px 10px; }

    /* CTA */
    .cta-section { padding: 52px 0; }
    .cta-content h2 { font-size: 22px; }
    .cta-content p { font-size: 13px; margin-bottom: 24px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { justify-content: center; font-size: 14px; }

    /* Contact */
    .contact-form { padding: 20px 16px; border-radius: var(--radius-lg); }
    .form-group label { font-size: 12px; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; padding: 10px 12px; }
    .form-check label { font-size: 11px; }
    .btn-block { font-size: 14px; padding: 13px 20px; }
    .info-card { padding: 16px; gap: 12px; }
    .info-icon { width: 38px; height: 38px; min-width: 38px; }
    .info-card h4 { font-size: 12px; }
    .info-card p { font-size: 12px; }

    /* Footer */
    .footer { padding: 32px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-brand { grid-column: auto; }
    .footer-brand p { font-size: 12px; }
    .footer-links h4 { font-size: 12px; margin-bottom: 10px; }
    .footer-links a { font-size: 12px; }
    .footer-bottom { padding: 14px 0; }
    .footer-bottom p { font-size: 11px; }

    /* Floating buttons */
    .whatsapp-float { width: 48px; height: 48px; font-size: 22px; bottom: 16px; right: 16px; }
    .scroll-top { width: 36px; height: 36px; font-size: 12px; bottom: 16px; right: 72px; }
}

/* --- Very small screens --- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: 23px; }
    .hero-subtitle { font-size: 13px; }
    .hero-stats .stat { flex: 1 1 100%; }
    .nav-menu { width: 90%; }
    .section-header h2 { font-size: 20px; }
    .about-content h2 { font-size: 22px; }
    .coverage-content h2 { font-size: 22px; }
    .cta-content h2 { font-size: 20px; }
}

/* --- Safe area for notched phones (iPhone X+) --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .whatsapp-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
    .scroll-top { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .fleet-card:hover,
    .value-item:hover,
    .info-card:hover,
    .zone:hover,
    .gallery-item:hover { transform: none; }
    .gallery-item:hover img { transform: none; }
    .btn-primary:hover { transform: none; }
    .social-links a:hover { transform: none; }
}

/* =========================================
   AMPLIACIONES — SECCIONES NUEVAS
   ========================================= */

/* --- Buttons (small variant para cookie banner) --- */
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* =========================================
   SECTORES
   ========================================= */
.sectors { background: var(--bg-2); }
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sector-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}
.sector-card:hover {
    border-color: rgba(74,159,229,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.sector-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
    border-radius: 14px;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(255,208,0,0.25);
}
.sector-icon i { font-size: 22px; color: var(--blue-dark); }
.sector-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}
.sector-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =========================================
   PROCESO (CÓMO TRABAJAMOS)
   ========================================= */
.process { background: var(--bg); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}
.process-step {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.process-step:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-dark);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
}
.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 50%;
    margin: 8px auto 16px;
}
.step-icon i { font-size: 22px; color: var(--blue-dark-2); }
.process-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}
.process-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   CERTIFICACIONES
   ========================================= */
.certifications { background: var(--bg-2); }
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cert-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--blue-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.cert-card:hover {
    border-color: rgba(74,159,229,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.cert-card:hover::before { transform: scaleX(1); }
.cert-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-dark-2) 100%);
    border-radius: 18px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(10,30,61,0.15);
}
.cert-icon i { font-size: 30px; color: var(--yellow); }
.cert-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 12px;
}
.cert-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* =========================================
   FAQ
   ========================================= */
.faq { background: var(--bg); }
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item[open] {
    background: var(--bg);
    border-color: var(--blue-light);
    box-shadow: var(--shadow);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue-dark);
    transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-dark-3); }
.faq-item summary i {
    color: var(--blue-light);
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p {
    padding: 0 22px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.faq-item p a { color: var(--blue-light); font-weight: 500; }
.faq-item p a:hover { text-decoration: underline; }

/* =========================================
   FOOTER LEGAL DATA
   ========================================= */
.footer-legal-data {
    font-size: 11px !important;
    color: rgba(255,255,255,0.5) !important;
    line-height: 1.7 !important;
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-legal-data strong { color: rgba(255,255,255,0.75); font-weight: 700; }

/* =========================================
   COOKIE BANNER (RGPD)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    background: var(--blue-dark);
    color: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    transform: translateY(calc(100% + 32px));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}
.cookie-text { flex: 1; }
.cookie-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--yellow);
}
.cookie-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0;
}
.cookie-text p a {
    color: var(--blue-light);
    text-decoration: underline;
}
.cookie-text p a:hover { color: var(--yellow); }
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-actions .btn-ghost {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.2);
}
.cookie-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: var(--bg);
}

/* =========================================
   RESPONSIVE — NUEVAS SECCIONES
   ========================================= */

@media (max-width: 1024px) {
    .sectors-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
    .certifications-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sector-card { padding: 22px 16px; }
    .sector-card h3 { font-size: 15px; }
    .sector-card p { font-size: 12px; }

    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
    .process-step { padding: 28px 18px 24px; }
    .process-step h3 { font-size: 15px; }
    .process-step p { font-size: 12px; }

    .cert-card { padding: 28px 20px; }
    .cert-icon { width: 60px; height: 60px; }
    .cert-icon i { font-size: 24px; }
    .cert-card h3 { font-size: 16px; }
    .cert-card p { font-size: 13px; }

    .faq-item summary { padding: 16px 18px; font-size: 14px; }
    .faq-item p { padding: 0 18px 18px; font-size: 13px; }

    .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
    .cookie-actions { flex-direction: row; }
    .cookie-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
    .sectors-grid { grid-template-columns: 1fr; gap: 12px; }
    .sector-card { padding: 20px 16px; }
    .sector-icon { width: 48px; height: 48px; }
    .sector-icon i { font-size: 20px; }

    .process-steps { grid-template-columns: 1fr; gap: 24px; }
    .process-step { padding: 24px 16px 20px; }
    .step-number { font-size: 12px; padding: 5px 12px; top: -14px; }

    .cert-card { padding: 24px 18px; }
    .cert-icon { width: 56px; height: 56px; }
    .cert-icon i { font-size: 22px; }

    .faq-item summary { padding: 14px 16px; font-size: 13px; gap: 10px; }
    .faq-item p { padding: 0 16px 16px; font-size: 12px; }

    .cookie-banner-inner { padding: 16px; gap: 12px; }
    .cookie-text strong { font-size: 13px; }
    .cookie-text p { font-size: 12px; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cookie-banner { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* =========================================
   PÁGINAS LEGALES
   ========================================= */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg);
    min-height: 100vh;
}
.legal-page .container { max-width: 820px; }
.legal-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.legal-page .legal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.legal-page h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 36px 0 14px;
    letter-spacing: -0.3px;
}
.legal-page h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-dark-2);
    margin: 24px 0 10px;
}
.legal-page p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-page ul, .legal-page ol {
    margin: 0 0 16px 24px;
    padding-left: 0;
}
.legal-page ul li, .legal-page ol li {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 6px;
    list-style: disc;
}
.legal-page ol li { list-style: decimal; }
.legal-page a {
    color: var(--blue-light);
    text-decoration: underline;
}
.legal-page a:hover { color: var(--blue-dark); }
.legal-page strong { color: var(--blue-dark); font-weight: 700; }
.legal-page .data-box {
    background: var(--bg-2);
    border-left: 4px solid var(--yellow);
    padding: 18px 22px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
}
.legal-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--blue-light);
    margin-bottom: 24px;
    text-decoration: none;
}
.legal-page .back-link:hover { color: var(--blue-dark); text-decoration: underline; }

@media (max-width: 768px) {
    .legal-page { padding-top: 100px; padding-bottom: 60px; }
    .legal-page h2 { font-size: 20px; }
    .legal-page h3 { font-size: 15px; }
    .legal-page p, .legal-page ul li, .legal-page ol li { font-size: 14px; }
}

/* =========================================
   COMPATIBILIDAD CON CLASES DE PÁGINAS LEGALES
   ========================================= */
.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--blue-light);
    margin-bottom: 24px;
    text-decoration: none;
    transition: var(--transition);
}
.legal-back:hover { color: var(--blue-dark); text-decoration: underline; }
.legal-content h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.legal-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 36px 0 14px;
    letter-spacing: -0.3px;
}
.legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-dark-2);
    margin: 24px 0 10px;
}
.legal-content p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
    margin: 0 0 16px 24px;
    padding-left: 0;
}
.legal-content ul li, .legal-content ol li {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 6px;
    list-style: disc;
}
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--blue-light); text-decoration: underline; }
.legal-content a:hover { color: var(--blue-dark); }
.legal-content strong { color: var(--blue-dark); font-weight: 700; }
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}
.legal-content table th,
.legal-content table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.legal-content table th {
    background: var(--bg-2);
    font-weight: 700;
    color: var(--blue-dark);
}

@media (max-width: 768px) {
    .legal-content h2 { font-size: 20px; }
    .legal-content h3 { font-size: 15px; }
    .legal-content p,
    .legal-content ul li,
    .legal-content ol li { font-size: 14px; }
    .legal-content table { font-size: 12px; }
    .legal-content table th,
    .legal-content table td { padding: 8px; }
}

/* =========================================
   PÁGINA 404
   ========================================= */
body.error-page {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-dark-2) 100%);
    color: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: var(--font);
}
.error-content {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
}
.error-content img {
    width: 90px;
    height: auto;
    margin-bottom: 32px;
    filter: brightness(1.1);
}
.error-code {
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 900;
    line-height: 1;
    color: var(--yellow);
    letter-spacing: -4px;
    margin-bottom: 12px;
    text-shadow: 0 8px 32px rgba(255,208,0,0.2);
}
.error-content h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--bg);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.error-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 32px;
}
.error-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   PARCHE BANNER COOKIES — colores hardcoded
   Sobrescribe los anteriores para evitar conflictos
   ========================================= */
.cookie-banner {
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 99999 !important;
    background: #0A1E3D !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.cookie-banner.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.cookie-banner .cookie-banner-inner {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 18px 22px !important;
    background: transparent !important;
}
.cookie-banner .cookie-text { flex: 1; }
.cookie-banner .cookie-text strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: #FFD000 !important;
}
.cookie-banner .cookie-text p {
    font-size: 13px !important;
    color: rgba(255,255,255,0.78) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}
.cookie-banner .cookie-text p a {
    color: #4A9FE5 !important;
    text-decoration: underline !important;
}
.cookie-banner .cookie-actions {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}
.cookie-banner #cookieAccept,
.cookie-banner #cookieReject {
    cursor: pointer !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}
.cookie-banner #cookieAccept {
    background: #FFD000 !important;
    color: #0A1E3D !important;
    border: 1.5px solid #FFD000 !important;
}
.cookie-banner #cookieAccept:hover {
    background: #FFC700 !important;
    border-color: #FFC700 !important;
}
.cookie-banner #cookieReject {
    background: transparent !important;
    color: rgba(255,255,255,0.9) !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
}
.cookie-banner #cookieReject:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.55) !important;
}
@media (max-width: 720px) {
    .cookie-banner { left: 12px !important; right: 12px !important; bottom: 12px !important; }
    .cookie-banner .cookie-banner-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .cookie-banner .cookie-actions { flex-direction: row !important; }
    .cookie-banner #cookieAccept,
    .cookie-banner #cookieReject { flex: 1 !important; }
}
