*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-padding-top: 160px;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

section[id],
.descripcion-menu {
    scroll-margin-top: 160px;
}

/* Fijar todo el encabezado en la parte superior de la pantalla */
.header-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Barra superior delgada */
.top-bar {
    background-color: #001226;
    color: white;
    padding: 10px 60px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 35px;
}

.top-bar-info a,
.footer-datos a {
    color: inherit;
    text-decoration: none;
}

.top-bar-info a:hover,
.top-bar-info a:focus-visible,
.footer-datos a:hover,
.footer-datos a:focus-visible {
    text-decoration: underline;
}

/* Encabezado principal */
.encabezado {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 18px 60px;
    background-color: rgba(0, 26, 51, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    justify-self: end;
    margin-right: 110px;
}

.logo img {
    max-width: 401px;
    max-height: 127px;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    transition: all 0.3s ease;
}

.logo img:hover,
.footer-marca img:hover {
    transform: translateY(-5px) scale(1.06);
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.32));
}

.logo img:active,
.footer-marca img:active {
    transform: translateY(-1px) scale(0.98);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
}

/* Menú de navegación */
.menu {
    display: flex;
    gap: 8px;
    justify-self: center;
    align-self: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: rgba(0, 30, 60, 0.75);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.menu a {
    padding: 10px 14px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-weight: bold;
    font-size: 30px;
    transition: all 0.3s ease;
}

.menu a:hover,
.menu a:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    text-shadow: 0 0 12px rgba(173, 224, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .menu a {
        transition: none;
    }
}

/* Sección de teléfono a la derecha */
.contacto-telefono {
    display: flex;
    align-items: center;
    justify-self: end;
    color: white;
}

.icono-tel {
    background-color: #0088cc;
    padding: 12px;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 20px;
}

.texto-tel {
    display: flex;
    flex-direction: column;
}

.texto-tel small {
    font-size: 13px;
    color: #ccc;
}

.texto-tel strong {
    font-size: 18px;
}

.texto-tel a {
    color: inherit;
    text-decoration: none;
}

.texto-tel a:hover,
.texto-tel a:focus-visible {
    text-decoration: underline;
}

/* Sección principal (Hero) compensando el espacio superior del menú fijo */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    color: white;
    text-align: center;
    padding: 250px 24px 48px;
}

.hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(rgba(0, 24, 48, 0.78), rgba(0, 24, 48, 0.82));
    content: "";
    pointer-events: none;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    width: min(100%, 900px);
    justify-self: center;
}

.hero-contenido h1 {
    font-size: 48px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.15;
}

.hero-marca {
    font-size: 72px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-style: italic;
    font-weight: 700;
    margin: 0 0 32px;
    letter-spacing: 1px;
}

.descripcion-menu {
    position: relative;
    height: auto;
    max-width: 1120px;
    margin: 35px auto 40px;
    padding: 24px 30px;
    border-left: 5px solid #0088cc;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 180px;
}

.descripcion-menu[hidden] {
    display: none;
}

.descripcion-menu p {
    margin: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.6;
}

.filosofia-boton-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.filosofia-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #0b2348;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 0 18px rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filosofia-boton:hover,
.filosofia-boton:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3), inset 0 0 18px rgba(255, 255, 255, 0.18);
    background: #102f59;
}

.filosofia-modal {
    width: min(900px, calc(100% - 32px));
    max-width: 900px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: transparent;
    color: #0f2a4a;
    box-shadow: 0 28px 80px rgba(0, 18, 38, 0.42), 0 0 0 1px rgba(15, 42, 74, 0.08);
}

.filosofia-modal[open] {
    animation: modal-regimen-entrada 0.18s ease-out;
}

