/* ==========================================================================
   1. CONFIGURACIÓN GENERAL Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f4f4;
}

section {
    animation: fadeUp 1s ease;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

h2 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
    width: 100%;
    background: #00a651;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    transition: 0.4s;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 10%;
}

.scroll-header {
    background: #00a651;
    padding: 10px 8%;
    transition: 0.4s;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 70px;
    width: 220px;
}

.logo span {
    color: white;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #ffd000;
}

.menu-btn, .menu-toggle {
    display: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/fondo3.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 10%;
}

.overlay {
    max-width: 900px;
    animation: fadeHero 1.5s ease;
}

.hero-logo {
    width: 180px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 68px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.typing {
    border-right: 4px solid #00a651;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

.btn, .hero-btn {
    display: inline-block;
    background: #ffd000;
    color: #002f75;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero-btn {
    background: #00a651;
    color: white;
    padding: 18px 45px;
    font-size: 18px;
}

.btn:hover, .hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background: #00c763;
}

.mini-info {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.mini-info span {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
}

/* ==========================================================================
   4. COMPONENTES (CARRUSEL, CARDS, GRIDS, COMPLEMENTOS)
   ========================================================================== */
.carrusel {
    padding: 80px 10%;
    text-align: center;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
}

.slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: 1s;
}

.slider img.active {
    opacity: 1;
}

/* Tarjetas Generales */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 100px 10%;
    background: #f5f5f5;
}

.card {
    background: white;
    padding: 50px 35px;
    border-radius: 25px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 55px;
    color: #00a651;
    margin-bottom: 25px;
}

.card h3 {
    font-size: 30px;
    color: #002f75;
    margin-bottom: 20px;
}

.card p {
    line-height: 1.8;
    color: #555;
}

.contenedor-tarjetas {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
    margin-top: 0px;
}

/* Elementos Flotantes (Wsp, Top) */
.whatsapp, .wsp-float {
    position: fixed;
    right: 25px;
    bottom: 35px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 38px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: 0.3s;
}

.wsp-float {
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    font-size: 35px;
}

.whatsapp:hover, .wsp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

#topBtn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #00a651;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

#topBtn:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   5. SECCIONES ESPECÍFICAS
   ========================================================================== */

/* Servicios */
.servicios {
    padding: 50px 8%;
    text-align: center;
}

