/* ============================================================
   1. RESET + TIPOGRAFÍAS (Mantengo tus fuentes)
   ============================================================ */
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700');
@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700');

/*Fuente helly*/
@font-face {
  font-family: 'helly-font';
  src: url("../fonts/helly.woff2") format("woff2"),
       url("../fonts/helly.woff") format("woff"),
       url("../fonts/helly.ttf") format("truetype"),
       url("../fonts/helly.svg") format("svg"),
       url("../fonts/helly.eot") format("eot");
       
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #093554;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}
/* ============================================================
   3. GLOBALES (Centrado Real)
   ============================================================ */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px; /* Margen de seguridad para móviles */
    width: 100%;
    position: relative; /* Base para el posicionamiento del idioma */
}

/* ============================================================
   4. TOPBAR (Corregido para centrar y apilar)
   ============================================================ */
.topbar {
    background: var(--main-bg);
    color: var(--text-light);
    font-size: 16px; /* Bajado un poco para que quepa mejor */
    padding: 10px 0;
}

/* Forzamos que el container del topbar apile en móvil y sea fila en PC */
.topbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
/* Quitar cualquier fondo del email */
.header-email {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .topbar .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-social a {
    color: #fff;
    font-size: 18px;
}
/* --- Email en la topbar sin fondo --- */
.header-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700; /* Más énfasis */
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.header-email i {
    font-size: 18px;
    color: #fff;
}

.header-email:hover {
    color: #ffcc00; /* O el color que prefieras al pasar el ratón */
}

/* ============================================================
   5. HEADER & NAVBAR (Optimizado)
   ============================================================ */
nav.navbar {
    background: var(--main-bg);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-logo {
    position: absolute; /* Lo saca del flujo normal para moverlo con libertad */
    top: -80px;         /* Ajusta este número: más negativo = más arriba */
    left: 0;            /* Lo alinea al inicio del contenedor */
    z-index: 1050;      /* Asegura que esté por encima de otros elementos */
    
    /* Opcional: define un tamaño fijo para que no se deforme al moverlo */
    width: 250px; 
    height: auto;
    transition: all 0.3s ease; /* Suaviza el movimiento si cambias algo */
}

/* Menú y Enlaces */
.navbar-nav .nav-link {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 45px;
    height: 3px;
    background-color: #f1c40f;
}
.navbar-nav .nav-link:hover {
    color: #ffcc00 !important; /* Cambia al color que prefieras */
    transition: color 0.3s ease; /* Hace que el cambio sea suave */
}

/* Selector de Idioma (EL CAMBIO CLAVE) */
.idioma-container {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1100;
    padding-bottom: 6px; /* ESTA ES LA CLAVE */
}

.lang-select {
    padding: 10px 14px !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    border-radius: 20px;
    background: #093453;
    color: #fff;
    margin-bottom: 3px !important;
}

.lang-flag {
    width: 22px;
    height: auto;
}

/* Posicionamiento del idioma: Pegado a la derecha en PC, fluido en Móvil */
@media (min-width: 992px) {
    .idioma-container {
        position: absolute;
        right: 15px;
        top: 5px;
        transform: none;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 1100;
    }
}

@media (max-width: 991px) {
    .idioma-container {
        margin-left: auto;
        margin-right: 10px;
    }
}
#header,
#header * {
    border-bottom: none !important;
    box-shadow: none !important;
}

#header .lang-select {
    border: 1px solid rgba(255,255,255,0.6) !important;
  
}

#header {
    margin-bottom: 20px;
    position: relative;
}

#header::after {
    content: "";
    display: block;
    height: 8px;
    background: linear-gradient(
        to bottom,
        rgba(0, 123, 255, 0.0) 0%,
        rgba(0, 123, 255, 0.4) 50%,
        rgba(0, 123, 255, 0.0) 100%
    );
    margin-top: 8px; /* en vez de -2px, la BAJAMOS */
}

/* BREADCRUMB centrado y con degradado azul */
.breadcrumb-nav {
    position: relative;
    margin-bottom: 40px;
    padding: 6px 0; /* espacio para centrar el texto */
}

.breadcrumb-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -25px; /* este valor centra visualmente el texto */
    height: 8px;
    background: linear-gradient(
        to bottom,
        rgba(0, 123, 255, 0) 0%,
        rgba(0, 123, 255, 0.4) 50%,
        rgba(0, 123, 255, 0) 100%
    );
}