.filosofia-modal::backdrop {
    background: rgba(0, 18, 38, 0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.filosofia-modal__contenido {
    max-height: none;
    overflow: visible;
    padding: 20px 28px 18px;
    border-radius: inherit;
    background: rgba(248, 252, 255, 0.88);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.filosofia-modal__contenido h4 {
    margin: 0 32px 10px 0;
    color: #0f2a4a;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.filosofia-acordeon {
    display: grid;
    gap: 8px;
}

.filosofia-modal .filosofia-acordeon details {
    overflow: hidden;
    border: 1px solid rgba(0, 85, 128, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(0, 43, 73, 0.09);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filosofia-modal .filosofia-acordeon details[open] {
    border-color: rgba(0, 85, 128, 0.38);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(0, 43, 73, 0.13);
}

.filosofia-modal .filosofia-acordeon summary {
    position: relative;
    padding: 9px 16px;
    color: #002b49;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.filosofia-modal .filosofia-acordeon summary::-webkit-details-marker {
    display: none;
}

.filosofia-modal .filosofia-acordeon summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #0f2a4a;
    font-size: 1.6rem;
    font-weight: 700;
}

.filosofia-modal .filosofia-acordeon details[open] summary::after {
    content: '−';
}

.filosofia-modal .filosofia-acordeon p,
.filosofia-modal .filosofia-acordeon ul,
.filosofia-modal .filosofia-acordeon li {
    text-align: justify;
    color: #173b5c;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-weight: 500;
}

.filosofia-modal .filosofia-acordeon ul {
    list-style: none;
}

.filosofia-modal .filosofia-acordeon li {
    font-weight: 500;
}

.filosofia-modal .filosofia-acordeon p,
.filosofia-modal .filosofia-acordeon ul {
    margin: 0;
    padding: 0 16px 10px;
    font-size: 0.96rem;
    line-height: 1.4;
}

.filosofia-modal .filosofia-acordeon ul {
    padding-left: 32px;
}

.filosofia-modal .filosofia-acordeon li + li {
    margin-top: 3px;
}

.razones-container {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    align-items: stretch;
    gap: 32px;
    width: 95%;
    max-width: 1440px;
    margin: 80px auto;
}

.razones-tarjeta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    border: 1px solid #d7e3ed;
    border-radius: 16px;
    background-color: #0b2348;
    box-shadow: 0 10px 28px rgba(0, 18, 38, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.razones-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 18, 38, 0.22);
}

.razones-tarjeta h2 {
    margin: 0;
    color: #fff;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 2.8em;
    line-height: 1.2;
    text-align: center;
}

.razones-intro {
    max-width: 900px;
    margin: 0 auto;
    color: #364657;
    line-height: 1.65;
    text-align: center;
}

.razones-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.razon {
    padding: 40px;
    border: 2px solid #d7e3ed;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(0, 18, 38, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.razon:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 18, 38, 0.22);
}

.razon h3 {
    margin: 0 0 12px;
    color: #005580;
    font-size: 1.2em;
    line-height: 1.35;
}

.razon p {
    margin: 0;
    color: #364657;
    line-height: 1.65;
}

/* ===== CONTENEDOR Y TARJETAS DE SERVICIOS ===== */

.servicios-container {
    box-sizing: border-box;
    width: 90%;
    max-width: 1200px;
    min-width: 0;
    margin: 40px auto 0;
    padding: 40px 25px;
    text-align: center;
}

.servicios-container h2 {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 3.6em;
    color: #fff;
    margin: 0 auto 45px;
    padding: 28px clamp(24px, 6vw, 64px);
    border-radius: 999px;
    background-color: #0b2348;
    box-shadow: 0 10px 28px rgba(0, 18, 38, 0.16);
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicios-container h2:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 18, 38, 0.22);
}

/* Grid adaptable para tarjetas */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 40px;
    max-width: none;
    margin: 0 auto;
}

.regimenes-container {
    box-sizing: border-box;
    width: 95%;
    max-width: 1440px;
    margin: 80px auto;
}

.regimenes-destacado {
    position: relative;
    left: 50%;
    box-sizing: border-box;
    width: calc(100vw - 4cm);
    max-width: 1800px;
    transform: translateX(-50%);
    margin-bottom: 72px;
    padding: 48px 60px;
    border-radius: 16px;
    background-color: #0b2348;
    box-shadow: 0 10px 28px rgba(0, 18, 38, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.regimenes-destacado:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 18, 38, 0.22);
}

.regimenes-container h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 3.08em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.regimenes-intro {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto 30px;
    color: #e1eaf5;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.848em;
    line-height: 1.65;
    text-align: center;
}

.regimenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    text-align: left;
}

.regimenes-grupo + .regimenes-grupo {
    margin-top: 48px;
}

.sabias-que-lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin: 144px auto 80px;
}

.aviso-sellos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
    width: min(280px, calc(100vw - 32px));
    aspect-ratio: 1;
    margin: 0;
    padding: 24px;
    border-radius: 50%;
    background-color: #0b2348;
    box-shadow: 0 14px 36px rgba(0, 18, 38, 0.24);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aviso-sellos:hover,
.aviso-sellos:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(0, 18, 38, 0.32);
}

.aviso-sellos h2 {
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6em, 7vw, 2em);
    font-weight: 700;
    text-align: center;
}

