/**
 * WOOXI THEME - Desktop Styles
 * 
 * ESTRUCTURA DEL CSS:
 * 1. Configuración General y Utilidades
 * 2. Header y Pre-header
 * 3. Hero Section y Navegación
 * 4. Cards y Enlaces
 * 5. Secciones Específicas
 * 6. Footer
 * 7. Componentes Reutilizables
 * 8. Media Queries
 */

/* ===================================
   1. CONFIGURACIÓN GENERAL Y UTILIDADES
   =================================== */

/* Tipografía base - Usada en todo el sitio */
h1, h2, h3, h4, h5, h6, p {font-family: "Rethink Sans", sans-serif}

/* PRE HEADER - TICKER DE NOTICIAS 
   Usado en: header.php */
.pre-header {
    position: relative;
    line-height: 1.2;
    padding: 8px 0;
    overflow: hidden;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.ticker-content {
    white-space: nowrap;
    display: inline-block;
    will-change: transform;
}

/* Utilidades de tamaño de fuente - Usadas globalmente */
.fs-10 {font-size: 10px;}
.fs-12 {font-size: 12px;}
.fs-14 {font-size: 14px;}
.fs-15  {font-size: 15px;}
.fs-16  {font-size: 16px;}
.fs-17  {font-size: 17px;}
.fs-20 {font-size: 20px!important;}
.fs-res {font-size: 52px;}
.fw-800 { font-weight: 800 !important; }

.content-trip p, .content-ships p {font-size: 18px!important;}

/* ===================================
   2. HERO SECTION Y NAVEGACIÓN
   Archivos: header.php, includes/mods-portada/
   =================================== */

/* Hero Section - Altura específica para desktop */
@media (min-width: 1366px) {
    .hero-section {
        height: 342px !important;
        min-height: 670px !important;
    }
}

/* Hero de servicios - altura máxima para móviles */
@media (max-width: 768px) {
    .hero-section {
        max-height: 342px !important;
        height: 342px !important;
    }
}

/* Navegación unificada */
.navbar {
    background-color: #0D1E37 !important;
    transition: background-color 0.3s ease;
}


/* Navbar base con transición */
.navbar {
    transition: background-color 0.3s ease;
}

/* Personalizar bg-primary para que use el color del tema */
.navbar.bg-primary {
    background-color: #0D1E37 !important;
}




.navegacion {
    color: white !important;
}

/* BOTONES HERO - Estilos y animaciones */
.hero-buttons .btn-outline-light {
    border: 2px solid white;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #0087CE !important;
    border-color: #0087CE !important;
    color: white !important;
}

/* Flechas en botones outline - Animación en hover */
.btn-outline-light .flecha-enlace {
    filter: brightness(0) invert(1);
    width: 14px;
    height: 15px;
    transition: transform 0.3s ease;
}

.btn-outline-light:hover .flecha-enlace {
    transform: rotate(45deg);
}

/* Hover específico para botón WhatsApp */
.btn-outline-light:has(.fa-whatsapp):hover,
a[href*="wa.me"].btn-outline-light:hover {
    background-color: #279F38 !important;
    border-color: #279F38 !important;
    color: white !important;
}

/* ===================================
   3. CARDS Y ENLACES
   Archivos: includes/cards/card-productos.php, includes/mods-portada/cards-enlaces.php
   =================================== */

/* CARDS ENLACES - Estructura base y overlay */
.card-enlace {
    position: relative;
}

.card-enlace-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #0D1E37 0%, rgba(13, 30, 55, 0.8) 50%, transparent 100%);
}

.card-enlace-link {
    text-decoration: none !important;
}

.card-enlace-link:hover {
    text-decoration: none !important;
}

.card-enlace-link:hover .flecha-enlace {
    transform: rotate(45deg);
}

/* CARDS ENLACES SWIPER - Configuración del carousel 
   Usado en: includes/mods-portada/cards-enlaces.php */
.cards-enlaces-swiper {
    overflow: visible;
}

.cards-enlaces-swiper .swiper-slide {
    height: auto;
}

/* SERVICIOS PAGE SWIPER - Configuración específica
   Usado en: includes/servicios.php */
.servicios-page-swiper {
    overflow: visible;
}

.servicios-page-swiper .swiper-slide {
    height: auto;
}

/* NUESTROS SERVICIOS - Overlay y efectos
   Usado en: includes/mods-portada/nuestros-servicios.php */
.servicio-overlay-bg {
    background: rgba(13, 30, 55, 0.4);
    transition: background 0.3s ease;
}

