/* =========================================
   1. VARIABLES & SISTEMA DE DISEÑO
   ========================================= */
:root {
    /* --- COLORES BASE DE LA MARCA --- */
    --gold-primary: #C5A059;  /* DORADO EXACTO */
    --gold-hover: #D4AF6A;
    --navy-dark: #0B1623;
    --navy-light: #1A2634;
    --white: #FFFFFF;

    /* --- PALETA TEMA CLARO (Por defecto) --- */
    /* Usamos grises elegantes en lugar de azules para el modo claro */
    --bg-body: #F4F4F4;        /* Fondo general */
    --bg-card: #FFFFFF;        /* Fondo tarjetas */
    --text-main: #2D2D2D;      /* Texto principal (gris oscuro) */
    --text-light: #666666;     /* Texto secundario */
    
    /* Colores para Header, Contacto y Footer en MODO CLARO */
    --bg-header: rgba(255, 255, 255, 0.98);
    --text-header: #0B1623;
    --bg-contact-section: #E0E0E0; /* Gris Platino para la sección de contacto */
    --bg-footer: #D0D0D0;          /* Gris Humo un poco más oscuro para el footer */
    --text-on-colored-bg: #2D2D2D; /* Texto oscuro sobre fondos grises */
    --border-color: rgba(0,0,0,0.1);

    /* --- CONFIGURACIÓN DE TAMAÑOS --- */
    --container-width: 1200px;
    --header-height: 100px;
    --logo-height: 80px;

    /* --- BOTÓN WHATSAPP FLOTANTE --- */
    --wa-size: 75px;
    --wa-icon-size: 45px;
    --wa-bottom: 40px;
    --wa-right: 40px;

    /* --- ESTILOS BASE --- */
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --font-main: 'Montserrat', sans-serif;
}

/* --- PALETA TEMA OSCURO (Con separación de secciones) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0B1623;            /* Navy Muy Oscuro (Fondo general) */
        --bg-card: #1C2B3C;            /* Tarjetas (Más claro para que resalten) */
        --text-main: #F0F0F0;
        --text-light: #A0A0A0;

        --bg-header: rgba(11, 22, 35, 0.98);
        --text-header: #FFFFFF;

        /* CAMBIO AQUÍ: Usamos un tono intermedio para separar la sección */
        --bg-contact-section: #15202E; 
        
        --bg-footer: #050a10;          /* Footer casi negro para profundidad */
        --text-on-colored-bg: #FFFFFF; 
        
        --shadow: 0 4px 25px rgba(0,0,0,0.5);
        --border-color: rgba(255,255,255,0.08);
    }
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. HEADER (MENÚ)
   ========================================= */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header); /* Variable dinámica */
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo img {
    height: var(--logo-height);
    width: auto;
    object-fit: contain;
    padding: 5px 0;
}
/* --- 1. ESTILOS NUEVOS PARA EL LOGO CON TEXTO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 40px; /* Espacio entre el icono y el texto */
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: row; /* Pone AscendBoom y Lifting en la misma línea */
    align-items: baseline;
    gap: 5px;
    font-family: var(--font-main);
}

.brand-main {
    font-weight: 700; /* Negrita */
    font-size: 1.9rem; /* Ajusta este tamaño según prefieras */
    color: var(--text-header); /* Se pone oscuro en día y blanco en noche automáticamente */
}

.brand-slogan {
    font-weight: 600;
    font-size: 1.9rem;
    color: var(--gold-primary); /* Siempre dorado */
}

/* Ajuste para móviles para que no ocupe tanto espacio */
@media (max-width: 768px) {
    .brand-main, .brand-slogan { font-size: 1.1rem; }
    .logo img { height: 45px !important; } /* Ajuste ligero al logo */
}
.nav-list { display: flex; gap: 30px; list-style: none; }