.aviso-sellos .boton-especificaciones {
    margin-top: 0;
}

.regimenes-grupo > h3 {
    width: 100%;
    margin: 0 0 20px;
    color: #0b2348;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 2.9em;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.tarjeta-regimen {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    border: 1px solid #c8d5e5;
    border-top: 4px solid #005580;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(0, 18, 38, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-regimen:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 18, 38, 0.22);
}

.tarjeta-regimen h4 {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    color: #005580;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.regimenes-container .modal-regimen__contenido h4 {
    box-sizing: border-box;
    width: 100%;
    margin-right: 0;
    padding: 0 40px;
    text-align: center;
}

.boton-especificaciones {
    margin-top: auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background-color: #005580;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.boton-especificaciones:hover,
.boton-especificaciones:focus-visible {
    background-color: #003d5c;
}

.modal-regimen {
    box-sizing: border-box;
    width: min(600px, calc(100% - 32px));
    max-width: 600px;
    max-height: min(80vh, 700px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: #263238;
    box-shadow: 0 24px 70px rgba(0, 18, 38, 0.35);
}

.modal-regimen[open] {
    animation: modal-regimen-entrada 0.18s ease-out;
}

.modal-regimen::backdrop {
    background: rgba(0, 18, 38, 0.68);
    backdrop-filter: blur(3px);
}

.modal-regimen__contenido {
    position: relative;
    overflow-y: auto;
    max-height: min(80vh, 700px);
    padding: 36px;
}

.modal-regimen__contenido h4 {
    margin: 0 40px 20px 0;
    color: #005580;
    font-size: 1.5em;
    line-height: 1.35;
}

.modal-regimen__contenido p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.7;
}

#modal-servicio-seguridad-social .modal-regimen__contenido ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #263238;
    font-size: 1.05em;
    line-height: 1.7;
}

dialog p,
dialog li {
    text-align: justify;
}

.modal-regimen__cerrar {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eaf0f6;
    color: #0b2348;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
}

.modal-regimen__cerrar:hover,
.modal-regimen__cerrar:focus-visible {
    background: #d5e1ec;
}

@keyframes modal-regimen-entrada {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-regimen[open] {
        animation: none;
    }
}

.faq-container {
    box-sizing: border-box;
    width: 90%;
    max-width: 1300px;
    margin: 100px auto 60px;
}

.proceso-container {
    box-sizing: border-box;
    width: 100%;
    margin: 80px 0 0;
    padding: 64px 24px;
    background-color: #001226;
    color: #fff;
    text-align: center;
}

.proceso-contenido {
    max-width: 1300px;
    margin: 0 auto;
}

.proceso-etiqueta {
    margin: 0 0 12px;
    color: #8bd8ff;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.proceso-container h2 {
    max-width: 850px;
    margin: 0 auto;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8em;
    line-height: 1.2;
}

.proceso-divider {
    width: 100px;
    height: 3px;
    margin: 24px auto 40px;
    border-radius: 2px;
    background-color: #55c7ff;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.proceso-paso {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.proceso-numero {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #55c7ff, #0078d4);
    color: #fff;
    font-size: 1.7em;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proceso-numero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.proceso-paso h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.25em;
}

.proceso-paso p {
    max-width: 280px;
    margin: 0;
    color: #e3edf7;
    line-height: 1.6;
}