.servicio-descripcion {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.servicio-item:hover .servicio-overlay-bg {
    background: rgba(13, 30, 55, 0.8);
}

.servicio-item:hover .servicio-descripcion {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   4. FOOTER STYLES
   Archivo: footer.php
   =================================== */

/* Container responsive del footer */
.footer-container {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

/* Breakpoints específicos del footer */
@media (min-width: 1366px) and (max-width: 1919px) {
    .footer-container {
        max-width: none;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 1920px) {
    .footer-container {
        max-width: 1320px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Tabla del footer - Layout principal */
.footer-table {
    border-collapse: collapse;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: normal;
}

/* Todos los textos del footer en 14px */
.footer-table * {
    font-size: 14px !important;
}

/* Títulos del footer como span en 14px */
.footer-table .footer-title {
    font-size: 14px !important;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

/* Logo del footer */
.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 24px;
}

/* Celdas de la primera fila - anchos específicos */
.footer-cell-a {
    width: 29%; /* Logo y contacto */
    padding: 12px 12px 32px 0;
    border-right: 1px solid white;
    vertical-align: top;
}

.footer-cell-b {
    width: 15%; /* Redes sociales */
    padding: 12px 12px 32px 12px;
    border-right: 1px solid white;
    vertical-align: top;
}

.footer-cell-c {
    width: 25%; /* Alianzas más espaciosas */
    padding: 12px 12px 32px 12px;
    border-right: 1px solid white;
    vertical-align: top;
}

.footer-cell-d {
    width: 28%; /* Menú reducido (45% - 13% = 32%) */
    padding: 12px 12px 32px 12px;
    vertical-align: top;
}

.footer-cell-e {
    width: 3%; /* Pequeño espacio final */
    padding: 12px 0 32px 0;
    vertical-align: top;
}

/* Línea horizontal delgada de 1px */
.footer-with-line {
    border-top: 1px solid white;
}

/* Celdas de la segunda fila */
.footer-cell-bottom-a {
    padding: 32px 12px 12px 0;
    vertical-align: top;
}

.footer-cell-bottom-b {
    padding: 32px 12px 12px 12px;
    border-left: 1px solid white;
    border-right: 1px solid white;
    vertical-align: top;
}

.footer-cell-bottom-unified {
    padding: 32px 12px 12px 12px;
    vertical-align: top;
}

/* Iconos de redes sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    color: #0D1E37;
}

/* Container de alianzas */
.alianzas-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px 0; /* 12px vertical entre filas, 0px horizontal */
}

/* Logos de alianzas */
.footer-alianza-logo {
    height: 20px;
    width: 33.333%;
}

/* Menú del footer */
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    position: relative;
}

/* Quitamos las líneas separadoras */
.footer-menu li::after {
    display: none;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: rgba(255,255,255,0.8);
}



/* ===== BADGES DEL MENÚ FOOTER ===== */

/* Estilos para los badges del menú footer - Copia exacta de .guia-marca */
.footer-menu .badge {
    font-size: 14px !important;
    font-weight: normal !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin-right: 3px !important;

    display: inline-block !important;
    line-height: 1.3 !important;
    color: white !important;
    background-color: #0087CE70 !important; /* Color celeste con transparencia */
    border: none !important; /* Eliminar cualquier border de Bootstrap */
    vertical-align: baseline !important; /* Alineación consistente */
}

/* Sin efectos hover */
.footer-menu .badge:hover {
    background-color: #0087CE70 !important; /* Mismo color */
}



/* ===== SECCIÓN IRAM ===== */
.iram {
    background: linear-gradient(90deg, #0087CE 0%, #0D1E37 100%);
    margin-top: 80px !important; /* Espacio para que la imagen sobresalga */
}

/* ===== SECCIÓN EBOOK ===== */
.ebook {
    background: linear-gradient(90deg, #0087CE 0%, #0D1E37 100%);
    margin-top: 80px !important; /* Espacio para que la imagen sobresalga */
}

.col-image {
    position: relative;
    overflow: visible;
}


.iram-image {
    position: absolute;
    top: -155px; /* La imagen sobresale por encima de la sección */
    left: -180px; /* Ajustado para que sobresalga hacia la izquierda */
    width: 340px;
    height: auto;
    z-index: 10;
}


.iram .container {
    padding-top: 60px; /* Espacio para la imagen que sobresale */
}

.iram-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
}

.iram-text {
    font-size: 14px;
    line-height: 1.4;
}

.ebook-image {
    position: absolute;
    top: -120px; /* La imagen sobresale por encima de la sección */
    left: -120px; /* Ajustado para que sobresalga hacia la izquierda */
    width: 250px;
    height: auto;
    z-index: 10;
}

.ebook-image-2 {
    position: absolute;
    top: -120px; /* La imagen sobresale por encima de la sección */
    left: -120px; /* Ajustado para que sobresalga hacia la izquierda */
    width: 300px;
    height: auto;
    z-index: 10;
}


.ebook .container {
    padding-top: 60px; /* Espacio para la imagen que sobresale */
}

.ebook-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
}

.ebook-text {
    font-size: 14px;
    line-height: 1.4;
}



/* ===== GUÍA DE PRODUCTOS ===== */
.guia-productos {
    background-color: #ffffff;
}

.guia-titulo {
    color: #333;
}

.guia-subtitulo {
    color: #0087CE;
}

/* Configuración del Swiper */
.guia-swiper {
    overflow: visible;
    padding: 20px 0;
}

.guia-swiper .swiper-slide {
    width: auto; /* Deja que Swiper maneje el ancho automáticamente */
    flex-shrink: 0; /* Evita que los slides se compriman */
}

/* Tarjetas de productos */
.guia-card {
    background-color: #F3F2F2;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guia-card-titulo {
    font-size: 19px;
}

.guia-card-descripcion {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    height: 94px;
}

/* Marcas */

.guia-marca {
    font-size: 14px !important;
    font-weight: normal !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin-right: 3px !important;
    display: inline-block !important;
    line-height: 1.3 !important;
}

/* Footer de la tarjeta */
.guia-card-footer {
    border-top: 1px solid;
    padding-top: 10px;
    margin-top: auto;
}

.guia-enlace {
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
}

.guia-enlace:hover {
    text-decoration: none;
}

/* Colores específicos según selección */
.guia-card.color-celeste .guia-card-titulo {
    color: #0087CE;
}

.guia-card.color-celeste .guia-marca,
.color-celeste .guia-marca {
    color: #0087CE !important;
    background-color: rgba(0, 135, 206, 0.15) !important;
}

.guia-card.color-verde .guia-card-titulo {
    color: #279F38;
}

.guia-card.color-verde .guia-marca {
    color: #279F38;
    background-color: rgba(39, 159, 56, 0.15);
}

.guia-card.color-violeta .guia-card-titulo {
    color: #752E87;
}

.guia-card.color-violeta .guia-marca {
    color: #752E87;
    background-color: rgba(117, 46, 135, 0.15);
}

/* Flecha de enlace */
.flecha-enlace {
    width: 14px;
    height: 15px;
    transition: transform 0.3s ease;
}

.guia-enlace:hover .flecha-enlace {
    transform: rotate(45deg) translate(3px, -3px);
}

/* Container que se expande a la derecha */
.container-expand-right {
  margin-left: auto !important;    /* Mantiene margen izquierdo original */
  margin-right: 0 !important;      /* Elimina margen derecho */
  padding-right: 0 !important;     /* Quita padding derecho sobrante */
  max-width: none !important;      /* Remueve límite ancho máximo de Bootstrap */
}

@media (min-width: 576px) {
  .container-expand-right { width: calc(100% - ((100% - 540px) / 2)) !important; }
}
@media (min-width: 768px) {
  .container-expand-right { width: calc(100% - ((100% - 720px) / 2)) !important; }
}
@media (min-width: 992px) {
  .container-expand-right { width: calc(100% - ((100% - 960px) / 2)) !important; }
}
@media (min-width: 1200px) {
  .container-expand-right { width: calc(100% - ((100% - 1140px) / 2)) !important; }
}
@media (min-width: 1400px) {
  .container-expand-right { width: calc(100% - ((100% - 1320px) / 2)) !important; }
}



/* ===== SECCIÓN FORMACIÓN ===== */
.formacion {
    background: linear-gradient(90deg, #0D1E37 0%, #3CAB87 100%);
}

.formacion-logo {
    max-width: 300px;
    height: auto;
}

.formacion-border {
    width: 100%;
    height: 1px;
    background-color: #3CAB87;
}

.formacion-text {
    font-size: 14px;
    line-height: 1.4;
}

.video-placeholder {
    min-height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

/* Flecha blanca en sección formación */
.formacion .flecha-enlace {
    filter: brightness(0) invert(1);
    width: 14px;
    height: 15px;
    transition: transform 0.3s ease;
}

.formacion a:hover .flecha-enlace {
    transform: rotate(45deg);
}



/* ===== CARDS ENLACES ===== */
.card-enlace-with-gradient {
    overflow: hidden;
}

.card-enlace-with-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(13, 30, 55, 0.2) 0%, rgba(13, 30, 55, 0.9) 100%);
    border-radius: 1rem;
    z-index: 1;
    pointer-events: none;
}

.card-enlace-with-gradient .card-enlace-content {
    position: relative;
    z-index: 2;
}

/* ===== CARDS TRABAJA CON NOSOTROS ===== */
.card-trabaja-con-nosotros {
    position: relative;
    overflow: hidden;
}

.card-trabaja-con-nosotros img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-trabaja-con-nosotros .card-enlace-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(13, 30, 55, 0.95) 0%, rgba(13, 30, 55, 0.2) 80%, transparent 100%);
    transition: all 0.3s ease;
}



/* ===== SECCIÓN MÉTRICAS ===== */
.metricas {
    background-color: #ffffff;
}

.metrica-item {
    text-align: left;
}


.metrica-descripcion {
    font-size: 14px;
    color: #666;
}

.metrica-enlace {
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.metrica-enlace:hover {
    text-decoration: none;
}

.metrica-enlace:hover .flecha-enlace {
    transform: rotate(45deg);
}



/* ===== FUENTE INTER PARA TODOS LOS BOTONES ===== */
.btn,
.guia-enlace,
.metrica-enlace,
.card-enlace-link,
.servicio-enlace,
.servicios-enlace-principal,
.hero-buttons .btn-outline-light {
    font-family: "Inter", sans-serif !important;
}



/* ===== PÁGINA SERVICIOS ===== */

/* Hero unificado para todas las páginas */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom, rgba(13, 30, 55, 0.1) 0%, rgba(13, 30, 55, 0.3) 25%, rgba(13, 30, 55, 0.6) 50%, rgba(13, 30, 55, 0.85) 75%, #0D1E37 100%);
}

/* Hero overlay para portada y servicios - Posicionamiento manejado por JavaScript */
.home .hero-section,
.page-template-page-servicios .hero-section {
    position: relative;
    z-index: 1;
}

/* Ajustar contenido del hero para compensar navbar overlay */
.home .hero-section .d-flex {
    padding-top: 160px; /* Altura del navbar + ticker en portada */
}

.page-template-page-servicios .hero-section .d-flex {
    padding-top: 120px; /* Altura del navbar en servicios */
}

/* Contenedor principal para portada y servicios */
.home .main-content,
.page-template-page-servicios .main-content {
    position: relative;
    z-index: 2;
}

/* Imagen de fondo separada con posición específica */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center -200px;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Navbar base */
.navbar {
    background-color: #0D1E37 !important;
    padding: 1rem 0;
    position: relative;
    z-index: 1030;
}

/* Navbar para portada y servicios - Posicionamiento overlay */
.home .navbar,
.page-template-page-servicios .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    transition: all 0.3s ease;
}

/* Asegurar que bg-transparent funcione correctamente */
.navbar.bg-transparent {
    background-color: transparent !important;
    backdrop-filter: none;
}

/* Forzar visibilidad del navbar */
.navbar[data-navbar-managed="true"] {
    display: block !important;
    visibility: visible !important;
}

/* Asegurar que el navbar se posicione correctamente en overlay */
.home .navbar[data-navbar-managed="true"] {
    position: absolute !important;
    z-index: 1040 !important;
}

/* Asegurar que el navbar sticky funcione */
.navbar[data-navbar-managed="true"][style*="position: sticky"] {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

/* Sección de servicios */
/* Usar text-white de Bootstrap para textos blancos */



/* ===== SECCIÓN CERTIFICACIÓN IRAM ===== */
.certificacion-iram .col-image {
    position: relative;
}

.certificacion-iram-imagen {
    position: absolute;
    left: -120px;
 
}



.certificacion-iram-item {
    background-color: #F3F2F2;
    min-height: 110px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.certificacion-iram-descripcion {
    background-color: #F3F2F2;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.certificacion-iram-item:hover {
    background-color: var(--bs-secondary) !important;
}

.certificacion-iram-item:hover .certificacion-iram-descripcion {
    opacity: 1;
    transform: translateY(0);
    background-color: var(--bs-secondary) !important;
}

.certificacion-iram-item:hover .certificacion-iram-descripcion p {
    color: white !important;
}

.certificacion-iram-item:hover h6 {
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}


.servicios-enlace-principal {
    text-decoration: none !important;
}

.servicios-enlace-principal:hover .flecha-enlace {
    transform: rotate(45deg);
}

/* Cards de servicios - idénticas a portada */
.servicio-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    height: 387px !important;
    overflow: hidden;
    display: block;
}

.servicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #0D1E37 0%, rgba(13, 30, 55, 0.8) 50%, transparent 100%);
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1rem;
}

/* Usar text-white de Bootstrap */

.servicio-contenido-inferior {
    margin-top: auto;
}

.servicio-enlace {
    font-size: 14px;
    text-decoration: none !important;
}

.servicio-enlace:hover {
    text-decoration: none !important;
}

.servicio-enlace:hover .flecha-enlace {
    transform: rotate(45deg);
}



/* ===== SECCIÓN COMPROMISO AMBIENTAL ===== */
.compromiso-ambiental {
    background-color: #ffffff;
}

.compromiso-header-spacing {
    margin-bottom: 6rem;
}

.compromiso-card {
    background-color: #F3F2F2;
    overflow: visible;
}

.compromiso-imagen-container {
    position: absolute;
    right: 10px;
    top: -42px;
    z-index: 2;
}

.compromiso-imagen {
    max-width: 93px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compromiso-texto {
    min-height: 55px;
}



/* Gota Interactiva - Solo posicionamiento */

.pbg {padding-bottom: 200px!important;}

.gota-interactiva {
    min-height: 800px;
    background-color: #D9EDF8;
}

/* Control de visibilidad según resolución */
@media (min-width: 1366px) {
    .gota-interactiva-movil {
        display: none !important;
    }
}

@media (max-width: 1365px) {
    .gota-interactiva {
        display: none !important;
    }
}



.gota-container {
    height: 700px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gota-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cuadro 1 - Nuestro Laboratorio (Arriba derecha) */
.gota-cuadro-1 {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 300px;
}

/* Cuadro 2 - Nuestra Planta Industrial (Izquierda) */
.gota-cuadro-2 {
    position: absolute;
    top: 170px;
    left: 0px;
    width: 300px;
}

/* Cuadro 3 - Innovación AgTech + Sustentabilidad (Abajo derecha) */
.gota-cuadro-3 {
    position: absolute;
    bottom: 0px;
    right: -70px;
    width: 340px;
}

/* Cuadro 4 - Tecnología aplicada al agro (Abajo izquierda) */
.gota-cuadro-4 {
    position: absolute;
    bottom: 0px;
    left: -50px;
    width: 570px;
}

/* Estilos de los cuadros */
.gota-cuadro-1 .card,
.gota-cuadro-2 .card,
.gota-cuadro-3 .card,
.gota-cuadro-4 .card {
    background-color: #B9DEF2 !important;
    transition: all 0.3s ease-in-out;
}

/* Estado activo de los cuadros */
.gota-cuadro-active .card {
    background-color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Líneas de conexión - Cuadros 1, 2 y 3 */
.gota-cuadro-1::before {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 220px;
    height: 1px;
    left: -220px;
    top: 50px;
    z-index: 1!important;
}

.gota-cuadro-1::after {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 1px;
    height: 300px;
    left: -220px;
    top: 50px;
    z-index: 1!important;
}

.gota-cuadro-2::before {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 220px;
    height: 1px;
    right: -220px;
    top: 50px;
    z-index: 1!important;
}

.gota-cuadro-2::after {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 1px;
    height: 120px;
    right: -220px;
    top: 50px;
    z-index: 1!important;
}

.gota-cuadro-3::before {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 250px;
    height: 1px;
    left: -250px;
    top: 130px;
    z-index: 1!important;
}

.gota-cuadro-3::after {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 1px;
    height: 150px;
    left: -250px;
    top: -20px;
    z-index: 1!important;
}

.gota-cuadro-4::before {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 1px;
    height: 200px;
    right: 100px;
    top: -200px;
    z-index: 1!important;
}

.gota-cuadro-4::after {
    content: '';
    position: absolute;
    background-color: #0090D6;
    width: 220px;
    height: 1px;
    right: -120px;
    top: -200px;
    z-index: 1!important;
}

/* Media query para resolución 1920px - Alargar líneas cuadros 1, 2 y 3 */
@media (min-width: 1920px) {
    /* Cuadro 1 - Alargar línea horizontal */
    .gota-cuadro-1::before {
        width: 280px; /* Aumentar de 220px a 280px (+60px) */
        left: -280px; /* Reajustar tangente */
    }
    
    /* Cuadro 1 - Ajustar línea vertical para mantener conexión */
    .gota-cuadro-1::after {
        left: -280px; /* Reajustar tangente para coincidir */
    }
    
    /* Cuadro 2 - Alargar línea horizontal */
    .gota-cuadro-2::before {
        width: 280px; /* Aumentar de 220px a 280px (+60px) */
        right: -280px; /* Reajustar tangente */
    }
    
    /* Cuadro 2 - Ajustar línea vertical para mantener conexión */
    .gota-cuadro-2::after {
        right: -280px; /* Reajustar tangente para coincidir */
    }
    
    /* Cuadro 3 - Alargar línea horizontal */
    .gota-cuadro-3::before {
        width: 310px; /* Aumentar de 250px a 310px (+60px) */
        left: -310px; /* Reajustar tangente */
    }
    
    /* Cuadro 3 - Ajustar línea vertical para mantener conexión */
    .gota-cuadro-3::after {
        left: -310px; /* Reajustar tangente para coincidir */
    }
}

/* ===== SECCIÓN BOLSA DE TRABAJO ===== */
.jobs-container {
    height: 250px !important;
    overflow-y: scroll !important;
    position: relative !important;
    padding-right: 0 !important;
    margin-right: -6px !important;
}

.jobs-container::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

.jobs-container::-webkit-scrollbar-track {
    background: transparent !important;
}

.jobs-container::-webkit-scrollbar-thumb {
    background: rgba(0, 135, 206, 1) !important;
    border-radius: 3px !important;
}

.jobs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 135, 206, 0.8) !important;
}

/* Firefox */
.jobs-container {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 135, 206, 1) transparent !important;
}

/* ===== SECCIÓN CONTACTO ===== */

/* Área de contenido (formulario e imagen) con fondo gris */
.contacto-content-area {
    background-color: #F3F2F2;
    border-radius: 12px;
    padding: 2rem 0 2rem 2rem;
    margin-top: 1rem;
}

.contacto-content-area .row {
    align-items: stretch !important;
}

/* Estilos para los tabs */
#contacto-tabs .nav-link {
    background: white !important;
    border: none !important;
    padding: 1rem 1.5rem;
    margin-right: 2rem;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0 !important;
    position: relative;
    display: inline-block;
    color: var(--bs-secondary) !important;
}