/* ============================================================
   7. ABOUT
   ============================================================ */
.about {
     padding-top: 90px;
     background-color: #fff;
}

.about .titlepage h2 {
    font-size: 36px;
    color: #154492;
    font-weight: 700;
    text-transform: uppercase;
}
.about_box span {
    font-size: 17px;
    font-weight: 600;
    color: #9aacb9;
    margin-top: 20px;
    display: block;
}

.about .titlepage {
     text-align: left;
     padding-bottom: 25px;
}

.about_img {
     padding-right: 20px;
}

.about_img figure {
     margin: 0;
}

.about_img figure img {
     min-width: 260px;
}

.about_box {
     text-align: left;
     max-width: 668px;
     width: 100%;
}

.about_box h3 {
     color: #0b0b0b;
     font-size: 25px;
     font-weight: bold;
     padding: 0;
     line-height: 30px;
     text-transform: uppercase;
}

.try {
     float: left;
}

.about_box p {
     font-size: 17px;
     padding-top: 25px;
     line-height: 30px;
     text-align: left;
     color: #0d0d0d;
     display: inline-block;
     padding-bottom: 30px;
}

.margin_bottom2 {
     margin-bottom: 30px;
}

.about .read_morea {
     margin-top: 7px;
     padding: 8px 0;
     margin-left: 40px;
     background-color: #f2db18;
     max-width: 168px;
     width: 100%;
     display: inline-block;
     text-align: center;
     font-size: 18px;
     color: #fff;
     font-weight: 600;
}

.about .read_morea i {
     padding-left: 5px;
}

.about .read_morea:hover {
     background-color: #000;
}
.col-12.col-md-4.col-lg-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.colab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.colab-item img {
    width: 100px; /* tamaño ideal */
    height: auto;
    object-fit: contain;
}

.colab-item span {
    font-size: 17px;
    font-weight: 600;
    color: #154492;
}



/** end about section **/

/* ============================================================
   8. SERVICES
   ============================================================ */

.service {
     background-color: #fff;
     padding-top: 80px;
}

.service .service_box {
     margin-bottom: 30px;
}

.service .service_box img {
     display: block;
}

.service .service_box h3 {
     margin-top: 20px;
     color: #323639;
     font-size: 17px;
     font-weight: 700;
     line-height: 20px;
     text-transform: uppercase;
     border-bottom: #020001 solid 3px;
     display: inline-block;
     padding-bottom: 6px;
     transition: ease-in all 0.5s;
}

.service .service_box p {
     color: #323639;
     font-size: 17px;
     padding-top: 15px !important;
     padding: 0;
     line-height: 25px;
}

#ho_color:hover.service_box h3 {
     transition: ease-in all 0.5s;
     color: #f2db18;
     border-bottom: #f2db18 solid 3px;
}

.service .read_more {
     color: #f2db18 !important;
     margin: 0 auto;
     max-width: 140px;
     width: 100%;
     display: block;
     display: table;
     margin-top: 40px;
}

.service .read_more::before {
     border-right: #f2db18 solid 1px;
     border-right-width: 1px;
     border-width: 90px;
}

/** end service section **/


/* ============================================================
   11. TEAM (VERSIÓN NUEVA)
   ============================================================ */

/* TEAM SECTION – versión limpia y moderna */

.team-section {
    padding: 80px 0;
    background: #f7f9fc;
    text-align: center;
}

.team-title {
    font-size: 40px;
    color: #0a3d62;
    margin-bottom: 50px;
}

/* Swiper */
.team-swiper {
    padding-bottom: 50px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

/* Tarjeta */
.team-member {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    width: 260px;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Foto */
.team-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

/* Texto */
.team-name {
    font-size: 20px;
    margin-top: 15px;
    color: #0a3d62;
}

.team-role {
    font-size: 16px;
    color: #555;
}
/* FIX DEFINITIVO PARA SWIPER */
.team-swiper {
    width: 100%;
    overflow: visible !important;
}

.team-swiper .swiper-wrapper {
    display: flex !important;
    width: max-content !important;
}

.team-swiper .swiper-slide {
    flex-shrink: 0 !important;
    width: auto !important;
}

.team-member {
    width: 260px !important;
}


/* ============================================================
   13. PRODUCTOS
   ============================================================ */

/* Fondo general del contenido */
#contenido-productos {
    background-color: #f5f5f5;
    padding: 40px 0;
}

/* Panel donde van los productos (para que el glass se vea bien) */
#lista-productos {
    background: rgba(0,0,0,0.04);
    padding: 40px 25px;
    border-radius: 20px;
    margin-top: 20px;
    row-gap: 20px;
    column-gap: 20px;
}