.nav-list a { 
    color: var(--text-header); /* Variable dinámica */
    font-weight: 600; 
    font-size: 0.95rem; 
    position: relative; 
    letter-spacing: 0.5px;
}

.nav-list a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--gold-primary);
    transition: width 0.3s ease;
}
.nav-list a:hover::after { width: 100%; }

.nav-contact {
    border: 1px solid var(--gold-primary);
    padding: 8px 20px;
    border-radius: var(--radius);
    color: var(--gold-primary) !important;
}
.nav-contact:hover {
    background-color: var(--gold-primary);
    color: var(--navy-dark) !important;
}

/* =========================================
   4. SOLUCIÓN DEFINITIVA: ÍCONOS DORADOS
   ========================================= */

/* Clase base para el color y el comportamiento */
.icon-gold-mask {
    display: inline-block;
    background-color: var(--gold-primary); /* Tu dorado exacto */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: middle;
    margin-right: 12px;
}

/* ÍCONO DE CORREO: Ajuste independiente */
.icon-mail {
    -webkit-mask-image: url('../img/icon/mail.svg'); 
    mask-image: url('../img/icon/mail.svg');
    /* Tamaño preestablecido razonable para el texto */
    width: 29px; 
    height: 37px; 
}
.icon-ig {
    -webkit-mask-image: url('../img/icon/ig.svg'); 
    mask-image: url('../img/icon/ig.svg');
    width: 32px; 
    height: 39px; 
}
.icon-fb {
    -webkit-mask-image: url('../img/icon/fb.svg'); 
    mask-image: url('../img/icon/fb.svg');
    width: 30px; 
    height: 37px; 
}
.icon-pin {
    -webkit-mask-image: url('../img/icon/pin.svg');
    mask-image: url('../img/icon/pin.svg');
    /* El pin suele ser más alto que ancho, lo ajustamos aquí */
    width: 30px;
    height: 25px;
}
.icon-phone {
    -webkit-mask-image: url('../img/icon/phone.svg');
    mask-image: url('../img/icon/phone.svg');
    width: 30px;
    height: 23px;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(11, 22, 35, 0.7), rgba(11, 22, 35, 0.6)), 
                url('../img/Genie JLG brazos y plataformas hero image.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center; text-align: center; color: var(--white);
}

.hero-text { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; line-height: 1.1; }
.hero h1 span { color: var(--gold-primary); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: #E0E0E0; }
.hero-ctas { display: flex; justify-content: center; gap: 20px; }

/* Iconos dentro de botones (estos sí usan img normal) */
.btn-call img, .btn-secondary img {
    width: 20px; height: 20px; margin-right: 10px;
}

.btn-call {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-hover));
    color: var(--navy-dark);
    padding: 15px 35px; border-radius: var(--radius); font-weight: 700;
    display: flex; align-items: center;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6); }

.btn-secondary {
    background: transparent; border: 2px solid var(--white); color: var(--white);
    padding: 15px 35px; border-radius: var(--radius); font-weight: 600;
}
.btn-secondary:hover { background: var(--white); color: var(--navy-dark); }

/* =========================================
   6. CATÁLOGO
   ========================================= */
.catalog { padding: 40px 0; background-color: var(--bg-body); }

.section-title {
    text-align: center; font-size: 2.5rem; color: var(--text-main);
    margin-bottom: 50px; position: relative; width: 100%;
}
.section-title::after {
    content: ''; display: block; width: 120px; height: 4px;
    background-color: var(--gold-primary); margin: 15px auto 0;
}

/* --- GRID AJUSTADO A 2x2 --- */
.equipment-grid { 
    display: grid; 
    /* Cambiamos el auto-fit por 2 columnas fijas en escritorio */
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    /* Añadimos un ancho máximo para que las tarjetas no se estiren infinitamente */
    max-width: 1000px; 
    margin: 0 auto; /* Esto centra el grupo de 4 tarjetas en la página */
    padding: 20px 0;
}