#contacto-tabs .nav-link.active {
    opacity: 1 !important;
}

#contacto-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    height: 3px;
    background-color: var(--bs-secondary);
}

#contacto-tabs .nav-link:not(.active) {
    opacity: 0.7;
}

#contacto-tabs .nav-link:not(.active):hover {
    opacity: 1;
}

/* Animación para cambio de imágenes */
.tab-image {
    transition: opacity 0.3s ease-in-out;
}

.tab-image.active {
    opacity: 1;
}

/* Hacer que las columnas tengan la misma altura automáticamente */
.contacto-content-area .col-lg-6 {
    display: flex;
    flex-direction: column;
}

/* Contenedor del formulario */
.form-container {
    flex: 1;
    padding: 2rem;
}

/* Contenedor de imágenes que toma todo el alto */
.images-container {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 500px;
    height: calc(100% + 100px);
    margin-top: -100px;
    margin-bottom: 2rem;
    z-index: 10;
}

/* Imágenes de fondo que toman todo el alto automáticamente */
.tab-image-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: 12px;
    bottom: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}

.tab-image-bg.active {
    opacity: 1;
}

/* Estilos para formularios CF7 */
.cf7-form-contacto .wpcf7-form,
.cf7-form-trabajo .wpcf7-form,
.cf7-form-visita .wpcf7-form {
    background: transparent;
    padding: 1rem 0;
}