/* Tarjeta de producto estilo glassmorphism */
.product-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover elegante */
.product-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

/* Imagen del producto */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #000;
    padding: 6px;
}

/* Nombre del producto */
.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

/* Descripción */
.product-card p {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* Precio (si lo usas) */
.precio {
    font-size: 18px;
    font-weight: bold;
    color: #f1c40f;
    margin-top: 5px;
}

/* Ocultar título del detalle (provisional) */
.product-detail-section h1[data-i18n="detalle_producto"] {
    display: none;
}
#lista-productos:empty {
    display: none;
}
.product-detail-section {
    margin-bottom: 20px; /* o el valor que prefieras */
}
.product-detail-section .img-fluid {
    width: 100%;
    height: 380px; /* ajusta a tu gusto */
    object-fit: cover;
    border-radius: 8px; /* opcional */
}

/* Categorías */
/* ----------------------------- */
/* BOTONES DE CATEGORÍAS ARRIBA */
/* ----------------------------- */

.categoria-item {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.categoria-item:hover {
    background: rgba(255,255,255,0.3);
}

.active-category {
    background: rgba(255,255,255,0.8);
    color: #000;
    font-weight: bold;
    border: 1px solid #fff;
}

.mensaje-categorias {
    color: #0a3d62;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* ----------------------------- */
/* CONTENEDOR GENERAL DE LISTA   */
/* ----------------------------- */

#categorias {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: rgba(0,0,0,0.04);
    padding: 40px 25px;
    border-radius: 20px;
}

/* Título */
#categorias-titulo {
    font-size: 28px;
    font-weight: bold;
    color: #0a3d62;
    margin-bottom: 20px;
}

/* ----------------------------- */
/* TARJETA DE CATEGORÍA          */
/* ----------------------------- */

.categoria-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.categoria-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.categoria-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #000;
    padding: 6px;
}

.categoria-card span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.detalle-producto {
    position: relative;
}

.back-button {
    margin: 20px 0 10px 0;
}

.back-link {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    padding-left: 25px;
}

.back-link::before {
    content: "←";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: #f1c40f;
}

.back-link:hover {
    color: #f1c40f;
}



/* ============================================================
   14. CONTACT
   ============================================================ */

.contact {
     padding-top: 80px;
     background: #fff;
}

.contact .titlepage {
     text-align: center;
}

.contact .titlepage h2 {
     color: #0e0e0e;
}

.contact_form .contact_control {
     margin-bottom: 20px;
     width: 100%;
     height: 55px;
     background: transparent;
     color: #363636;
     font-size: 18px;
     font-weight: normal;
     border-bottom: #003471 solid 1px !important;
     border: inherit;
}

.contact_form .textarea {
     margin-bottom: 20px;
     width: 100%;
     background: transparent;
     color: #363636;
     font-size: 18px;
     font-weight: normal;
     padding-top: 10px;
     height: 150px;
     border-bottom: #003471 solid 1px !important;
     border: inherit;
}

.contact_form .send_btn {
     font-size: 20px;
     transition: ease-in all 0.5s;
     background-color: #f2db18;
     text-transform: uppercase;
     color: #fffefe;
     padding: 15px 0px;
     border-radius: 40px;
     max-width: 217px;
     width: 100%;
     display: block;
     margin-top: 30px !important;
     font-weight: 600;
     margin: 0 auto;
}

.contact_form .send_btn:hover {
     background-color: #092352;
     transition: ease-in all 0.5s;
     color: #fff;
}

#post_form *::placeholder {
     color: #363636;
     opacity: 1;
}

/* ============================================================
   15. FOOTER
   ============================================================ */

footer {
    background: linear-gradient(135deg, #0a3d62 0%, #082f4a 100%);
    color: #dce9f5;
    padding: 60px 0 30px;
    position: relative;
}

/* Línea decorativa superior */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd85c, #ffffff55, #ffd85c);
}