.servicios-detalle {
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.servicios-left {
    width: 30%;
    background: #f5f5f5;
    padding: 50px 30px;
    text-align: center;
}

.servicios-left img {
    width: 220px;
    max-width: 100%;
    margin-bottom: 30px;
}

.servicios-left h3 {
    color: #00a651;
    font-size: 32px;
    margin-bottom: 20px;
}

.servicios-left p {
    color: #333;
    line-height: 1.8;
}

.servicios-right {
    width: 70%;
    padding: 50px;
}

.servicios-right h2 {
    color: #002f75;
    font-size: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.servicios-right p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

.lista-servicios {
    display: flex;
    gap: 80px;
    margin-bottom: 40px;
}

.lista-servicios ul {
    list-style: none;
    padding: 0;
}

.lista-servicios li {
    margin-bottom: 15px;
    font-size: 18px;
}

.lista-servicios li::before {
    content: "✔";
    color: #00a651;
    margin-right: 10px;
}

.servicios-right hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Productos */
.productos h2 {
    text-align: center;
    font-size: 65px;
    color: #002f75;
    margin-bottom: 80px;
    width: 100%;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.producto {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: 0.4s;
    text-align: center;
}

.producto:hover {
    transform: translateY(-10px);
}

.producto img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: white;
    padding: 20px;
}
/* ==========================================================================
   AGREGADO: ESTILO DETALLADO PARA EL TEXTO INTERNO DEL PRODUCTO
   ========================================================================== */

/* 1. Cambia el título grande a verde y le da espacio abajo */
.producto h3, .producto h4 {
    color: #00a651 !important; /* El verde corporativo exacto */
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important; /* Separa el título de las características técnico-comerciales */
    padding: 0 20px !important;
    line-height: 1.3 !important;
}

/* 2. Configura los párrafos técnicos en negro puro y con buena separación */
.producto p {
    color: #000000 !important; /* Negro nítido y legible */
    font-size: 16px !important;
    line-height: 1.8 !important; /* Da aire entre cada línea para que no se vea amontonado */
    margin-bottom: 15px !important; /* Separa un párrafo de otro */
    padding: 0 25px !important; /* Evita que el texto toque los bordes de la tarjeta */
}

/* Nosotros, Misión y Visión */
.nosotros {
    padding: 100px 10%;
    background: #f8f8f8;
    text-align: center;
}

.nosotros-texto {
    flex: 1;
}

.nosotros-texto h2 {
    font-size: 45px;
    margin-bottom: 25px;
    color: #002f75;
}

.nosotros-texto p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.nosotros-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mini-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.mini-card:hover {
    transform: translateY(-8px);
}

.mision-vision {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.mision, .vision {
    flex: 1;
    padding: 40px;
    border-radius: 15px;
    background: white;
}

.servicio-card, .mision, .vision {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Por Qué Elegirnos */
.porque-elegirnos {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.porque-izquierda {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.porque-izquierda h2 {
    color: #0b74c9;
    font-size: 55px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.porque-izquierda h3 {
    font-size: 32px;
    color: #222;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 350px;
}

.porque-izquierda img {
    width: 180px;
    margin-top: 10px;
}

.porque-derecha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.porque-item h4 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #222;
}

.porque-item p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Galería */
.galeria {
    padding: 100px 10%;
    background: white;
    text-align: center;
}

.galeria h2 {
    font-size: 45px;
    color: #002f75;
    margin-bottom: 60px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.galeria-item img, .galeria-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    transition: 0.4s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.galeria-item:hover img, .galeria-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Estadísticas / Contador */
.contador, .estadisticas {
    background: #00a651;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px 10%;
    text-align: center;
}

.estadisticas {
    background: transparent;
    margin-top: 30px;
    gap: 25px;
}

.contador h2 {
    font-size: 60px;
    margin-bottom: 10px;
    color: white;
}

.stat {
    background: white;
    width: 300px;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 60px;
    color: #ffd000;
    margin-bottom: 10px;
}

.stat p {
    font-size: 24px;
    color: #333;
    margin: 0;
}

/* Contacto y Formularios */
.seccion-contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.contacto {
    background: #00a651;
    padding: 80px 10%;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.contacto-info {
    flex: 1;
    min-width: 300px;
    color: white;
    text-align: left;
}

.contacto-info h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: white;
    text-align: left;
}

.contacto-info p {
    font-size: 20px;
    line-height: 1.6;
}

.contacto-form {
    flex: 1;
    min-width: 350px;
}

.contacto-form h2 {
    color: white;
    margin-bottom: 30px;
}

.formulario, .contacto form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario input, .formulario textarea,
.contacto input, .contacto textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.formulario textarea {
    height: 140px;
    resize: none;
}

.formulario button, .contacto button {
    background: #ffffff;
    color: #00a651;
    border: none;
    padding: 18px 30px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 250px;
    margin: 20px auto 0;
    transition: 0.3s;
}

.formulario button:hover {
    opacity: 0.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #002f75;
    font-size: 34px;
    margin-bottom: 20px;
}

.info-card p {
    line-height: 1.8;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. FOOTER (UNIFICADO)
   ========================================================================== */
footer, .footer {
    background: #00a651;
    color: white;
    padding: 70px 10% 30px;
    display: block;
}

.footer-contenido {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo, .footer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-logo h3, .footer-col h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: white;
}

.footer-links, .footer-contacto {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-links h4, .footer-contacto h4 {
    margin-bottom: 20px;
    font-size: 22px;
}

.footer-links a, .footer-col a {
    color: white; /* Corregido: antes estaba negro */
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-links a:hover, .footer-col a:hover {
    color: #ffd000;
    opacity: 0.8;
}

.footer-logo-img {
    width: 150px;
    margin-bottom: 15px;
}

.footer-bottom, .footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: white;
}

.footer-copy {
    background: #088540;
    margin: 0;
    padding: 15px;
}

/* ==========================================================================
   7. MEDIA QUERIES (RESPONSIVE CELULARES CON MENÚ DESPLEGABLE)
   ========================================================================== */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* --- HEADER Y MENÚ HAMBURGUESA --- */
    header {
        position: relative;
        padding: 15px 5% !important;
        display: flex !important;
        flex-direction: row !important; /* Mantiene logo y rayitas en la misma linea */
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo {
        align-items: flex-start !important;
    }

    /* Mostramos las tres rayitas solo en el celular */
    .menu-toggle {
        display: block !important;
        color: white !important;
        font-size: 28px !important;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-btn {
        display: none !important; /* Ocultamos el duplicado si existe */
    }

    /* Menú oculto por defecto (se moverá hacia abajo al hacer clic) */
    nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #00a651 !important;
        max-height: 0 !important; /* Oculto */
        overflow: hidden !important;
        transition: max-height 0.4s ease-in-out !important;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Clase que añadirá JavaScript para abrir el menú */
    nav.active {
        max-height: 300px !important; /* Altura suficiente para mostrar los enlaces */
    }

    nav a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px !important;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* --- HERO PRINCIPAL Y AJUSTES DE TEXTO --- */
    .hero {
        height: auto !important;
        padding: 140px 5% 70px !important;
    }

    .hero h1 { font-size: 32px !important; line-height: 1.2 !important; }
    .hero p { font-size: 16px !important; }

    /* --- SECCIÓN NUESTROS SERVICIOS --- */
    .servicios-detalle { flex-direction: column !important; margin: 30px 15px !important; width: auto !important; }
    .servicios-left, .servicios-right { width: 100% !important; padding: 30px 20px !important; }
    .servicios-right h2 { font-size: 24px !important; text-align: center !important; }
    .lista-servicios { flex-direction: column !important; gap: 10px !important; }

    /* --- PRODUCTOS Y SECCIONES GRID --- */
    .productos h2 { font-size: 36px !important; margin-bottom: 40px !important; }
    .productos-grid, .galeria-grid { grid-template-columns: 1fr !important; padding: 0 15px !important; }
    .producto { width: 100% !important; }
    .producto img { height: 200px !important; }

    /* --- POR QUÉ ELEGIRNOS --- */
    .porque-elegirnos { grid-template-columns: 1fr !important; padding: 20px !important; }
    .porque-izquierda h2 { font-size: 34px !important; }
    .porque-izquierda h3 { font-size: 22px !important; }
    .porque-derecha { grid-template-columns: 1fr !important; gap: 20px !important; }

    /* --- ESTADÍSTICAS Y CONTACTO --- */
    .estadisticas { flex-direction: column !important; gap: 20px !important; }
    .stat { width: 100% !important; }
    .contacto { flex-direction: column !important; padding: 40px 20px !important; }
    .contacto-form { width: 100% !important; min-width: 100% !important; }
    .formulario button { width: 100% !important; }
}

/* ==========================================================================
   8. ANIMACIONES
   ========================================================================== */
@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeHero {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fondoZoom {
    from { background-size: 100%; }
    to { background-size: 110%; }
}

@keyframes fadeCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   AGREGADO: CORRECCIÓN DE NÚMEROS VERDES Y MISIÓN/VISIÓN EN TARJETAS
   ========================================================================== */

/* Forzar los números de las estadísticas en el verde plano de la captura */
.stat h3 {
    font-size: 52px !important;
    font-weight: 800 !important;
    color: #00a651 !important; /* El verde vibrante exacto */
    background: none !important; /* Eliminamos el degradado que los ponía azules */
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    margin-bottom: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Contenedor de Misión y Visión organizado en dos columnas */
.mision-vision {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
    gap: 30px !important;
    max-width: 1100px !important;
    margin: 40px auto 0 !important;
    padding: 0 20px !important;
}

/* Formato de Tarjetas Ejecutivas Blancas para Misión y Visión */
.mision, .vision {
    background: #ffffff !important;
    padding: 45px 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

.mision:hover, .vision:hover {
    transform: translateY(-5px) !important;
}

/* Títulos internos de Misión y Visión en azul corporativo */
.mision h3, .vision h3 {
    font-size: 28px !important;
    color: #002f75 !important; /* El azul oscuro elegante de la captura */
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.mision p, .vision p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
}

/* ==========================================================================
   AGREGADO: FORMATO EN CUADRADOS PARA "POR QUÉ ELEGIRNOS"
   ========================================================================== */
.porque-elegirnos {
    max-width: 1200px !important;
    margin: 60px auto !important;
    padding: 40px 20px !important;
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 50px !important;
    align-items: center !important;
}

.porque-izquierda {
    text-align: center !important;
}

.porque-izquierda h2 {
    color: #002f75 !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.porque-izquierda img {
    width: 200px !important;
    height: auto !important;
    object-fit: contain !important;
    margin-top: 20px !important;
}

.porque-derecha {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
}

/* Los bloques cuadrados limpios con bordes suaves */
.porque-item {
    background: #ffffff !important;
    padding: 35px 30px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03) !important;
    text-align: left !important;
}

.porque-item h4 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
    color: #002f75 !important;
    font-weight: 700 !important;
}

.porque-item p {
    font-size: 15px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
}

/* Adaptación para celulares */
@media (max-width: 768px) {
    .porque-elegirnos, .porque-derecha, .mision-vision {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
/* ==========================================================================
   AGREGADO DEFINITIVO: SECCIÓN SERVICIOS (SIN TOCAR HTML)
   ========================================================================== */

/* Forzar a que el título principal se pegue a las tarjetas */
.servicios h2, #servicios h2 {
    font-size: 48px !important;
    color: #002f75 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important; /* Reduce drásticamente el espacio vacío */
    margin-top: 20px !important;
    text-align: center !important;
}

/* Reducir el margen superior del contenedor de los cuadros */
.servicios-grid, .servicios .grid, .servicios div[class*="grid"] {
    margin-top: 10px !important; 
    gap: 30px !important;
}

/* Aplicar la modernización a CUALQUIER cuadro dentro de la sección servicios */
.servicios div div, .servicio-card, .servicio {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important; /* Sombra sutil moderna */
    border: 1px solid #e2e8f0 !important;
    border-bottom: 5px solid #00a651 !important; /* Base verde corporativa */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Efecto interactivo al pasar el mouse por encima */
.servicios div div:hover, .servicio-card:hover, .servicio:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 166, 81, 0.1) !important;
}

/* Títulos internos de cada tarjeta en azul oscuro */
.servicios h3, .servicios h4 {
    color: #002f75 !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

/* ==========================================================================
   📱 ARREGLO FINAL PARA CELULARES (NO BORRAR LO DE ARRIBA)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Achica un poco más la letra para que "TRANSFORMADORES" no choque con el borde */
    .hero-content h1, .display-4, h1 {
        font-size: 32px !important; 
        line-height: 1.2 !important;
        padding: 0 10px !important; /* Le da espacio a los lados */
    }
    
    /* 2. Achica el título de servicios para que también respire */
    .servicios h2, #servicios h2, .titulo-seccion {
        font-size: 24px !important; 
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    /* 3. Mueve el chat de Gurú hacia la IZQUIERDA para que no tape la flecha ni a WhatsApp */
    #ia-sdk-root, [id^="ia-sdk"], .ia-sdk-container {
        left: 20px !important;  /* Lo tira para el lado izquierdo de la pantalla */
        right: auto !important; /* Desactiva el lado derecho */
        bottom: 20px !important; /* Lo deja abajo normal */
    }
}