.cf7-form-contacto .form-label,
.cf7-form-trabajo .form-label,
.cf7-form-visita .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.cf7-form-contacto .form-control,
.cf7-form-trabajo .form-control,
.cf7-form-visita .form-control,
.cf7-form-contacto .form-select,
.cf7-form-trabajo .form-select,
.cf7-form-visita .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.cf7-form-contacto .form-control:focus,
.cf7-form-trabajo .form-control:focus,
.cf7-form-visita .form-control:focus,
.cf7-form-contacto .form-select:focus,
.cf7-form-trabajo .form-select:focus,
.cf7-form-visita .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Estilos para checkbox */
.cf7-form-contacto .wpcf7-form .wpcf7-checkbox,
.cf7-form-trabajo .wpcf7-form .wpcf7-checkbox,
.cf7-form-visita .wpcf7-form .wpcf7-checkbox {
    margin-bottom: 1.5rem;
}

.cf7-form-contacto .wpcf7-form .wpcf7-list-item,
.cf7-form-trabajo .wpcf7-form .wpcf7-list-item,
.cf7-form-visita .wpcf7-form .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.cf7-form-contacto .wpcf7-form .wpcf7-list-item input[type="checkbox"],
.cf7-form-trabajo .wpcf7-form .wpcf7-list-item input[type="checkbox"],
.cf7-form-visita .wpcf7-form .wpcf7-list-item input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cf7-form-contacto .wpcf7-form .wpcf7-list-item-label,
.cf7-form-trabajo .wpcf7-form .wpcf7-list-item-label,
.cf7-form-visita .wpcf7-form .wpcf7-list-item-label {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Botón de envío - usar Bootstrap */
.cf7-form-contacto .wpcf7-form .wpcf7-submit,
.cf7-form-trabajo .wpcf7-form .wpcf7-submit,
.cf7-form-visita .wpcf7-form .wpcf7-submit {
    font-weight: 600;
}

/* Alineación del botón a la derecha */
.cf7-form-contacto .wpcf7-form .text-end,
.cf7-form-trabajo .wpcf7-form .text-end,
.cf7-form-visita .wpcf7-form .text-end {
    text-align: right;
    padding-right: 0;
    margin-right: 0;
}

.cf7-form-contacto .wpcf7-form .text-end .wpcf7-submit,
.cf7-form-trabajo .wpcf7-form .text-end .wpcf7-submit,
.cf7-form-visita .wpcf7-form .text-end .wpcf7-submit {
    margin-right: 0;
}

/* Ocultar spinner de CF7 */
.cf7-form-contacto .wpcf7-form .wpcf7-spinner,
.cf7-form-trabajo .wpcf7-form .wpcf7-spinner,
.cf7-form-visita .wpcf7-form .wpcf7-spinner {
    display: none !important;
}

/* Spinner personalizado centrado */
.cf7-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cf7-loading-spinner {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cf7-loading-spinner i {
    font-size: 2rem;
    color: var(--bs-secondary);
    animation: spin 1s linear infinite;
}

.cf7-loading-text {
    margin-top: 1rem;
    color: #333;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive para contacto */
@media (max-width: 991px) {
    .contacto-content-area {
        padding: 1.5rem;
    }

    #contacto-tabs .nav-link {
        font-size: 0.9rem;
    }
    
    .images-container {
        height: 400px;
        margin-top: 2rem;
        z-index: 1;
    }
    
    .tab-image-bg {
        position: relative;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .contacto-content-area {
        padding: 1rem;
    }

    #contacto-tabs {
        margin-bottom: 1rem;
    }

    #contacto-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .images-container {
        height: 300px;
        margin-top: 1rem;
    }

}

/* Alto fijo para cards normales (col-md-6) */
.col-md-6 .item {
    height: 190px;
}

/* Estilos para enlaces con flecha */
.guia-enlace {
    text-decoration: none;
    transition: all 0.3s ease;
}

.guia-enlace:hover {
    text-decoration: none;
}

.flecha-enlace {
    transition: transform 0.3s ease;
}

.guia-enlace:hover .flecha-enlace {
    transform: rotate(45deg);
}

.card {
    border: none !important;
}

.btn-outline-secondary.agro-sostenible-btn:hover {
    color: #fff !important;
}

.no-bottom-right-radius {
    border-bottom-right-radius: 0 !important;
}

/* ===================================
   MEJORAS DEL MENÚ HAMBURGUESA
   =================================== */

/* Quitar el recuadro negro del focus */
.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Quitar el borde del botón */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

/* Estilos para el ícono del menú hamburguesa */
.navbar-toggler .hamburger-icon {
    transition: transform 0.3s ease !important;
    transform-origin: center !important;
}

/* Transiciones suaves para el ícono */
.hamburger-icon {
    transition: all 0.3s ease !important;
}

/* Efecto de giro para el ícono */
.hamburger-icon.rotate {
    transform: rotate(180deg) !important;
}

/* Efecto hover suave */
.navbar-toggler:hover {
    opacity: 0.8 !important;
}

/* Asegurar que solo afecte en móvil */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}