/* --- TU FORMATO ORIGINAL (SIN CAMBIOS) --- */
.equipment-card {
    background-color: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}
.equipment-card:hover { transform: translateY(-5px); }

.card-img { height: 250px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform 0.5s ease; }
.equipment-card:hover .card-img img { transform: scale(1.05); }

.card-content { padding: 25px; text-align: center; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-main); }
.card-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.btn-outline {
    display: inline-block; border: 2px solid var(--text-main);
    color: var(--text-main); padding: 10px 25px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem;
}
.btn-outline:hover { background-color: var(--gold-primary); color: var(--navy-dark); border-color: var(--gold-primary); }

/* --- RESPONSIVE PARA MÓVIL --- */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr; /* En celular vuelve a ser 1 sola columna */
    }
}
/* =========================================
   7. CONTACTO RÁPIDO (Colores Corregidos)
   ========================================= */
.quick-contact {
    /* Usa la variable dinámica (Gris en claro, Navy en oscuro) */
    background-color: var(--bg-contact-section);
    color: var(--text-on-colored-bg);
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.grid-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-text p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 30px; }

.contact-data li {
    list-style: none; display: flex; align-items: center;
    margin-bottom: 15px; font-size: 1.1rem;
}

/* Formulario */
.contact-form {
    background: var(--bg-card); padding: 40px; border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 15px; box-shadow: var(--shadow);
}
.contact-form input, .contact-form select {
    padding: 15px; border: 1px solid var(--border-color); border-radius: 4px;
    font-family: var(--font-main); font-size: 1rem; background-color: var(--bg-body); color: var(--text-main);
}
.contact-form input:focus { outline: none; border-color: var(--gold-primary); }
.contact-form textarea {width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color:var(--bg-body); /* Azul más oscuro para el fondo del campo */
    color: var(--text-main);
    border: 1px solid var(--border-color); border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;}
.btn-submit {
    background-color: var(--gold-primary); color: var(--navy-dark); border: none;
    padding: 15px; font-size: 1.1rem; font-weight: 700; border-radius: 4px;
    cursor: pointer; transition: background 0.3s;
}
.btn-submit:hover { background-color: var(--gold-hover); }

/* =========================================
   8. FOOTER (Colores Corregidos)
   ========================================= */
.footer {
    /* Usa la variable dinámica (Gris más oscuro en claro, Negro en oscuro) */
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 40px 0 20px; text-align: center;
    transition: background-color 0.3s ease;
}
.footer-flex { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }

/* --- FOOTER LOGO: ORIGINAL Y GRANDE --- */
.footer-logo img { 
    /* Ajustamos el tamaño a 80px (o el que prefieras) */
    height: 110px; 
    width: auto;
    filter: none !important; 
    opacity: 1 !important;  
    object-fit: contain;
    margin-bottom: 0px;
}

/* Borramos o comentamos la regla de modo oscuro para que el logo 
   NO cambie a blanco y se quede siempre original */
@media (prefers-color-scheme: dark) {
    .footer-logo img { 
        filter: none !important; 
        opacity: 1 !important; 
    }
}

/* --- RESTO DEL FOOTER --- */
.footer-contact-list li {
    list-style: none; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 0px;
}

.footer-social { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    margin-top: 25px; 
}

.copy { 
    border-top: 1px solid var(--border-color); 
    padding-top: 20px; 
    font-size: 0.85rem; 
    opacity: 0.7;
}
/* =========================================
   9. BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.floating-cta { position: fixed; bottom: var(--wa-bottom); right: var(--wa-right); z-index: 2000; }

.btn-wa-float {
    background-color: #25D366; width: var(--wa-size); height: var(--wa-size);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); animation: pulse 3s infinite;
}
.btn-wa-float img {
    width: var(--wa-icon-size); height: var(--wa-icon-size);
    filter: brightness(0) invert(1); object-fit: contain;
}
.btn-wa-float:hover { transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-ctas { flex-direction: column; }
    .btn-call, .btn-secondary { width: 100%; justify-content: center; }
    .grid-contact { grid-template-columns: 1fr; }
    .nav-list { display: none; } 
    .container { padding: 0 15px; }
    .logo img { height: 60px !important; }
}
/* =========================================
   11. NUEVAS SECCIONES (SEO & CONTENIDO)
   ========================================= */