/* Títulos del footer */
.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 45px;
    height: 3px;
    background-color: #f1c40f;
}

/* Iconos sociales */
.footer-social i {
    font-size: 24px;
    margin: 0 8px;
}

/* LOGO — Ajustado para que no quede enorme y se centre mejor */
.footer-logo-img {
    width: 350px;          /* antes 400px — ahora más equilibrado */
    max-width: 80%;        /* evita que se desborde en móvil */
    display: block;
    margin: 0 auto;        /* centrado perfecto */
}

/* Texto inferior */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #c7d7e5;
}

/* Centrado de columnas superiores */
.footer-contact,
.footer-menu,
.footer-post,
.footer-newsletter {
    text-align: center;
}

/* Redes sociales centradas */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Separación entre las dos filas del footer */
.footer-second-row {
    margin-top: 40px;
}

/* ⭐ Centrado vertical perfecto del logo respecto a la columna de contacto */
.footer-second-row .row {
    display: flex;
    align-items: center;
}

/* Asegura que el contenedor del logo se comporte bien en flexbox */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ============================================================
   16. LOADER
   ============================================================ */

.loader_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader_bg.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #f1c40f;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 1. Seguridad Global: Evita que cualquier imagen futura rompa el diseño */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Limpieza de Figuras: HTML5 suele añadir márgenes por defecto a <figure> */
figure {
    margin: 0;
}

/* 3. El "Salvavidas": Evita el scroll horizontal fantasma en toda la web */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   FIX: CIERRE CORRECTO DEL MEDIA QUERY
   ============================================ */

@media (max-width: 767.98px) {
    .header-logo {
        position: static;
        width: 100px;
        margin-top: 0;
        display: block;
    }

    .navbar-brand {
        margin-right: 0;
    }
} /* ← cierre correcto */


/* ============================================================
   HERO TÉCNICO
   ============================================================ */

.technical-hero {
    text-align: center;
    margin-bottom: 60px; /* antes 110px, ahora más equilibrado */
}

.technical-hero h2 {
    font-size: 36px;
    color: #ffffff;
}

.technical-hero span {
    font-size: 20px;
    color:#ffd85c;
}

.technical-hero p {
    margin-top: 10px;
    font-size: 16px;
    color: #eaf4ff;
    opacity: 0.9;
}

/* ============================================================
   TARJETAS DE SERVICIO
   ============================================================ */

.service-page #services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 35px 25px;
    justify-content: center;
}
.service-card {
    flex: 0 1 calc(33.333% - 25px);
}

.service-page .service-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height: 520px; /* altura fija para alinear todo */
    margin-bottom: 80px;
}

/* ICONO */
.service-card .service-icon img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* FOTO GRANDE */
.service-card .service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* TÍTULO */
.service-card .service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DESCRIPCIÓN */
.service-card .service-desc {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BOTÓN */
.service-card .btn-service {
    display: inline-block;
    padding: 12px 26px;
    background: linear-gradient(135deg, #004aad, #007bff);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
}
.service-card * {
    color: #0f0f0f !important;
}
/* Breadcrumb */
.breadcrumb-nav {
    font-size: 15px;
    margin: 20px 0 25px 0;
    padding-left: 10px;
    color: #ccc;
}

.breadcrumb-nav a {
    color: #00aaff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #0088cc;
}

.breadcrumb-nav span {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb-nav .separator {
    margin: 0 8px;
    color: #888;
    font-weight: 300;
}
/* ============================================================
   BANNER — NUEVO, LIMPIO Y CENTRADO
   ============================================================ */

.banner_main {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a3d62 0%, #082f4a 100%);
    color: #eaf4ff;
}

.banner_main .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner_main .row {
    width: 100%;
    display: flex;
    align-items: center;
}

/* Columna del texto */
.banner_main .col-texto {
    flex: 0 0 75%; /* equivalente a col-9 */
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.banner_main .col-texto h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

/* Columna de la imagen */
.banner_main .col-imagen {
    flex: 0 0 25%; /* equivalente a col-3 */
    display: flex;
    justify-content: flex-end;
}

.banner_main .col-imagen figure {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.25);
}

.banner_main .col-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ============================================================
   HOME SECTION (index) – VERSIÓN FUSIONADA Y ESTABLE
   ============================================================ */

/* Contenedor principal */
#home {
    padding: 80px 0;
    background: #fff;
}

/* Centrado vertical de columnas */
#home .row {
    display: flex;
    align-items: center;
}

/* ============================================================
   HOME – IMÁGENES LATERALES
   ============================================================ */

#home .home_img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #09314d;
    border-radius: 16px;
    margin-bottom: 30px;
}

