/* =================================================================
   1. RESET Y ESTRUCTURA GENERAL
   =================================================================== */
* { 
    box-sizing: border-box; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif, Arial, sans-serif;
    color: #005a5b;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif, Arial, sans-serif !important;
    color: #005a5b !important;
}

a {
    text-decoration: none;
}

.container-1600 {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =================================================================
   2. UTILIDADES ATÓMICAS (Tipografía, Colores y Alineación)
   =================================================================== */
.font-roboto { font-family: 'Roboto', sans-serif; }

.text-xs { font-size: 11px; }
.text-sm{ font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 26px; }

.font-normal { font-weight: normal; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: bold; }
.font-black { font-weight: 900; }

.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.text-primary { color: #005a5b; }
.text-secondary { color: #005a5b !important; }
.text-dark { color: #333333; }
.text-muted { color: #555555; }
.text-white { color: #ffffff; }

/* =================================================================
   3. REJILLAS Y CONTENEDORES UNIVERSALES
   =================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.grid-3 > * {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    box-sizing: border-box;
}

.grid-coberturas {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    justify-content: center;
    align-items: stretch;
}

/* =================================================================
   4. CABECERA, LOGOTIPO Y MENÚ PRINCIPAL
   =================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    padding: 6px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.agente-exclusivo {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #005a5b;
    border-left: 1px solid #cbd5e1;
    padding-left: 8px;
    margin-left: 8px;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a {
    text-decoration: none;
    color: #005a5b !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.main-nav > ul > li > a:hover {
    color: #004344 !important;
}

.arrow {
    font-size: 10px;
    opacity: 0.7;
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 0;
    z-index: 1100;
    list-style: none;
    animation: fadeIn 0.2s ease;
}

.main-nav .dropdown:hover .submenu {
    display: block;
}

.main-nav .submenu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-nav .submenu li a {
    padding: 8px 16px 8px 26px;
    font-size: 16px;
    font-weight: normal;              
    letter-spacing: 0.2px;            
    color: #005a5b;                     
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.3;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    text-transform: none;
    font-family: 'Montserrat', sans-serif;
}

.main-nav .submenu li a:hover {
    background: #f8fafc;
    color: #005a5b;                     
    padding-left: 30px;
}

.main-nav .submenu li a::before {
    content: "›";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #005a5b;
    font-weight: bold;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.main-nav .submenu li a:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   5. HERO BANNER, TÍTULOS Y TARJETAS FLOTANTES
   =================================================================== */
.hero-banner {
    position: relative;
    background-color: #FFF;
    width: 100%;
    margin: 0;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    padding: 40px 60px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.03);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    box-sizing: border-box;
}

.hero-card,
.hero-card-custom {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    box-sizing: border-box;
    border-top: 5px solid #d9531e;
}

/* Clases específicas de Títulos y Subtítulos del Banner */
.etiqueta-categoria {
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold; 
    color: #C30;     
    text-decoration: none;               
}

.etiqueta-categoria-center {
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold; 
    color: #C30;     
    text-decoration: none;
    text-align: center;               
}

.etiqueta-categoria-gris {
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: bold; 
    color: #666;     
    text-decoration: none;
}

.etiqueta-subtitulo {
    display: block;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #666; 
}

.hero-span-campana {
    color: #d9531e;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.hero-titulo,
.hero-card h1 {
    color: #005a5b;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 12px 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

.hero-parrafo,
.hero-card p {
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

.hero-precio {
    font-size: 16px;
    font-weight: bold;
    color: #d9531e;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.hero-precio-center {
    font-size: 22px;
    font-weight: bold;
    color: #005a5b;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.hero-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;                    
    margin: 15px 0;                    
}

.hero-lista div {
    font-family: 'Roboto', sans-serif; 
    font-size: 15px;                    
    color: #333333;                    
    line-height: 1.4;                  
}

.hero-lista strong {
    color: #d9531e;                    
}

/* Botones principales corporativos */
.btn-hero-unico,
.btn-hero-personalizado,
.btn-corporativo,
input[type="submit"] {
    display: inline-block;
    background-color: #005a5b !important;
    border-color: #005a5b !important;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 12px rgba(0,90,91,0.3);
    text-align: center;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.btn-hero-unico:hover,
.btn-hero-personalizado:hover,
.btn-corporativo:hover,
input[type="submit"]:hover {
    background-color: #004546 !important;
    border-color: #004546 !important;
}

/* =================================================================
   6. COMPONENTES DE TARJETAS, MOSAICOS E ICONOS
   =================================================================== */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-mosaic-item,
.card-mosaic-item-full {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #005a5b;
    border-radius: 10px;
    padding: 22px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.card-mosaic-item { flex: 1 1 calc(50% - 10px); min-width: 280px; }
.card-mosaic-item-full { flex: 1 1 100%; }

.border-top-green { border-top: 5px solid #005a5b !important; }
.border-top-orange { border-top: 5px solid #d9531e !important; }
.border-top-turquoise { border-top: 5px solid #13c5af !important; }


/* =================================================================
   7. TABLAS COMPARATIVAS Y MOSAICOS DE MODALIDADES
   =================================================================== */
.table-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow-x: auto;
    box-sizing: border-box;
}

.table-comparative {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    color: #333333;
    min-width: 600px;
}

.table-comparative thead tr {
    border-bottom: 2px solid #e2e8f0;
    background-color: #f8f9fa;
}

.table-comparative th {
    padding: 16px 15px;
    font-weight: bold;
    color: #555555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.seccion-mosaico-modalidades {
    width: 100%;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.grid-mosaico-modalidades {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.tarjeta-mosaico {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    max-width: 380px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #005a5b;
    border-radius: 12px;
    padding: 22px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-mosaico:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.mosaico-imagen {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* =================================================================
   8. PIE DE PÁGINA Y MODALES
   =================================================================== */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer {
    background-color: #005a5b !important;
    color: #ffffff;
    padding: 14px 0 !important;
}

.footer-col p {
    font-size: 13px;
    color: #e2e8f0;
    margin: 0;
    max-width: 700px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Estilos de Modales Universales */
.modal-overlay-universal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}

.modal-caja-contacto {
    display: none;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 520px !important;
    height: 620px !important;
    max-height: 90vh !important;
    border-radius: 14px !important;
    position: relative !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
}

/* =================================================================
   9. RESPONSIVE Y MEDIA QUERIES
   =================================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #005a5b;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .header-flex {
        padding: 0 10px;
    }
    
    .main-nav ul {
        gap: 10px;
    }

    .main-nav > ul > li > a {
        font-size: 11px;
        letter-spacing: 0.4px;
    }

    .hero-banner {
        justify-content: center;
        padding: 30px 20px;
    }
    
    .hero-card, .hero-card-custom {
        max-width: 100%;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 20px;
        box-sizing: border-box;
    }

    .main-nav.activo,
    .main-nav.active {
        display: flex;
        flex-direction: column;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .main-nav .submenu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }

    .container-1600, .hero-container, .footer-grid {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .grid-mosaico-modalidades {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .tarjeta-mosaico {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    div[class*="modal"], 
    div[class*="popup"], 
    div[id*="modal"], 
    div[id*="popup"],
    .modal-content,
    .popup-content {
        width: 100% !important;
        max-width: 94vw !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }
}
/* ========================================================== */
/* 1. UTILIDADES ATÓMICAS (Tipografía, Colores y Alineación)  */
/* ========================================================== */

.font-roboto { font-family: 'Roboto', sans-serif; }

.text-xs { font-size: 11px; }
.text-lg{ font-size: 13px; }
.text-base   { font-size: 15px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 26px; }

.font-normal { font-weight: normal; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: bold; }
.font-black { font-weight: 900; }

.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.text-primary { color: #005a5b; }
.text-secondary { color: #d9531e; }
.text-dark { color: #333333; }
.text-muted { color: #555555; }
.text-white { color: #ffffff; }


/* ========================================================== */
/* 2. CONTENEDORES Y REJILLAS UNIVERSALES                     */
/* ========================================================== */
a {
    text-decoration: none;
}
.container-1600 {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.grid-3 > * {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  box-sizing: border-box;
}

.grid-coberturas {
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}

/* Regla responsive específica para móviles estrechos en .grid-coberturas */
@media (max-width: 768px) {
  .grid-coberturas {
    grid-template-columns: 1fr !important; /* Fuerza una sola columna que se adapta al 100% del ancho del móvil */
    padding: 0 15px;
    gap: 15px;
  }
}

/* ========================================================== */
/* 3. COMPONENTES DE TARJETAS (Cards)                         */
/* ========================================================== */

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-mosaic-item {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #005a5b;
  border-radius: 10px;
  padding: 22px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.card-mosaic-item-full {
  flex: 1 1 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #005a5b;
  border-radius: 10px;
  padding: 22px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Bordes superiores corporativos */
.border-top-green { border-top: 5px solid #005a5b; }
.border-top-orange { border-top: 5px solid #d9531e; }
.border-top-turquoise { border-top: 5px solid #13c5af; }


/* ========================================================== */
/* 4. CABECERAS Y LISTAS UNIVERSALES                          */
/* ========================================================== */

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.card-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.card-header-peq img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lista-coberturas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: #555555;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

.lista-coberturas div {
  font-family: 'Roboto', sans-serif;
}

/* ========================================================== */
/* COMPONENTE HERO BANNER (Global para todas las páginas)      */
/* ========================================================== */

.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  box-sizing: border-box;
}

.hero-card,
.hero-card-custom {
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 550px;
  width: 100%;
  box-sizing: border-box;
  border-top: 5px solid #d9531e;
}

/* En pantallas grandes (escritorios amplios), desplazamos la tarjeta a la izquierda */
@media (min-width: 1200px) {
    .hero-card {
        margin-right: auto;
        margin-left: -10%; /* Un margen más moderado o ajustado */
    }
}

/* En pantallas medianas y netbooks (hasta 1199px), evitamos el margen negativo para que no se descoloque */
@media (max-width: 1199px) {
    .hero-card {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-card h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    color: #005a5b;
    font-weight: bold;
}
.hero-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}
.hero-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-hero-unico {
    background-color: #d9531e;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    text-transform: uppercase;
}
.etiqueta-categoria {
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold; 
    color:#C30;    
    text-decoration: none;             
}

.etiqueta-categoria-center {
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold; 
    color:#C30;    
    text-decoration: none;
    text-align:center;             
}

.etiqueta-categoria-gris {
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size:20px;
    font-weight: bold; 
    color:#666;    
    text-decoration: none;
}
.etiqueta-subtitulo {
    display: block;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #666; 
}
/* =================================================================
   CORRECCIÓN PARA DEVOLVER EL TAMAÑO A LAS FOTOS / ICONOS DE SALUD Y SEGUROS
   =================================================================== */
.grid-iconos-seguros img,
.icono-seguro-img,
.seccion-seleccion-seguros img {
    width: 110px !important;
    height: 70px !important;
    max-width: none !important;
    object-fit: cover !important;
}

.hero-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;                    
    margin: 15px 0;                    
}

.hero-lista div {
    font-family: 'Roboto', sans-serif; 
    font-size: 15px;                    
    color: #333333;                    
    line-height: 1.4;                  
}

.hero-lista strong {
    color: #d9531e;                    
}

.hero-span-campana {
  color: #d9531e;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  font-family: 'Roboto', sans-serif;
}

.hero-titulo {
  color: #005a5b;
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 12px 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.2;
}

.hero-parrafo {
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  font-family: 'Roboto', sans-serif;
}

.hero-precio {
  font-size: 16px;
  font-weight: bold;
  color: #d9531e;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
}

.hero-precio-center {

  font-size: 22px;
  font-weight: bold;
  color: #005a5b;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
  text-align:center;
}

.btn-hero-unico,
.btn-hero-personalizado {
  display: inline-block;
  background-color: #d9531e;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(217,83,30,0.3);
  text-align: center;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.btn-hero-unico:hover,
.btn-hero-personalizado:hover {
  background-color: #b84318;
}

/* ========================================================== */
/* 5. TABLAS COMPARATIVAS UNIVERSALES                         */
/* ========================================================== */

.table-container {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  font-family: 'Roboto', sans-serif;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow-x: auto; /* Hace que la tabla sea scrolleable en móviles sin romper la pantalla */
  box-sizing: border-box;
}

.table-comparative {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  color: #333333;
  min-width: 600px; /* Evita que las columnas se compriman demasiado en pantallas pequeñas */
}

.table-comparative thead tr {
  border-bottom: 2px solid #e2e8f0;
  background-color: #f8f9fa;
}

.table-comparative th {
  padding: 16px 15px;
  font-weight: bold;
  color: #555555;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table-comparative th:not(:first-child) {
  text-align: center;
  width: 20%;
}

.table-comparative th:first-child {
  width: 40%;
}

.table-section-row td {
  background-color: #555555;
  color: #ffffff;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-row {
  border-bottom: 1px solid #e2e8f0;
}

.table-row td {
  padding: 14px 15px;
}

.table-row td:first-child {
  padding-left: 20px;
}

.table-check {
  text-align: center;
  font-size: 16px;
  color: #005a5b;
  font-weight: bold;
}

.table-cross {
  text-align: center;
  font-size: 16px;
  color: #d9531e;
  font-weight: bold;
}


/* ========================================================== */
/* 6. BOTONES Y ELEMENTOS COMUNES                             */
/* ========================================================== */

.btn-corporativo {
  display: inline-block;
  background-color: #d9531e;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(217,83,30,0.3);
  transition: background-color 0.2s;
  text-align: center;
}

.btn-corporativo:hover {
  background-color: #b84318;
}

.divisor-seccion {
  text-align: center;
  margin-bottom: 25px;
  border-top: 2px solid #005a5b;
  padding-top: 30px;
}

/* ========================================================== */
/* MOSAICO DE MODALIDADES                                     */
/* ========================================================== */

.seccion-mosaico-modalidades {
  width: 100%;
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.grid-mosaico-modalidades {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.tarjeta-mosaico {
  flex: 1 1 calc(25% - 20px);
  min-width: 250px;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 5px solid #005a5b;
  border-radius: 12px;
  padding: 22px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-mosaico:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.mosaico-titulo-seccion {
  font-size: 14px;
  color: #005a5b;
  margin: 0 0 2px 0;
  font-weight: bold;
  display: block;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
}

.mosaico-subtitulo {
  font-size: 13px;
  font-weight: bold;
  color: #d9531e;
  margin-bottom: 12px;
  display: block;
  font-family: 'Roboto', sans-serif;
}

.mosaico-imagen {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.mosaico-texto {
  font-size: 13px;
  color: #555555;
  margin: 0;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
  display: block;
}

/* ========================================================== */
/* SISTEMA GENÉRICO Y UNIVERSAL                               */
/* ========================================================== */

.section-block {
  width: 100%;
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-block-padded {
  padding: 35px 25px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 280px;
}

.flex-center-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.banner-strip {
  border-top: 2px solid #005a5b;
  border-bottom: 2px solid #005a5b;
  background-color: #f8f9fa;
  padding: 30px 20px;
  box-sizing: border-box;
  margin: 40px auto;
  max-width: 1600px;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
}

.form-label-check {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333333;
  font-size: 12px;
  gap: 6px;
  margin: 5px 0;
  font-family: 'Roboto', sans-serif;
}

.form-submit {
  background-color: #d9531e;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 5px;
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.2s;
}

.form-submit:hover {
  background-color: #b84318;
}

.logo-contenedor { display: flex; align-items: center; }
.logo-enlace { display: flex; align-items: center; text-decoration: none; }

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.seccion-seleccion-seguros {
    background-color: #066;
    border-left: 6px solid #005a5b;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin: 30px auto;
    padding: 25px 20px;
}

.titulo-seleccion-seguros {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.grid-iconos-seguros {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.icono-seguro-img {
    width: 110px;
    height: 70px;
    border-radius: 10px;
    transition: transform 0.25s ease;
}

.icono-seguro-img:hover {
    transform: scale(1.1);
}

.tarjeta-helvetia {
    flex: 1;
    min-width: 300px;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.tarjeta-helvetia-icono {
    margin-bottom: 20px;
}

.tarjeta-helvetia-icono img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.seccion-tarjetas-inferiores {
    margin-top: 40px;
}

.seccion-compromiso {
    margin: 40px auto;
}

/* Clases del Modal Universal */
.modal-overlay-universal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}

.modal-caja-contacto {
    display: none;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 520px !important;
    height: 620px !important;
    max-height: 90vh !important;
    border-radius: 14px !important;
    position: relative !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
}

.modal-caja-privacidad {
    display: none;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 800px !important;
    height: 85vh !important;
    max-height: 650px !important;
    border-radius: 14px !important;
    position: relative !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
    z-index: 1000000;
}

.modal-btn-cerrar {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 1000000 !important;
    background: #005a5b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-overlay-universal iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}


/* ========================================================== */
/* REGLAS RESPONSIVE GLOBALES (MÓVILES Y TABLETS < 768px)      */
/* ========================================================== */

@media (max-width: 768px) {
    /* 1. Anula la imagen de fondo del banner en móviles */
    .hero-banner {
        background-image: none !important;
        background-color: #f4f6f8;
        padding: 30px 15px;
    }

    /* 2. Convierte automáticamente todas las rejillas de 2 y 3 columnas en 1 sola columna vertical */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* 3. Asegura que los elementos flexibles del mosaico ocupen todo el ancho en móvil */
    .tarjeta-mosaico,
    .card-mosaic-item {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    /* 4. Ajustes generales de espaciado en contenedores móviles */
    .container-1600,
    .section-block {
        padding: 0 15px;
        margin: 20px auto;
    }
}
/* ========================================================== */
/* REGLAS RESPONSIVE DEFINITIVAS PARA TODOS LOS CONTENEDORES  */
/* ========================================================== */

@media (max-width: 768px) {
    /* 1. Mosaico de modalidades: pasa a una sola columna fluida */
    .grid-mosaico-modalidades {
        display: flex;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .tarjeta-mosaico {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* 2. Filas flexibles genéricas (.flex-row): se apilan verticalmente */
    .flex-row,
    .flex-center-row {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    /* 3. Elementos internos flexibles en móvil */
    .flex-column {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* 4. Tablas comparativas: contenedor con scroll horizontal limpio en móvil */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0 !important;
        border-radius: 6px;
    }

    /* 5. Asegurar padding general cómodo en pantallas pequeñas */
    .section-block,
    .seccion-mosaico-modalidades,
    .container-1600 {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* Forzar que todos los títulos corporativos y secundarios usen el verde institucional */
.text-secondary, 
h1, h2, h3, 
.hero-titulo {
    color: #005a5b !important;
}
/* Cambiar los botones principales y de envío al verde corporativo (o un verde más suave) */
.btn-hero-unico,
.btn-hero-personalizado,
.btn-corporativo,
input[type="submit"] {
    background-color: #005a5b !important;
    border-color: #005a5b !important;
    color: #ffffff !important;
}

/* Efecto hover opcional para que al pasar el ratón oscurezca ligeramente o use un tono complementario elegante */
.btn-hero-unico:hover,
.btn-hero-personalizado:hover,
.btn-corporativo:hover,
input[type="submit"]:hover {
    background-color: #004546 !important;
    border-color: #004546 !important;
}
/* =================================================================
   ALINEACIÓN PERFECTA PARA LAS TARJETAS INFERIORES
   =================================================================== */
.seccion-tarjetas-inferiores .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea los elementos desde arriba de forma uniforme */
    text-align: left !important;  /* Mucho más elegante para párrafos largos de lectura */
}

.seccion-tarjetas-inferiores .card p {
    text-align: left !important;  /* Evita desajustes ópticos del texto centrado en bloques largos */
    margin: 0;
}
/* =================================================================
   CORRECCIÓN RESPONSIVE DEFINITIVA PARA HERO BANNER Y CONTENEDORES
   =================================================================== */

/* 1. Aseguramos que el contenedor general del banner aproveche el ancho corporativo (1600px) */
.hero-container {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

/* 2. Posicionamiento elegante de la tarjeta a la izquierda en pantallas grandes (24") */
@media (min-width: 1200px) {
    .hero-card,
    .hero-card-custom {
        margin-left: 6% !important;
        margin-right: auto !important;
    }
}

/* 3. Adaptación responsive para portátiles de 13", tablets y móviles (hasta 1024px) */
@media screen and (max-width: 1024px) {
    .hero-banner {
        background-image: none !important;
        background-color: #f4f6f8 !important;
        padding: 30px 15px !important;
        justify-content: center !important;
    }

    .hero-container {
        justify-content: center !important;
    }

    .hero-card,
    .hero-card-custom {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .grid-mosaico-modalidades {
        flex-direction: column !important;
    }

    .tarjeta-mosaico {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}
/* Corrección definitiva para el submenú de CONTACTO en resoluciones límite */
.main-nav > ul > li:last-child {
    position: relative !important;
}

.main-nav > ul > li:last-child .submenu {
    left: auto !important;
    right: 0 !important;
    min-width: 170px !important;
}
/* ========================================================== */
/* CORRECCIÓN PARA BOTONES / ENLACES DE NAVEGACIÓN CENTRADOS   */
/* ========================================================== */
.section-block.text-center a.btn-corporativo,
.section-block.text-center a.btn-hero-unico,
.section-block.text-center a:not(.form-submit) {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* ========================================================== */
/* ALINEACIÓN A LA IZQUIERDA PARA TARJETAS DE COBERTURAS     */
/* ========================================================== */
.card .lista-coberturas,
.card .lista-coberturas div {
    text-align: left !important;
    align-items: flex-start !important;
}
.icono-telefono {
    color: #005a5b !important;
    font-style: normal;
}