/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --color-dark: #313131;
    --color-white: #FFFFFF;
    --color-orange: #F99D1B;
    --color-blue: #4893E3;      /* Celeste / Azul Principal */
    --color-dark-blue: #1E538C; /* Azul Oscuro */
    --radius-main: 16px;        /* Bordes un poco más redondeados */
}

html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Montserrat', sans-serif; color: var(--color-dark); }

.container { 
    max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 40px; box-sizing: border-box; 
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
    height: 80px; background-color: var(--color-white); padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; z-index: 1000;
}
.logo img { height: 46px; display: block; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--color-dark); font-weight: 600; font-size: 16px; line-height: 1; display: flex; align-items: center; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--color-orange); }

.language-dropdown { position: relative; }
.dropdown-trigger { display: flex; align-items: center; font-weight: 700; font-size: 16px; cursor: pointer; transition: color 0.2s ease; }
.dropdown-trigger img { width: 24px; height: 24px; margin-left: 4px; display: block; transition: transform 0.3s ease; }
.dropdown-menu {
    position: absolute; top: 40px; right: 0; background-color: var(--color-white); min-width: 100px;
    list-style: none; border-radius: var(--radius-main); box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1100;
}
.language-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-dropdown:hover .dropdown-trigger { color: var(--color-orange); }
.language-dropdown:hover .dropdown-trigger img { transform: rotate(180deg); }
.dropdown-menu li a { padding: 10px 20px; font-size: 14px; display: block; width: 100%; color: var(--color-dark); }
.dropdown-menu li a:hover { color: var(--color-orange); background-color: #f8f9fa; }

/* =========================================
   HERO PARALLAX
   ========================================= */
.hero-parallax {
    position: relative; width: 100%; height: calc(100vh - 80px);
    overflow: hidden; display: flex; align-items: center; background-color: var(--color-blue);
}

.parallax-layer { 
    position: absolute; 
    top: -35%; 
    left: 0; 
    width: 100%; 
    height: 160%; 
    background-size: cover; 
    background-position: center center; 
}
.layer-back { background-image: url('media/paralax-container-back.png'); background-attachment: fixed; z-index: 1; }
.layer-med { background-image: url('media/paralax-container-med.png'); z-index: 2; }
.layer-front { background-image: url('media/paralax-container-front.png'); z-index: 3; }

.hero-content { position: relative; z-index: 10; width: 100%; color: var(--color-white); }
.text-box h1 { font-size: 69px; font-weight: 700; margin-bottom: 24px; line-height: 1.2; }
.text-box p { font-size: 21px; line-height: 1.92; max-width: 650px; }
.hero-buttons { display: flex; gap: 16px; margin-top: 48px; }

/* BOTONES PLANOS */
.btn { 
    position: relative; padding: 14px 32px; font-weight: 600; text-decoration: none; 
    border-radius: var(--radius-main); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; border: none; outline: none; overflow: hidden; z-index: 1; transition: all 0.2s ease;
}
.btn::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background-color: rgba(0, 0, 0, 0.1); border-radius: 50%; transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out; z-index: -1;
}
.btn:hover::before { width: 350px; height: 350px; }
.btn-primary { background-color: var(--color-orange); color: var(--color-white); box-shadow: 0 4px 15px rgba(249, 157, 27, 0.3); }
.btn-primary::before { background-color: rgba(255, 255, 255, 0.2); }
.btn-secondary { background-color: var(--color-white); color: var(--color-dark); }
.btn-secondary::before { background-color: rgba(0, 0, 0, 0.05); }
.btn:active { transform: scale(0.96); }

/* =========================================
   SECCIÓN SEGUIMIENTO
   ========================================= */
.split-section { 
    position: relative; width: 100%; min-height: 700px; background: var(--color-dark-blue); 
    display: flex; flex-direction: column; justify-content: center; z-index: 20; padding: 100px 0; overflow: hidden;
}
.split-media { position: absolute; top: 0; left: 0; width: calc(50% - 24px); height: 100%; overflow: hidden; z-index: 5; }
.bg-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); display: block; }
.color-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-dark-blue); mix-blend-mode: color; opacity: 1; }

