/* =================================================================
   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, .text-sm, .text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 20px; }

.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: #4E4E4E; }
.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;
}

@media (max-width: 768px) {
  .grid-coberturas {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
    gap: 15px;
  }
}

/* =================================================================
   4. CABECERA, LOGOTIPO Y MENÚ PRINCIPAL
   =================================================================== */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    padding: 8px 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;
}

.logo-contenedor { display: flex; align-items: center; }
.logo-enlace { display: flex; align-items: center; text-decoration: none; }

.agente-exclusivo {
    font-size: 12px;
    font-weight: 800;
    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;
    background-color: #ffffff !important;
}

@media screen and (min-width: 992px) {
    .main-nav {
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 991px) {
    .menu-toggle {
        margin-right: 15px !important;
        padding: 10px !important;
        font-size: 26px !important;
        color: #005a5b !important;
    }
}

.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;
    background-color: transparent !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: #4F8079 !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 35px rgba(0, 90, 95, 0.2);
    border-radius: 8px;
    border: none;
    padding: 4px 0;
    z-index: 1100;
    list-style: none;
    animation: fadeIn 0.15s ease;
    margin-top: 0px; /* CAMBIADO: Eliminamos el hueco de aire superior */
}

/* NUEVO: Creamos una zona de seguridad invisible debajo del menú principal para que no se cierre al bajar el ratón */
.main-nav .dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.main-nav .dropdown:hover .submenu {
    display: block;
}

.main-nav .submenu li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf2f2;
}

.main-nav .submenu li:last-child {
    border-bottom: none;
}

.main-nav .submenu li a {
    padding: 7px 16px 7px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #005a5b;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
    position: relative;
    transition: all 0.15s ease;
    text-transform: none;
    font-family: 'Montserrat', sans-serif;
}

.main-nav .submenu li a:hover {
    background: #005a5b;
    color: #ffffff;
    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: 15px;
    opacity: 0.8;
    transition: all 0.15s ease;
}

.main-nav .submenu li a:hover::before {
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}
.main-nav > ul > li:last-child {
    position: relative !important;
}

.main-nav > ul > li:last-child .submenu {
    left: auto !important;
    right: 0 !important;
    min-width: 190px !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modales Universales Base */
.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: 0 !important;
    box-sizing: border-box;
}

/* Pie de página Base */
.site-footer {
    background-color: #005a5b !important;
    color: #ffffff;
    padding: 14px 0 !important;
}

.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;
}

.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;
}
/* Cabecera unificada con título centrado y cruz a la derecha */
.cabecera-hablamos-modal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #006F6F;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.titulo-hablamos-texto {
    font-size: 14px; /* Bajamos de 16px a 14px para que respire mejor en dos líneas */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2; /* Añadimos interlineado para que no se junten las líneas */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 70%; /* Evita que el texto invada el espacio de la cruz */
    text-align: center;
}

.boton-cruz-hablamos {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    z-index: 2;
}

.formulario-modal-interior {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-modal-estandar {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.select-modal-fondo {
    background: #fff;
}

.textarea-modal-estandar {
    resize: none;
}

.contenedor-checkbox-privacidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
    text-align: center;
}

.checkbox-tamano {
    width: 18px;
    height: 18px;
}

.label-privacidad-texto {
    font-size: 13px;
    color: #475569;
}

.enlace-privacidad-modal {
    color: #005a5b;
    text-decoration: underline;
}

.boton-enviar-modal-naranja {
    width: 100%;
    background: #d9531e;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.formulario-aviso-privacidad {
	color:#006F6F;
	font-size:14px;
	font-weight:700;
}


.aviso-seguridad-modal-interior {
    text-align: center;
    margin-top: 8px;
}

.aviso-seguridad-modal-interior p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

/* Caja de Privacidad / Iframe */
.caja-modal-privacidad-estilo {
    display: none;
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    height: 85vh;
    max-height: 650px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.boton-cruz-privacidad {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #005a5b;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

.contenedor-iframe-privacidad {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    margin-top: 25px;
}

.iframe-estilo-real {
    width: 100%;
    height: 100%;
    border: none;
}

/* Adaptación visual para PC */
@media (min-width: 768px) {
    .caja-modal-contacto-estilo {
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
        box-shadow: 0 25px 50px rgba(0,0,0,0.3) !important;
        padding: 30px 35px !important;
    }
}