.section-padding { padding: 80px 0; }

/* --- SECCIÓN NOSOTROS / QUÉ OFRECEMOS --- */
.value-prop { background-color: var(--bg-body); }
.value-content { max-width: 900px; margin: 0 auto; text-align: center; }
.lead-text { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--gold-primary); 
    margin-bottom: 20px; 
}
.value-content p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* --- SERVICIOS DETALLADOS --- */
.services-list { background-color: var(--bg-card); }
.services-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 40px;
}
.service-item {
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--bg-body);
    border-left: 5px solid var(--gold-primary);
}
.service-item h3 { margin-bottom: 20px; display: flex; align-items: center; }
.check-icon { color: var(--gold-primary); margin-right: 10px; font-weight: bold; }
.service-item ul { list-style: none; }
.service-item li { margin-bottom: 12px; position: relative; padding-left: 20px; }
.service-item li::before { 
    content: '•'; color: var(--gold-primary); 
    position: absolute; left: 0; font-weight: bold; 
}

/* --- SECCIÓN HORARIO --- */
.schedule-section {
    background-color: var(--bg-footer);
    color: var(--);
    padding: 50px 0;
}
.schedule-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 30px;
}
.schedule-text h3 { color: var(--gold-primary); font-size: 1.8rem; }
.schedule-hours p { font-size: 1.1rem; margin-bottom: 5px; }
.schedule-note { color: var(--gold-primary); font-style: italic; margin-top: 10px; }

/* --- MAPA Y TEXTO SEO FINAL --- */
.map-container { line-height: 0; margin-top: 50px;}
.map-container iframe { filter: grayscale(0.2) contrast(1.1); }

/* --- 4. TEXTO SEO ESTILO IMAGEN 6 --- */
.seo-footer-text { 
    padding: 0 20px; 
    text-align: justify; /* Centrado como pediste */
    border-top: none;   /* Quitamos la línea de arriba si estorba */
    max-width: 900px;   /* Evita que las líneas sean demasiado largas */
    margin: 0 auto;     /* Centra el bloque en la pantalla */
}

.seo-footer-text h3 { 
    margin-bottom: 20px; 
    color: var(--text-main); 
    font-size: 2rem;
}

.seo-footer-text p { 
    font-size: 1rem; 
    color: var(--text-light); 
    margin-bottom: 40px; 
    
    /* ELIMINAMOS LAS COLUMNAS */
    column-count: 1 !important; 
    column-gap: 0;
}

/* --- RESPONSIVE ADAPTATION --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .schedule-flex { flex-direction: column; text-align: center; }
    .seo-footer-text p { column-count: 1; }
    .lead-text { font-size: 1.2rem; }
}


/* --- 3. MAPA CONTROLADO --- */
.map-wrapper {
    width: 100%;
    max-width: 1000px; /* Aquí controlas el ancho máximo (como la imagen 4) */
    height: 450px;     /* Altura controlada */
    margin: 0 auto 40px auto; /* Centrado y con margen abajo */
    border-radius: 20px; /* Esquinas redondeadas */
    overflow: hidden;    /* Recorta el mapa en las esquinas */
    box-shadow: var(--shadow);
    border: 5px solid var(--bg-card); /* Opcional: un marco blanco elegante */
}

/* Ajuste específico para modo oscuro en el mapa (opcional) */
@media (prefers-color-scheme: dark) {
    .map-container iframe { filter: invert(100%) hue-rotate(190deg) saturate(2.4) brightness(1)}
}