.lines-separator { 
    position: absolute; bottom: 0; right: 0; width: calc(50% + 24px); height: 160px; 
    display: flex; flex-direction: column; z-index: 1; background-color: var(--color-dark-blue);
}
.moving-line { width: 100%; height: 10px; position: relative; background-color: var(--color-dark-blue); }
.data-square { 
    width: 8px; height: 8px; background: white; position: absolute; top: 1px; opacity: 0.3; 
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2); 
    transition: left 0s linear, opacity 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}
.data-square.glowing { background-color: var(--color-orange) !important; opacity: 1 !important; box-shadow: 0 0 15px rgba(249, 157, 27, 1); z-index: 2; }

.split-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; width: 100%; position: relative; z-index: 10; }
.split-content { grid-column: 3 / span 2; display: flex; flex-direction: column; justify-content: center; }
.split-content h2 { font-size: 53px; color: var(--color-orange); margin-bottom: 24px; font-weight: 700; line-height: 1.2; }
.split-content p { font-size: 21px; line-height: 1.6; color: var(--color-white); margin-bottom: 24px; }

/* =========================================
   CARACTERÍSTICAS
   ========================================= */
.features-section { background-color: var(--color-blue); padding: 120px 0 0 0; position: relative; z-index: 10; overflow: hidden; }
.planet-graphic { position: absolute; right: -10%; bottom: 0; width: 60%; height: auto; z-index: 25; opacity: 0.9; pointer-events: none; }
.features-container-relative { position: relative; z-index: 30; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.features-left { grid-column: 1 / span 2; padding-bottom: 120px; }
.features-header h2 { color: var(--color-white); font-size: 53px; font-weight: 700; margin-bottom: 60px; line-height: 1.2; }

.cards-stack { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.feature-card {
    display: flex; align-items: center; gap: 24px; padding: 12px;
    background-color: var(--color-blue); border: 4px solid var(--color-dark-blue); border-radius: var(--radius-main);
    opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.icon-inner-box { width: 90px; height: 90px; background-color: var(--color-dark-blue); border-radius: var(--radius-main); display: flex; justify-content: center; align-items: center; flex-shrink: 0; overflow: hidden; }
.icon-inner-box img { width: 80%; height: 100%; object-fit: contain; }
.card-info h3 { color: var(--color-white); font-size: 30px; font-weight: 700; margin-bottom: 4px; }
.card-info p { color: var(--color-white); font-size: 18px; line-height: 1.4; opacity: 0.9; }
.feature-card:hover { border-color: var(--color-orange); }

/* =========================================
   SECCIÓN 3.5: SEGUNDO VIDEO SEPARADOR
   ========================================= */
.video-separator-section {
    position: relative;
    width: 100%;
    line-height: 0; 
    font-size: 0;   
    overflow: hidden;
    background-color: var(--color-blue); 
    display: flex; 
}

.separator-video {
    width: 100%;
    height: 500px; 
    object-fit: cover;
    display: block; 
    filter: grayscale(100%);
}

.separator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-blue);
    mix-blend-mode: color;
    opacity: 0.8; 
    pointer-events: none;
}

/* =========================================
   SERVICIOS SECTION
   ========================================= */
.services-section {
    background-color: var(--color-blue); 
    padding: 120px 0 60px 0; 
    color: var(--color-white);
}
.services-header { max-width: 800px; margin-bottom: 80px; }
.services-header h2 { font-size: 69px; font-weight: 700; margin-bottom: 24px; line-height: 1.2; }
.services-header p { font-size: 21px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.services-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.service-card {
    background-color: var(--color-dark-blue); 
    border: 4px solid var(--color-blue);      
    border-radius: var(--radius-main); 
    padding: 40px 32px; display: flex; flex-direction: column; opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out;
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { border-color: var(--color-orange); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.service-card h3 { font-size: 45px; font-weight: 700; margin-bottom: 48px; color: var(--color-white); padding-bottom: 24px; border-bottom: 2px solid rgba(255, 255, 255, 0.1); }
.service-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.service-list li { position: relative; padding-left: 20px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); transition: color 0.3s ease, transform 0.3s ease; cursor: default; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background-color: var(--color-orange); border-radius: 1px; transition: background-color 0.3s ease, transform 0.3s ease; }
.service-list li:hover { color: var(--color-white); transform: translateX(5px); }
.service-list li:hover::before { background-color: var(--color-white); }

/* =========================================
   PARALLAX 3 LÍNEAS
   ========================================= */
.orange-parallax-section {
    background-color: var(--color-orange); padding: 40px 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 15; width: 100%;
}
.parallax-line { font-size: 8vw; font-weight: 900; line-height: 0.75; text-transform: uppercase; white-space: nowrap; will-change: transform; text-align: center; }
.line-2, .line-3 { font-size: 5.2vw; }
.text-100 { color: rgba(255, 255, 255, 1); }
.text-70 { color: rgba(255, 255, 255, 0.7); }

/* =========================================
   TRANSPORT SECTION
   ========================================= */
.transport-full-width { width: 100%; background-color: var(--color-dark-blue); line-height: 0; font-size: 0; position: relative; z-index: 5; overflow: hidden; display: flex; }
.transport-full-img { width: 100%; height: auto; display: block; }

/* =========================================
   CONTACTO
   ========================================= */
.contact-section { position: relative; width: 100%; height: 700px; overflow: hidden; display: flex; align-items: center; }
.map-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-color: #000; }

.google-map-iframe {
    width: 200%; height: 100%; position: absolute; 
    left: -75%; filter: grayscale(100%); border: 0; display: block;
}
.map-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000000; opacity: 0.1; pointer-events: none; z-index: 2; }

.contact-container-relative { position: relative; z-index: 10; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; align-items: center; }
.contact-card {
    grid-column: 1 / span 2; 
    background-color: rgba(30, 83, 140, 0.95); 
    border: none; border-radius: var(--radius-main);
    padding: 60px; backdrop-filter: blur(5px); box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.contact-card h2 { color: var(--color-white); font-size: 53px; font-weight: 700; margin-bottom: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.info-item { display: flex; align-items: flex-start; gap: 20px; }
.info-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--color-orange); margin-top: 4px; }
.info-text p { color: var(--color-white); font-size: 18px; line-height: 1.5; margin: 0; }
.mail-link { color: var(--color-white); text-decoration: none; transition: color 0.3s ease; border-bottom: 1px solid transparent; }
.mail-link:hover { color: var(--color-orange); border-color: var(--color-orange); }

/* =========================================
   PÁGINA COTIZACIÓN (MODERNA / CLEAN UI)
   ========================================= */
.quote-page-body { 
    background-color: var(--color-dark-blue); 
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; 
}

.quote-animated-bg { 
    position: fixed; top: 50%; left: 0; width: 100%; height: 450px; 
    transform: translateY(-50%); background-color: var(--color-dark-blue); 
    z-index: 1; display: flex; flex-direction: column; pointer-events: none; overflow: hidden; 
}

.quote-wrapper { 
    width: 100%; max-width: 900px; position: relative; z-index: 10; 
    animation: fadeInForm 0.8s ease-out;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-card-container {
    background: rgba(72, 147, 227, 0.2); 
    backdrop-filter: blur(10px);
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* HEADER: BLANCO CON 80% OPACIDAD */
.quote-header-box { 
    background-color: rgba(255, 255, 255, 0.8); 
    padding: 30px 50px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.quote-header-box h1 { color: var(--color-dark-blue); font-size: 26px; font-weight: 700; margin: 0; }
.quote-header-box img { height: 40px; transition: transform 0.3s ease; }
.quote-header-box img:hover { transform: scale(1.05); }

.quote-body-box { padding: 40px 50px 50px 50px; }

.quote-progress { margin-bottom: 40px; }
.progress-steps { display: flex; gap: 20px; }
.step-indicator { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.step-label { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.7); letter-spacing: 1px; transition: color 0.3s ease; }
.step-label.active { color: var(--color-orange); }

.progress-bar-track { 
    width: 100%; height: 6px; background-color: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden;
}
.progress-bar-fill { 
    height: 100%; background-color: var(--color-orange); border-radius: 10px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* FORM LABELS: MÁS CLARAS (BLANCO) */
.form-group { margin-bottom: 28px; }
.form-row { display: flex; gap: 30px; }
.form-group.half { flex: 1; }
.form-group label { 
    display: block; font-size: 13px; font-weight: 700; 
    color: var(--color-white); /* Texto aclarado */
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; 
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; 
    font-family: inherit; font-size: 15px; color: var(--color-dark); outline: none; 
    transition: all 0.3s ease; background-color: rgba(255, 255, 255, 0.95);
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--color-orange); background-color: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    border-color: var(--color-orange); background-color: #fff; box-shadow: 0 0 0 4px rgba(249, 157, 27, 0.2); 
}

.phone-input-wrapper { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; background-color: rgba(255, 255, 255, 0.95); transition: all 0.3s ease; }
.phone-input-wrapper:focus-within { border-color: var(--color-orange); background-color: #fff; box-shadow: 0 0 0 4px rgba(249, 157, 27, 0.2); }
.phone-prefix { padding-left: 20px; color: #777; font-weight: 600; font-size: 15px; }
.phone-input-wrapper input { border: none !important; box-shadow: none !important; background: transparent !important; }

.checkbox-options { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.custom-checkbox { 
    display: flex; align-items: center; padding: 12px 20px 12px 45px; background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; border: 1px solid transparent; transition: all 0.3s ease; 
    cursor: pointer; font-size: 14px; font-weight: 600; 
    color: var(--color-white); /* Texto de opciones también aclarado */
    position: relative; user-select: none;
}
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.custom-checkbox .checkmark { 
    position: absolute; top: 12px; left: 15px; height: 20px; width: 20px; background-color: white; 
    border: 2px solid #ccc; border-radius: 4px; transition: all 0.2s ease; 
}
.custom-checkbox:hover { background: rgba(255, 255, 255, 0.2); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--color-orange); border-color: var(--color-orange); }
.custom-checkbox .checkmark:after { 
    content: ""; position: absolute; display: none; left: 5px; top: 1px; width: 5px; height: 10px; 
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); 
}
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

.form-actions { display: flex; justify-content: flex-end; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .main-header { padding: 0 24px; }
    .split-section { padding: 0; display: block; }
    .split-media { position: relative; width: 100%; height: 350px; }
    .lines-separator { width: 100%; bottom: 0; height: 100px; } 
    .split-grid, .features-grid { grid-template-columns: 1fr; gap: 0; }
    .split-content { grid-column: 1; padding: 80px 0; }
    .features-left { padding-bottom: 60px; }
    .feature-card { flex-direction: column; align-items: flex-start; padding: 20px; }
    .services-columns { grid-template-columns: 1fr; gap: 40px; }
    
    .text-box h1 { font-size: 50px; }
    .split-content h2, .features-header h2, .services-header h2, .contact-card h2 { font-size: 42px; }
    .service-card h3 { font-size: 32px; }
    
    .parallax-line { font-size: 11vw; }
    .line-2, .line-3 { font-size: 7.15vw; }
    
    .contact-container-relative { display: block; padding: 40px 24px; height: auto; }
    .contact-card { margin-top: 40px; padding: 40px 24px; grid-column: 1 / -1; }
    .contact-section { height: auto; display: block; }
    .map-background { position: relative; height: 400px; width: 100%; }
    .google-map-iframe { width: 100%; left: 0; }
}

@media (max-width: 768px) {
    .parallax-line { font-size: 9.5vw; }
    .line-2, .line-3 { font-size: 6vw; }
    
    .quote-header-box, .quote-body-box { padding: 30px 25px; }
    .form-row { flex-direction: column; gap: 0; }
    .quote-header-box { flex-direction: column; gap: 20px; text-align: center; }
    .form-actions { flex-direction: column-reverse; justify-content: center; }
    .form-actions .btn { width: 100%; }
    .checkbox-options { flex-direction: column; align-items: flex-start; gap: 16px; }
}