#home .home_img figure {
    width: 100%;
    aspect-ratio: 4/3;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

#home .home_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   HOME – COLUMNA DE TÍTULOS
   ============================================================ */

.home_title,
.home_subtitle {
    display: block;
    text-align: center;
    margin: 0 auto;
    color: #08304d;
    font-weight: 700;
    line-height: 1.2;
    font-size: 30px;
}

.home_textbox {
    margin-bottom: 40px;
}

/* ============================================================
   HOME – WRAPPER DE COLABORADORES
   ============================================================ */

#home .colaborador-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 10px;
    background: #09314d;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: left;

    /* Evita que se encoja al hacer zoom */
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#lista-colaboradores {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   HOME – TARJETAS DE COLABORADORES (DISEÑO HORIZONTAL)
   ============================================================ */

.colaborador-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;

    /* Evita que se encoja al hacer zoom */
    min-height: 95px;

    transition: transform .25s ease, box-shadow .25s ease;
}

.colaborador-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}

/* Logo izquierda */
.colaborador-logo {
    width: 60px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* Imagen derecha */
.colaborador-imagen {
    width: 60px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0.95;
}

/* Bloque central */
.colaborador-info {
    flex: 1;
    min-width: 0;
}

.colaborador-nombre {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}

.fuente-helly {
    font-family: 'helly-font';
}

.colaborador-descripcion {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

/* Alinear “Visita:” + URL + icono */
.colaborador-url {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.colaborador-url a {
    color: #064483;
    font-weight: 500;
    text-decoration: none;

    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.colaborador-url a::before {
    content: "🔗";
    font-size: 16px;
}

/* Colores correctos en tarjetas blancas */
.colaborador-nombre,
.colaborador-descripcion,
.colaborador-url strong {
    color: #222 !important;
}
/* --- Ajuste del bloque de URL en móvil --- */
@media (max-width: 768px) {
    .colaborador-url {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .colaborador-url a {
        font-size: 11px;
        word-break: break-all;
        white-space: nowrap;
        overflow-x: auto;
        display: block;
        max-width: 100%;
        text-align: center;
        padding-bottom: 2px; /* para que no tape el scroll */
    }

    .colaborador-url a::-webkit-scrollbar {
        height: 3px;
    }
}


/* --- Email moderno en la topbar --- */
.header-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700; /* Más énfasis */
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;

    /* Fondo suave tipo "glass" */
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);

    font-size: 16px; /* Más grande y visible */
    transition: background .25s ease, transform .25s ease;
}

.header-email i {
    font-size: 18px; /* Icono más grande */
}

/* Hover elegante */
.header-email:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ============================================================
   BANNER – CENTRADO COMPLETO EN MÓVIL
   ============================================================ */
@media (max-width: 768px) {

    /* La fila del banner pasa a columna y se centra */
    .banner_main .row {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Las dos columnas ocupan todo el ancho y se centran */
    .banner_main .col-texto,
    .banner_main .col-imagen {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* El bloque de texto centrado */
    .banner_main .text-bg {
        text-align: center !important;
        width: 100%;
    }

    .banner_main .text-bg h1 {
        text-align: center !important;
        margin: 0 auto 12px auto;
        width: 100%;
    }

    /* La imagen centrada y con ancho controlado */
    .banner_main .col-imagen figure {
        margin: 0 auto !important;
    }

    .banner_main .col-imagen img {
        display: block;
        margin: 0 auto;
        max-width: 260px; /* ajusta si la quieres más grande/pequeña */
        height: auto;
    }
}
@media (max-width: 768px) {

    /* Permitir que el título pueda partir línea */
    .banner_main .text-bg h1 {
        white-space: normal !important;
        word-break: break-word;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto 12px auto !important;
    }

    /* Centrar la fila del banner */
    .banner_main .row {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Centrar ambas columnas */
    .banner_main .col-texto,
    .banner_main .col-imagen {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Centrar la imagen */
    .banner_main .col-imagen img {
        margin: 0 auto !important;
        max-width: 260px;
        height: auto;
        display: block;
    }
}