.proceso-cta {
    display: inline-block;
    margin-top: 44px;
    padding: 16px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #55c7ff, #0078d4);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.proceso-cta:hover,
.proceso-cta:focus-visible {
    box-shadow: 0 6px 18px rgba(85, 199, 255, 0.35);
    transform: translateY(-2px);
}

.faq-container h2 {
    margin: 0 0 30px;
    color: #001226;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2em;
    font-weight: 700;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 50px;
}

.faq-columna {
    display: grid;
    align-content: start;
    row-gap: 35px;
}

.faq-item {
    padding: 10px 0 16px;
    border-bottom: 1px solid #d0d7de;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    color: #001226;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.faq-item p {
    margin: 14px 0 0;
    color: #444;
    font-size: 1.2em;
    line-height: 1.7;
    text-align: justify;
}

.footer-contacto {
    box-sizing: border-box;
    margin-top: 80px;
    padding: 64px max(5%, calc((100% - 1300px) / 2)) 24px;
    background-color: #0b2348;
    color: #fff;
}

.footer-contenido {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.footer-marca img {
    display: block;
    width: min(100%, 439.4px);
    height: auto;
    margin: 0 0 12px;
    mix-blend-mode: screen;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-marca p {
    max-width: 460px;
    margin: 0;
    color: #e1eaf5;
    font-size: 1.05em;
    line-height: 1.7;
}

.footer-datos h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7em;
}

.footer-datos ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-datos li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e1eaf5;
    line-height: 1.5;
}

.footer-datos li > span:first-child {
    width: 24px;
    flex: 0 0 24px;
    color: #55c7ff;
    font-size: 1.25em;
    text-align: center;
}

.footer-datos strong {
    color: #fff;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(225, 234, 245, 0.28);
    color: #e1eaf5;
    font-size: 0.95em;
}

.footer-legal p {
    margin: 0;
}

.footer-legal a {
    color: #8bd8ff;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    text-decoration: underline;
}

.aviso-privacidad {
    box-sizing: border-box;
    width: min(90vw, 800px);
    max-width: none;
    max-height: 85vh;
    padding: 32px;
    border: 1px solid #d7e3ed;
    border-radius: 16px;
    background-color: #fff;
    color: #364657;
    box-shadow: 0 18px 48px rgba(0, 18, 38, 0.28);
    line-height: 1.65;
}

.aviso-privacidad::backdrop {
    background-color: rgba(0, 18, 38, 0.68);
}

.aviso-privacidad__encabezado {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.aviso-privacidad__encabezado h2 {
    margin: 0;
    color: #0b2348;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6em;
    line-height: 1.25;
}

.aviso-privacidad__cerrar {
    flex: 0 0 auto;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #0b2348;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
}

.aviso-privacidad__cerrar:hover,
.aviso-privacidad__cerrar:focus-visible {
    color: #0088cc;
}

.aviso-privacidad__contenido p {
    margin: 0 0 16px;
}

.aviso-privacidad__contenido section {
    margin-top: 20px;
}

.aviso-privacidad__contenido h3 {
    margin: 0 0 8px;
    color: #005580;
    font-size: 1.1em;
}

.aviso-privacidad__contenido h4 {
    margin: 14px 0 6px;
    color: #0b2348;
}

.aviso-privacidad__contenido ul {
    margin: 0;
    padding-left: 24px;
}

.aviso-privacidad__contenido a {
    color: #005580;
}

/* Tarjeta de cada servicio */
.tarjeta-servicio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    min-height: 340px;
    overflow: hidden;
    padding-bottom: 15px;
    background-color: #f9f9f9;
    border: 4px solid #0056b3;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 18, 38, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 18, 38, 0.22);
}

.tarjeta-servicio h3 {
    box-sizing: border-box;
    width: 100%;
    margin: 15px 0 10px;
    padding: 0 8px;
    font-size: 22px;
    color: #001226;
    text-align: center;
}

.tarjeta-servicio > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tarjeta-servicio > img.logo-institucion {
    object-fit: contain;
    background-color: #fff;
}

.imagen-facturacion {
    position: relative;
    flex: 0 0 180px;
    width: 100%;
    height: 180px;
    background-color: #fff;
}

.imagen-facturacion img.logo-institucion {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.imagen-facturacion span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #0088cc;
    color: #fff;
    font-weight: bold;
}

.tarjeta-servicio .boton-especificaciones {
    margin: auto 15px 0;
}

@media (max-width: 1250px) {
    .logo {
        margin-right: 78px;
    }

    .logo img {
        max-width: 287px;
        max-height: 91px;
    }

    .servicios-container {
        width: 95%;
        padding: 24px;
    }

    .regimenes-destacado {
        padding: 48px 52px;
    }

    .faq-container {
        width: 95%;
    }

    .razones-container {
        width: 95%;
    }

    .razon {
        padding: 34px;
    }
}

@media (min-width: 701px) and (max-width: 1500px) {
    .encabezado {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px 32px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-right: 0;
    }

    .logo img {
        width: min(100%, 220px);
        max-height: 70px;
    }

    .menu {
        box-sizing: border-box;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: wrap;
        width: max-content;
        max-width: 100%;
        gap: 4px;
        padding: 6px;
    }

    .menu a {
        padding: 8px 10px;
        font-size: clamp(18px, 2.3vw, 26px);
    }

    .contacto-telefono {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (min-width: 1501px) and (max-width: 1700px) {
    .logo {
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    .top-bar {
        padding: 8px 16px;
    }

    .top-bar-info {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        min-width: 0;
        font-size: 12px;
    }

    .top-bar-info span {
        margin-right: 0;
        overflow-wrap: anywhere;
    }

    .encabezado {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 16px;
    }

    .logo {
        justify-self: start;
        margin-right: 0;
    }

    .logo img {
        width: min(100%, 150px);
        max-height: 48px;
        object-fit: contain;
    }

    .menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        padding: 4px;
        border-radius: 16px;
    }

    .menu a {
        min-width: 0;
        padding: 7px 4px;
        font-size: clamp(13px, 3.8vw, 17px);
        line-height: 1.15;
        text-align: center;
    }

    .contacto-telefono {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .icono-tel {
        margin-right: 8px;
        padding: 9px;
        font-size: 16px;
    }

    .texto-tel small {
        font-size: 11px;
    }

    .texto-tel strong {
        font-size: 15px;
    }

    .filosofia-modal__contenido {
        padding: 16px 14px 14px;
    }

    .filosofia-modal__contenido h4 {
        margin-bottom: 8px;
        font-size: 1.4rem;
    }

    .filosofia-modal .filosofia-acordeon summary {
        padding: 8px 13px;
        font-size: 0.98rem;
    }

    .filosofia-modal .filosofia-acordeon p,
    .filosofia-modal .filosofia-acordeon ul {
        padding: 0 13px 8px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .filosofia-modal .filosofia-acordeon ul {
        padding-left: 28px;
    }

    .filosofia-modal .filosofia-acordeon li + li {
        margin-top: 2px;
    }

    .hero {
        padding-top: clamp(240px, 55vw, 270px);
    }

    .hero-marca {
        font-size: 42px;
    }

    .hero-contenido h1 {
        font-size: 36px;
    }

    .regimenes-destacado {
        left: auto;
        width: 100%;
        max-width: none;
        transform: none;
        margin-bottom: 56px;
        padding: 30px;
    }

    .regimenes-destacado:hover {
        transform: translateY(-5px);
    }

    .regimenes-container h2 {
        font-size: 2.772em;
    }

    .regimenes-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-contacto {
        margin-top: 60px;
        padding: 48px 24px 20px;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .razones-tarjeta {
        min-height: 180px;
        padding: 30px;
    }

    .razones-tarjeta h2 {
        font-size: 2.3em;
    }

}

@media (max-width: 380px) {
    .encabezado {
        padding-right: 10px;
        padding-left: 10px;
    }

    .logo img {
        width: min(100%, 125px);
    }

    .menu a {
        padding: 6px 3px;
    }

    .servicios-container {
        padding: 16px;
    }

    .regimenes-destacado {
        padding: 24px 18px;
    }

    .aviso-privacidad {
        padding: 24px 18px;
    }
}

@media (max-height: 650px) {
    .filosofia-modal__contenido {
        padding-top: 12px;
        padding-bottom: 10px;
    }

    .filosofia-modal__contenido h4 {
        margin-bottom: 6px;
        font-size: 1.35rem;
    }

    .filosofia-modal .filosofia-acordeon {
        gap: 5px;
    }

    .filosofia-modal .filosofia-acordeon summary {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .filosofia-modal .filosofia-acordeon p,
    .filosofia-modal .filosofia-acordeon ul {
        padding-bottom: 6px;
        font-size: 0.88rem;
        line-height: 1.25;
    }
}

@media (max-width: 900px) {
    .proceso-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }
}

@media (max-width: 700px) {
    .razones-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .razones-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

@media (max-width: 520px) {
    .proceso-container {
        padding: 48px 20px;
    }

    .proceso-container h2 {
        font-size: 2em;
    }

    .proceso-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
    .top-bar {
        padding-right: clamp(16px, 4vw, 32px);
        padding-left: clamp(16px, 4vw, 32px);
    }

    .encabezado {
        padding-right: clamp(16px, 4vw, 32px);
        padding-left: clamp(16px, 4vw, 32px);
    }

    .hero {
        padding-right: 16px;
        padding-left: 16px;
        padding-top: clamp(220px, 45vw, 260px);
    }

    .hero-marca {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-contenido h1 {
        font-size: clamp(28px, 6vw, 40px);
    }

    h2 {
        font-size: clamp(22px, 4.5vw, 32px);
    }

    .razones-tarjeta h2,
    .regimenes-container h2,
    .proceso-container h2 {
        font-size: clamp(22px, 4.5vw, 32px);
    }

    .descripcion-menu,
    .razones-container,
    .servicios-container,
    .regimenes-container,
    .faq-container,
    .proceso-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .razones-tarjeta,
    .razon {
        padding: 24px;
    }

    .servicios-container {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .regimenes-destacado {
        padding: 32px 24px;
    }

    .proceso-container {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}