.img-staff img {width: 70px!important;}

/* ===================================
   MEGA MENU SOLUCIONES - TABS PERSONALIZADOS
   =================================== */

/* Menú vertical personalizado */
.mega-menu-tabs {
    display: flex;
    flex-direction: column;
    margin-right: 1.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.mega-menu-tabs .nav-item {
    margin-bottom: 0;
}

.mega-menu-tabs .nav-button {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: bold;
    color: white;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

/* Barra de relleno animada */
.mega-menu-tabs .nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.25s ease-in-out, background-color 0.15s ease-in-out;
    border-radius: inherit;
    z-index: -1; /* detrás del contenido */
}


.mega-menu-tabs .nav-button:hover {
    width: calc(100% + 2rem);
    margin-right: -2rem;
    padding-left: 1rem;
    padding-right: 3rem;
}

.mega-menu-tabs .nav-button:hover::before { width: 100%; }

.mega-menu-tabs .nav-button.active {
    color: white;
    font-weight: bold;
    text-align: left;
    width: calc(100% + 2rem);
    margin-right: -2rem;
    padding-left: 1rem;
    padding-right: 3rem;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-tabs .nav-button.active::before {
    width: 100%;
    background-color: #2197D4;
}

/* Contenido de las tabs */
.mega-tab-content {
    background-color: #2197D4;
    flex: 1;
    width: 100%;
    border-radius: 0.375rem;
}

.mega-tab-pane {
    display: none;
}

.mega-tab-pane.active {
    display: block;
}

/* JavaScript para manejo de tabs */
/* Este CSS asegura que el JavaScript funcione correctamente */

/* ===================================
   MEGA MENUS - ENLACES HOVER/ACTIVO (Nosotros, Servicios, Recursos)
   Replicar efecto de .mega-menu-tabs .nav-button
   =================================== */

.megamenu-content .navbar-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: bold;
    color: white !important;
    text-align: left;
    background: none;
    border: none;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.megamenu-content .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.25s ease-in-out, background-color 0.15s ease-in-out;
    border-radius: inherit;
    z-index: -1; /* detrás del contenido */
}


.megamenu-content .navbar-nav .nav-link:hover {
    width: calc(100% + 2rem);
    margin-right: -2rem;
    padding-left: 1rem;
    padding-right: 3rem;
    border-radius: 0.375rem; /* redondeado en las 4 puntas */
}

.megamenu-content .navbar-nav .nav-link:hover::before { width: 100%; }

.megamenu-content .navbar-nav .current-menu-item > a,
.megamenu-content .navbar-nav .nav-link.active {
    color: white !important;
    font-weight: bold !important;
    width: calc(100% + 2rem);
    margin-right: -2rem;
    padding-left: 1rem;
    padding-right: 3rem;
    border-radius: 0.375rem; /* redondeado en las 4 puntas */
}

.megamenu-content .navbar-nav .current-menu-item > a::before,
.megamenu-content .navbar-nav .nav-link.active::before {
    width: 100%;
    background-color: #2197D4 !important;
}

/* ===================================
   RESPONSIVE - MEGA MENU TABS MOBILE
   =================================== */

/* En mobile: layout vertical y menú horizontal */
@media (max-width: 767px) {
    /* Contenedor principal en mobile: columnas verticales */
    .col.px-5.py-2.d-flex {
        flex-direction: column !important;
        padding: 1rem !important;
    }
}

/* Contenedor principal en desktop: siempre horizontal */
@media (min-width: 768px) {
    .col.px-5.py-2.d-flex {
        flex-direction: row !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    
    /* Asegurar que el contenido no se mueva */
    .mega-tab-content {
        position: relative !important;
        flex: 1 !important;
        width: 100% !important;
    }
    
    /* Menú tabs en desktop */
    .mega-menu-tabs {
        flex-direction: column !important;
        margin-right: 1.5rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* En mobile: menú horizontal */
@media (max-width: 767px) {
    .mega-menu-tabs {
        flex-direction: row !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Botones en mobile: sin extensiones */
    .mega-menu-tabs .nav-button {
        margin-right: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        width: auto !important;
        white-space: nowrap;
        border-radius: 0.375rem !important;
    }
    
    .mega-menu-tabs .nav-button:hover,
    .mega-menu-tabs .nav-button.active {
        width: auto !important;
        margin-right: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        border-radius: 0.375rem !important;
        border-top-right-radius: 0.375rem !important;
        border-bottom-right-radius: 0.375rem !important;
    }
    
    /* Contenido en mobile: sin conexión visual */
    .mega-tab-content {
        margin-left: 0 !important;
        border-radius: 0.375rem !important;
        border-top-left-radius: 0.375rem !important;
        min-width: auto !important;
        width: 100% !important;
    }
    
    /* Imagen centrada en mobile */
    .mega-tab-content .col-md-3 {
        justify-content: center !important;
    }
}

/* ===================================
   CARDS TRABAJA CON NOSOTROS - ANIMACIONES HOVER
   =================================== */
.card-trabaja-con-nosotros {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.card-trabaja-img {
    transition: transform 0.3s ease-in-out;
}

.card-trabaja-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-trabaja-text {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
}

/* Hover effects */
.card-trabaja-con-nosotros:hover .card-trabaja-img {
    transform: scale(1.1);
}

.card-trabaja-con-nosotros:hover .card-trabaja-overlay {
    opacity: 1;
}

.card-trabaja-con-nosotros:hover .card-trabaja-text {
    transform: translateY(0);
}