@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

@font-face {
    font-family: 'Nunito-Fallback';
    src: local('Arial');
    ascent-override: 95.12%;
    descent-override: 33.01%;
    line-gap-override: 0%;
    size-adjust: 101.33%;
}

/* Variables globales */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --brand-manuel: #0097b2;
    --accent-color: #e74c3c;
    /* Usado para errores */
    --success-color: #2ecc71;
    /* Añadido */
    --warning-color: #f1c40f;
    /* Añadido */
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Nunito', 'Nunito-Fallback', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    --font-body: var(--font-family);
    --font-heading: var(--font-family);
    /* Margen horizontal de páginas/secciones: 5% en escritorio */
    --page-gutter: 5%;
}


/* Estilos generales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.25;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* Header y Navegación */

.site-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.25rem;
    padding: 0.65rem 3%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.site-navbar > .logo,
.site-navbar > .nav-links,
.site-navbar > .lang-switcher,
.site-navbar > .btn-login,
.site-navbar > .hamburger {
    align-self: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 88px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    text-decoration: none;
}

/* El PNG es un lienzo cuadrado; el dibujo es apaisado. Recortamos el margen transparente. */
.brand-logo {
    --logo-h: 88px;
    --logo-ratio: 1.9041;
    --logo-scale: 2.2825;
    --logo-shift-x: 0.25;
    --logo-shift-y: 0.5514;
    display: block;
    width: calc(var(--logo-h) * var(--logo-ratio));
    height: var(--logo-h);
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo--nav {
    --logo-h: 88px;
}

.brand-logo--footer {
    --logo-h: 108px;
    background: transparent;
}

.brand-logo--login {
    --logo-h: 104px;
    margin: 0 auto 1rem;
}

.brand-logo--sidebar {
    --logo-h: 102px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.brand-logo__img {
    width: calc(var(--logo-h) * var(--logo-scale));
    height: calc(var(--logo-h) * var(--logo-scale));
    max-width: none;
    margin-left: calc(var(--logo-h) * var(--logo-shift-x) * -1);
    margin-top: calc(var(--logo-h) * var(--logo-shift-y) * -1);
    object-fit: fill;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: block;
}

.logo-title {
    height: 2.1rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    --animate-duration: 0.85s;
    --animate-delay: 0.2s;
}

.logo-link:hover .brand-logo--nav {
    transform: scale(1.02);
}

.logo-link:hover .logo-title {
    opacity: 0.88;
    transform: translateX(2px);
}

.site-navbar--sin-menu .lang-translate-widget {
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0 0 0 auto;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links li + li::before {
    content: '';
    flex-shrink: 0;
    width: 1px;
    height: 1.15rem;
    margin-right: 1rem;
    margin-left: -1rem;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(74, 144, 226, 0.2) 20%,
        rgba(44, 62, 80, 0.28) 50%,
        rgba(74, 144, 226, 0.2) 80%,
        transparent 100%
    );
    border-radius: 1px;
    pointer-events: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
    min-height: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0.65);
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

#hero,
#servicios,
#mejora-tu-salud,
#contacto {
    scroll-margin-top: 90px;
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease !important;
}

.btn-login:hover {
    background-color: #357abd;
}

.btn-login--hidden {
    display: none !important;
}

.site-navbar .btn-login.btn-login--hidden {
    display: none !important;
}

/* Selector idioma — Google Translate invisible pero operativo para JS */
.lang-translate-widget,
#google_translate_element {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
    color: transparent !important;
}

#google_translate_element .goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-menu-value span:nth-child(3),
.goog-te-gadget-icon {
    display: none !important;
}

/* Solo la barra/iframe que Google inyecta en <body>, NO el gadget interno con <select> */
body > .skiptranslate {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
}

html.translated-ltr,
html.translated-rtl,
body.translated-ltr,
body.translated-rtl {
    top: 0 !important;
    margin-top: 0 !important;
}

body {
    top: 0 !important;
    margin-top: 0 !important;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    margin-left: 0.35rem;
    padding: 0.18rem 0.28rem;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.06);
    border: 1px solid rgba(74, 144, 226, 0.14);
}

.lang-switcher-btn {
    border: none;
    background: transparent;
    color: #78909c;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.38rem;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-flag {
    display: block;
    width: 1.2rem;
    height: 0.85rem;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

/* Senyera (valencià / català) simplificada */
.lang-flag--va {
    background: repeating-linear-gradient(
        180deg,
        #fcdd09 0,
        #fcdd09 11.11%,
        #da121a 11.11%,
        #da121a 22.22%
    );
}

/* Union Jack (Reino Unido) */
.lang-flag--en {
    background: url('../img/flag-gb.svg') center / cover no-repeat;
    background-color: #012169;
}

.lang-switcher-btn:hover,
.lang-switcher-btn:focus-visible {
    background: rgba(74, 144, 226, 0.1);
    outline: none;
}

.lang-switcher-btn:hover .lang-flag,
.lang-switcher-btn:focus-visible .lang-flag {
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.45);
}

.lang-switcher-btn--active {
    background: rgba(74, 144, 226, 0.18);
    box-shadow: inset 0 0 0 1px rgba(74, 144, 226, 0.22);
}

.lang-switcher-btn--active .lang-flag {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.site-navbar .btn-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 5px;
    box-shadow: none;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.site-navbar .btn-login:hover,
.site-navbar .btn-login:active {
    transform: none;
    box-shadow: none;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.footer-logo-link:hover .brand-logo--footer {
    transform: scale(1.02);
}

.footer-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.footer-tools .lang-switcher {
    margin-left: 0;
    background: rgba(36, 54, 46, 0.06);
    border-color: rgba(36, 54, 46, 0.16);
}

.footer-tools .btn-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 5px;
    box-shadow: none;
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
}

.footer-tools .btn-login.btn-login--hidden {
    display: none !important;
}

.footer-tools .btn-login:hover,
.footer-tools .btn-login:active {
    transform: none;
    box-shadow: none;
    color: var(--white) !important;
}


/* Hero Section */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

body.pagina-sin-menu .hero {
    padding-top: 0;
}

body.pagina-sin-menu .precios-hero,
body.pagina-sin-menu .testimonios-hero,
body.pagina-sin-menu .faq-hero,
body.pagina-sin-menu .sobre-hero,
body.pagina-sin-menu .contacto-hero,
body.pagina-sin-menu .blog-hero,
body.pagina-sin-menu .legal-hero {
    margin-top: 0;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.95;
}

.hero-subtitle--desktop {
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-top: 2rem;
}

.hero-actions .cta-button,
.hero-actions .reserve-btn {
    margin-top: 0;
}

.hero-contact-btn {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.hero-contact-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* Servicios */

.services {
    padding: 5rem 2rem;
    background: var(--white);
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.services > h2,
.page-servicios .services > h1 {
    text-align: center;
    font-size: 2.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.page-servicios .services {
    margin-top: 108px;
}

.about > h2,
.contact > h2 {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.services-intro {
    max-width: none;
    margin: 1rem 145px 0;
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.92;
}

.services-photo {
    width: calc(100% - 200px);
    max-width: calc(100% - 200px);
    margin: 2.5rem 100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 360px;
}

.services-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
}

.services-list .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem 3.6rem;
    margin-top: 3rem;
    max-width: 100%;
}

.service-item {
    background: none;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

.service-item h2 {
    color: var(--secondary-color);
    font-size: 1.90rem;
    font-weight: 600;
    margin-bottom: calc(0.75rem + 10px);
    line-height: 1.35;
    text-align: left;
}

.service-item-photo {
    margin: 1.25rem 0 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.45s ease;
}

.service-item-photo--interactive {
    cursor: pointer;
}

.service-item-photo--interactive::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(74, 144, 226, 0.08) 0%,
        rgba(44, 62, 80, 0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-item-photo--interactive:hover,
.service-item-photo--interactive:focus-visible {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 36px rgba(74, 144, 226, 0.22);
}

.service-item-photo--interactive:hover img,
.service-item-photo--interactive:focus-visible img {
    transform: scale(1.07);
    filter: brightness(1.04);
}

.service-item-photo--interactive:hover::after,
.service-item-photo--interactive:focus-visible::after {
    opacity: 1;
}

.service-item-photo--interactive:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .service-item-photo,
    .service-item-photo img,
    .service-item-photo--interactive::after {
        transition: none;
    }

    .service-item-photo--interactive:hover,
    .service-item-photo--interactive:focus-visible,
    .service-item-photo--interactive:hover img,
    .service-item-photo--interactive:focus-visible img {
        transform: none;
        filter: none;
    }
}

.service-item p {
    color: var(--text-color);
    line-height: 1.75;
    font-size: 1.1rem;
    margin: 0 0 0;
    opacity: 0.9;
}

.service-item-footer {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.service-item .service-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.04) 100%);
    border: 1.5px solid rgba(74, 144, 226, 0.4);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-item .service-more i {
    font-size: 0.8em;
    transition: transform 0.25s ease;
}

.service-item .service-more:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bc8 100%);
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.35);
    transform: translateY(-2px);
}

.service-item .service-more:hover i {
    transform: translateX(4px);
}

.service-item .service-more:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.service-more,
.service-reserve {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    font-family: inherit;
}

.service-more:hover,
.service-reserve:hover {
    color: var(--secondary-color);
}


/* Galería — carrusel Bootstrap (fotos de servicios) */

.services-gallery {
    padding: 4.5rem 2rem 5rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 45%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.services-gallery::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.services-gallery::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.services-gallery-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.services-gallery > .services-gallery-inner > h2 {
    text-align: center;
    font-size: 2.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.services-gallery-intro {
    margin: 0 auto 2.75rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.7;
    opacity: 0.88;
}

.services-gallery-carousel-host {
    width: 100%;
    margin: 0 auto;
}

.services-gallery-carousel {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(44, 62, 80, 0.08),
        0 20px 48px rgba(74, 144, 226, 0.14);
    background: var(--secondary-color);
}

.gallery-carousel-inner {
    border-radius: 22px;
}

.gallery-slide-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #4a90e2 100%);
}

.gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 8s ease;
}

.services-gallery-carousel .carousel-item.active .gallery-slide-img {
    transform: scale(1.04);
}

.gallery-slide-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 2.25rem 1.75rem;
    text-align: left;
    background: linear-gradient(to top, rgba(20, 30, 48, 0.88) 0%, rgba(20, 30, 48, 0.45) 55%, transparent 100%);
}

.gallery-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(74, 144, 226, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.gallery-slide-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.35rem;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.gallery-slide-caption p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 720px;
    line-height: 1.55;
}

.gallery-carousel-indicators {
    margin-bottom: 1.1rem;
    gap: 0.35rem;
}

.gallery-carousel-indicators [data-bs-target] {
    width: 2.25rem;
    height: 0.35rem;
    border-radius: 999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.gallery-carousel-indicators .active {
    width: 3rem;
    background-color: var(--white);
}

.gallery-carousel-control {
    width: 12%;
    opacity: 1;
}

.gallery-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);
    font-size: 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.gallery-carousel-control:hover .gallery-control-icon,
.gallery-carousel-control:focus .gallery-control-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.08);
}

.services-gallery-carousel .carousel-control-prev-icon,
.services-gallery-carousel .carousel-control-next-icon {
    display: none;
}

@media (max-width: 992px) {
    .services-gallery {
        padding: 4rem 1.5rem 4.5rem;
    }

    .gallery-slide-caption {
        padding: 1.5rem 1.5rem 1.35rem;
    }

    .gallery-slide-caption h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .services-gallery {
        padding: 3rem 1.25rem 3.5rem;
    }

    .services-gallery > .services-gallery-inner > h2 {
        font-size: 2.25rem;
    }

    .services-gallery-intro {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .services-gallery-carousel {
        border-radius: 16px;
    }

    .gallery-slide-media {
        aspect-ratio: 4 / 3;
    }

    .gallery-slide-caption {
        padding: 1.25rem 1rem 1rem;
        background: linear-gradient(to top, rgba(20, 30, 48, 0.95) 0%, rgba(20, 30, 48, 0.55) 70%, transparent 100%);
    }

    .gallery-slide-caption h3 {
        font-size: 1.15rem;
    }

    .gallery-slide-caption p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .gallery-control-icon {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .gallery-carousel-control {
        width: 15%;
    }
}

@media (max-width: 480px) {
    .services-gallery {
        padding: 2.5rem 1rem 3rem;
    }

    .services-gallery > .services-gallery-inner > h2 {
        font-size: 2rem;
    }

    .gallery-control-icon {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .gallery-carousel-indicators [data-bs-target] {
        width: 1.5rem;
    }

    .gallery-carousel-indicators .active {
        width: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide-img,
    .services-gallery-carousel .carousel-item.active .gallery-slide-img {
        transition: none;
        transform: none;
    }
}

.service-card {
    background: var(--white);
    padding: 1.75rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    min-height: auto;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 0;
    margin-bottom: 1rem;
    min-height: auto;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.service-details {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.service-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details i {
    color: var(--primary-color);
}

.service-card .reserve-btn {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.service-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.service-actions .cta-button {
    flex: 1;
    margin-top: 0;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.info-btn {
    background: var(--secondary-color) !important;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2) !important;
}

.info-btn:hover {
    background: #1a252f !important;
}


/* Sobre Mí */

.about {
    padding: 5rem 2rem;
    background: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-image img {
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    text-align: left;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.about-text .profession {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text .profession a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about-text .profession a:hover,
.about-text .profession a:focus {
    color: var(--secondary-color, #1a6b4a);
    border-bottom-color: currentColor;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.specialties {
    margin: 2rem 0;
}

.specialties h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.specialties ul,
.specialty-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.specialties li {
    padding: 0;
    background: none;
    border-radius: 0;
}

.specialty-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--light-bg);
    border: none;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
}

.specialty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

a.specialty-btn {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

a.specialty-btn:visited {
    color: var(--text-color);
}

a.specialty-btn:hover,
a.specialty-btn:focus-visible {
    color: var(--white);
}

.specialty-list li:last-child {
    grid-column: 1 / -1;
}

.specialty-btn--link {
    max-width: 320px;
    margin: 0 auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}


/* Contacto */

.contact {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

/* Oculto temporalmente en portada; la sección sigue en el HTML */
.contact.contact--oculto {
    display: none !important;
}

.contact-intro {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.fab-dock {
    position: fixed;
    right: max(1.1rem, env(safe-area-inset-right));
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    z-index: 1100;
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.contact-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(53, 122, 189, 0.38);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-fab--whatsapp {
    box-sizing: border-box;
    align-self: stretch;
    width: calc(1.8rem + 0.98rem);
    min-width: calc(1.8rem + 0.98rem);
    padding: 0.45rem;
    font-size: 1.35rem;
    line-height: 1;
    background: linear-gradient(135deg, #2fe072, #128c7e);
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.34);
}

.contact-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(53, 122, 189, 0.46);
    color: #fff;
}

.contact-fab--whatsapp:hover {
    box-shadow: 0 16px 32px rgba(18, 140, 126, 0.42);
    color: #fff;
}

.contact-fab:focus-visible {
    outline: 3px solid rgba(74, 144, 226, 0.45);
    outline-offset: 3px;
}

#modal-contacto {
    background-color: rgba(28, 51, 41, 0.46);
}

.modal-content.modal-content--contacto {
    max-width: 540px;
    padding: 2.35rem 2rem 2rem;
    border-radius: 22px;
    border: 1px solid rgba(28, 51, 41, 0.08);
    color: #1c3329;
    box-shadow: 0 24px 50px rgba(28, 51, 41, 0.18);
    background-color: #f7f4ee;
    background-image: radial-gradient(ellipse 70% 42% at 100% 0%, rgba(142, 164, 138, 0.28), transparent 58%);
}

.modal-content--contacto .close-modal {
    color: #1c3329;
    background: rgba(28, 51, 41, 0.06);
}

.modal-content--contacto .close-modal:hover {
    color: #f7f4ee;
    background: #1e4634;
}

.contact-modal-eyebrow {
    margin: 0 0 0.4rem;
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.35rem, 1.2vw + 1.15rem, 1.75rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #375042;
}

.modal-content--contacto .modal-body h2 {
    margin-bottom: 0.7rem;
    padding-bottom: 0;
    border-bottom: none;
    color: #1c3329;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
}

.contact-modal-lead {
    margin-top: 0;
    color: #4d6156;
}

.contact-modal-lead a {
    color: #1e4634;
    font-weight: 600;
}

.contact-form--modal {
    max-width: none;
}

.modal-content--contacto .contact-form input,
.modal-content--contacto .contact-form textarea {
    background: #fffdf8;
    border: 1px solid rgba(28, 51, 41, 0.16);
    border-radius: 14px;
    color: #1c3329;
}

.modal-content--contacto .contact-form input::placeholder,
.modal-content--contacto .contact-form textarea::placeholder {
    color: #7d9086;
}

.modal-content--contacto .contact-form input:focus,
.modal-content--contacto .contact-form textarea:focus {
    outline: none;
    border-color: #1e4634;
    box-shadow: 0 0 0 3px rgba(30, 70, 52, 0.14);
}

.modal-content--contacto .submit-btn {
    background: #1e4634;
    color: #f7f4ee;
    border-radius: 999px;
    box-shadow: none;
}

.modal-content--contacto .submit-btn:hover,
.modal-content--contacto .submit-btn:focus-visible {
    background: #163628;
    color: #f7f4ee;
    box-shadow: none;
}


/* Footer */

footer {
    background: #e7efe8;
    color: #24362e;
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #1c3329;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-brand {
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-brand-logo {
    display: block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background: #7d9a86;
}

.footer-logo {
    margin-top: 1.5rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-section p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section p i {
    flex-shrink: 0;
    line-height: 1.5;
    margin-top: 0.15em;
}

.footer-section a {
    color: #1c3329;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3d6b4f;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

footer .social-links a {
    color: #1c3329;
    background: rgba(36, 54, 46, 0.08);
}

footer .social-links a:hover {
    color: var(--white);
    background: #3d6b4f;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(36, 54, 46, 0.12);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(36, 54, 46, 0.72);
}

.footer-legal {
    margin: 0;
}

.footer-legal a {
    color: rgba(36, 54, 46, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #1c3329;
    text-decoration: underline;
}

.footer-legal-sep {
    margin: 0 0.45rem;
    color: rgba(36, 54, 46, 0.45);
}

.footer-colegiado {
    margin-top: -0.35rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-colegiado a {
    color: rgba(36, 54, 46, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-colegiado a:hover {
    color: #3d6b4f;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-brand-title {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    .footer-section p {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-tools {
        align-items: center;
    }
    .footer-tools .btn-login {
        align-self: center;
    }
}


/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 5;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    border: none;
    padding: 0;
    font-family: inherit;
}

.close-modal:hover {
    color: var(--accent-color);
    background: #eee;
}

.modal-body h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.modal-body h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.modal-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.benefit-list li::before {
    content: '✔️';
    font-family: inherit;
    color: inherit;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    .modal-body h2 {
        font-size: 1.5rem;
    }
    .modal-body h3 {
        font-size: 1.2rem;
    }
}

/* Animaciones */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive */

@media (max-width: 992px) {
    .services-photo {
        width: calc(100% - 80px);
        max-width: calc(100% - 80px);
        margin: 2.5rem 40px;
        height: 300px;
    }

    .services-list .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.6rem 2.7rem;
    }
}

/* Botones */

.cta-button,
.btn-login,
.submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cta-button i,
.btn-login i,
.submit-btn i {
    line-height: 1;
    flex-shrink: 0;
}

.cta-button:hover,
.btn-login:hover,
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: #357abd;
}

.cta-button:active,
.btn-login:active,
.submit-btn:active {
    transform: translateY(-1px);
}

.cta-button::before,
.btn-login::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before,
.btn-login:hover::before,
.submit-btn:hover::before {
    left: 100%;
}


/* Botón de reserva específico */

.reserve-btn {
    background: linear-gradient(45deg, var(--primary-color), #357abd);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.reserve-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #357abd, var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    border-radius: 50px;
}

.reserve-btn:hover::after {
    opacity: 1;
}


/* Animación de pulso para el botón de reserva */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.reserve-btn:not(#hero-reserve-btn) {
    animation: pulse 2s infinite;
}

#hero-reserve-btn {
    --animate-duration: 1.6s;
}


/* Responsive */

@media (max-width: 768px) {
    .cta-button,
    .btn-login,
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .reserve-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.parallax-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: none;
}

.parallax-hero::before {
    content: none;
}

.hero-parallax-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-parallax-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    filter: blur(0.5px) brightness(0.7);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.hero-parallax-slide.is-active {
    background-attachment: fixed;
    opacity: 1;
}

.hero-parallax-slide--logo {
    background-color: #e7efe8;
    background-size: 108% auto;
    background-position: center 46%;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-parallax-slide {
        transition: none;
    }
}

.parallax-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 3rem;
    background: rgba(44, 62, 80, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Secciones de categorías de servicios */

.categoria-section {
    margin-bottom: 2.5rem;
}

.categoria-section .services-grid {
    margin-top: 1rem;
}

.categoria-titulo {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff3f3;
    border-radius: 10px;
    color: var(--danger-color);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.1rem;
}


/* Estilos del menú hamburguesa */

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.55rem;
    z-index: 1001;
    width: 2.85rem;
    height: 2.85rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    align-self: center;
    line-height: 0;
    box-sizing: border-box;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hamburger:active {
    background: rgba(74, 144, 226, 0.12);
    transform: scale(0.94);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    flex-shrink: 0;
    background-color: #204e79;
    background-image: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    margin: 0;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.25s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 22px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-6px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    width: 22px;
}

@keyframes mobileNavOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mobileNavItemIn {
    from {
        opacity: 0;
        transform: translateX(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    :root {
        /* 1.5rem = 24px con font-size base 16px (5% en móvil ≈ 18–21px) */
        --page-gutter: 1.5rem;
        --mobile-nav-width: min(64vw, 16rem);
    }

    html,
    body {
        overflow-x: hidden;
        overflow-x: clip;
        max-width: 100%;
    }

    /* —— Layout general móvil (nav, hero, about, servicios) —— */
    body.mobile-nav-open {
        overflow: hidden;
    }

    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(44, 62, 80, 0.42);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 998;
        animation: mobileNavOverlayIn 0.35s ease forwards;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: calc(-1 * var(--mobile-nav-width));
        width: var(--mobile-nav-width);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        gap: 0;
        background: linear-gradient(165deg, #f7f4ec 0%, #eef2ea 48%, #dde6dc 100%);
        padding: 4.75rem 1.5rem 2.5rem;
        box-shadow: -12px 0 40px rgba(55, 80, 66, 0.18);
        border-left: 1px solid rgba(55, 80, 66, 0.14);
        z-index: 999;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            right 0.42s cubic-bezier(0.32, 0.72, 0, 1),
            opacity 0.32s ease,
            visibility 0s linear 0.42s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        right: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            right 0.42s cubic-bezier(0.32, 0.72, 0, 1),
            opacity 0.32s ease,
            visibility 0s linear 0s;
    }

    .nav-links li {
        display: block;
        width: 100%;
        margin: 0.1rem 0;
        padding: 0;
        opacity: 0;
        transform: translateX(1.25rem);
    }

    .nav-links li + li::before {
        display: block;
        width: calc(100% - 1.25rem);
        height: 1px;
        margin: 0.05rem auto 0.18rem 1.1rem;
        background: linear-gradient(
            90deg,
            rgba(55, 80, 66, 0.28) 0%,
            rgba(55, 80, 66, 0.14) 28%,
            rgba(55, 80, 66, 0.08) 50%,
            rgba(55, 80, 66, 0.04) 72%,
            transparent 100%
        );
        border-radius: 1px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    .nav-links.active li {
        animation: mobileNavItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.06s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.14s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.18s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.22s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.26s; }
    .nav-links.active li:nth-child(7) { animation-delay: 0.3s; }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1.08rem;
        font-weight: 600;
        color: #1c3329;
        padding: 0.58rem 1rem 0.58rem 1.1rem;
        border-radius: 12px;
        position: relative;
        overflow: hidden;
        transition:
            color 0.25s ease,
            background 0.25s ease,
            transform 0.2s ease,
            box-shadow 0.25s ease;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        border-radius: 0 4px 4px 0;
        background: linear-gradient(180deg, #5a7264, #375042);
        transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: #375042;
        background: rgba(55, 80, 66, 0.08);
        box-shadow: inset 0 0 0 1px rgba(55, 80, 66, 0.12);
    }

    .nav-links a:active {
        transform: scale(0.98);
        background: rgba(55, 80, 66, 0.14);
    }

    .nav-links a.active {
        color: #375042;
        background: rgba(55, 80, 66, 0.1);
        box-shadow: inset 0 0 0 1px rgba(55, 80, 66, 0.14);
    }

    .nav-links a.active:hover,
    .nav-links a.active:focus-visible,
    .nav-links a.active:active {
        color: #375042;
        background: rgba(55, 80, 66, 0.14);
        box-shadow: inset 0 0 0 1px rgba(55, 80, 66, 0.18);
        transform: none;
    }

    .nav-links a.active::before {
        height: 58%;
        display: block;
        background: linear-gradient(180deg, #5a7264, #375042);
    }

    .hamburger {
        display: inline-flex;
        flex-direction: column;
        margin-left: 0;
        order: 3;
    }

    .hamburger:active {
        background: rgba(55, 80, 66, 0.12);
    }

    .hamburger span {
        background-color: #375042;
        background-image: linear-gradient(90deg, #1c3329 0%, #375042 55%, #4d6156 100%);
    }

    body.page-home .nav-links a {
        color: #1c3329;
    }

    body.page-home .nav-links a.active,
    body.page-home .nav-links a:hover,
    body.page-home .nav-links a:focus-visible {
        color: #375042;
    }

    body.page-home .nav-links a.active::after {
        display: none;
    }

    body.page-home .nav-links li + li::before {
        background: linear-gradient(
            90deg,
            rgba(55, 80, 66, 0.28) 0%,
            rgba(55, 80, 66, 0.14) 28%,
            rgba(55, 80, 66, 0.08) 50%,
            rgba(55, 80, 66, 0.04) 72%,
            transparent 100%
        );
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-links,
        .nav-links.active li,
        body.mobile-nav-open::before {
            animation: none !important;
            transition-duration: 0.01ms !important;
        }

        .nav-links li {
            opacity: 1;
            transform: none;
        }
    }

    .logo {
        height: 68px;
        min-width: 0;
        max-width: none;
    }

    .logo-link {
        min-width: 0;
        gap: 0.45rem;
    }

    .brand-logo--nav {
        --logo-h: 68px;
    }

    .logo-title {
        display: block;
        height: 2.25rem;
        max-width: 100%;
    }

    .site-navbar:has(.btn-login:not(.btn-login--hidden)) .logo-title {
        display: none;
    }

    .site-navbar:has(.btn-login:not(.btn-login--hidden)) .lang-switcher {
        display: none !important;
    }

    .site-navbar:has(.btn-login:not(.btn-login--hidden)) .btn-login {
        order: 2;
    }

    .lang-switcher {
        margin-left: 0;
        margin-right: 0;
        order: 2;
        align-self: center;
    }

    .site-navbar .btn-login {
        order: 4;
    }

    .site-navbar {
        padding: 0.65rem 1rem;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        gap: 0.35rem;
        box-sizing: border-box;
        min-height: 3.75rem;
        max-width: 100%;
        overflow-x: clip;
    }

    .site-navbar > .logo {
        order: 1;
        flex: 0 1 auto;
    }

    .logo {
        align-self: center;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-subtitle--desktop {
        display: none;
    }

    .parallax-hero {
        height: 60vh;
    }

    .parallax-hero .hero-content {
        padding: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .specialties {
        text-align: center;
    }

    .specialties ul,
    .specialty-list {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.85rem;
    }

    .specialties li {
        width: 100%;
        max-width: 300px;
        display: flex;
        justify-content: center;
    }

    .specialty-btn {
        width: 100%;
        max-width: 300px;
    }

    .about-text .social-links {
        display: flex;
        justify-content: center;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text .profession {
        font-size: 1.1rem;
        margin-left: 0.40rem;
        margin-right: 0.40rem;
    }

    .services-grid,
    .services-list .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-photo {
        width: 100%;
        max-width: 100%;
        margin: 2rem 0;
        height: 240px;
        border-radius: 16px;
    }

    .services-intro {
        margin-left: 0.40rem;
        margin-right: 0.40rem;
        text-align: left;
    }

    .services {
        padding: 3.5rem var(--page-gutter);
    }

    .services-list {
        margin-top: 2rem;
        padding: 0 0.15rem;
    }

    .services-loading {
        text-align: center;
        padding: 2rem 1rem;
        color: #5a6578;
        font-size: 1rem;
    }

    .services-loading i {
        margin-right: 0.5rem;
        color: var(--primary-color);
    }

    .services-empty {
        text-align: center;
        padding: 2rem 1rem;
        color: #5a6578;
    }
}


/* Estilos para las notificaciones (copiados de dashboard.css) */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    /* Asegurar que esté por encima de otros elementos, como el navbar fijo */
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.2em;
}

.notification.success {
    background-color: var(--success-color);
    /* Asegúrate que --success-color esté definido en :root de styles.css */
}

.notification.error {
    background-color: var(--accent-color);
    /* O var(--danger-color) si está definido y es más apropiado */
}

.notification.warning {
    background-color: var(--warning-color);
    /* Asegúrate que --warning-color esté definido */
}

.notification.info {
    background-color: var(--primary-color);
}


/* ——— Promociones públicas (portada + precios) ——— */

.promo-public-section {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) var(--page-gutter, 2rem);
    overflow: hidden;
    isolation: isolate;
}

.promo-public-section__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(45, 106, 79, 0.08) 0%, rgba(74, 144, 226, 0.06) 45%, rgba(255, 255, 255, 0.9) 100%),
        radial-gradient(circle at 85% 15%, rgba(45, 106, 79, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(74, 144, 226, 0.1) 0%, transparent 38%);
    z-index: 0;
}

.promo-public-section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 106, 79, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    pointer-events: none;
}

.promo-public-section__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-public-section__header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.promo-public-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(45, 106, 79, 0.12);
    color: var(--primary-color, #2d6a4f);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.promo-public-section__title {
    margin: 0;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: var(--secondary-color, #1a3a2f);
    line-height: 1.2;
}

.promo-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.promo-public-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.35rem, 3vw, 1.75rem);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 106, 79, 0.14);
    box-shadow:
        0 18px 40px rgba(26, 58, 47, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    scroll-margin-top: 96px;
}

.promo-public-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 48px rgba(26, 58, 47, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.promo-public-card__shine {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 55%;
    height: 140%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        color-mix(in srgb, var(--promo-color, #2d6a4f) 18%, transparent) 50%,
        transparent 70%
    );
    transform: rotate(8deg);
    pointer-events: none;
    animation: promoShine 6s ease-in-out infinite;
}

@keyframes promoShine {
    0%, 100% { opacity: 0.35; transform: rotate(8deg) translateX(0); }
    50% { opacity: 0.75; transform: rotate(8deg) translateX(-12px); }
}

.promo-public-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(145deg, var(--promo-color, #2d6a4f), color-mix(in srgb, var(--promo-color, #2d6a4f) 65%, #000));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--promo-color, #2d6a4f) 35%, transparent);
    animation: promoIconFloat 4s ease-in-out infinite;
}

@keyframes promoIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.promo-public-card__content {
    flex: 1;
}

.promo-public-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--promo-color, #2d6a4f);
    text-transform: uppercase;
}

.promo-public-card__name {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 700;
    color: var(--secondary-color, #1a3a2f);
    line-height: 1.25;
}

.promo-public-card__desc {
    margin: 0 0 0.85rem;
    color: var(--text-light, #5a6c65);
    line-height: 1.55;
    font-size: 0.98rem;
}

.promo-public-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-light, #5a6c65);
}

.promo-public-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.promo-public-card__meta i {
    color: var(--promo-color, #2d6a4f);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.promo-public-card__code strong {
    color: var(--promo-color, #2d6a4f);
    letter-spacing: 0.06em;
    font-size: 1.02em;
}

.promo-public-card__code-hint {
    display: block;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 0.1rem;
}

.promo-public-card__cta {
    align-self: flex-start;
    margin-top: auto;
    background: linear-gradient(135deg, var(--promo-color, #2d6a4f), color-mix(in srgb, var(--promo-color, #2d6a4f) 78%, #1a3a2f));
    border: none;
    font-weight: 600;
    white-space: nowrap;
}

.promo-public-card__cta:hover {
    filter: brightness(1.06);
    color: #fff;
}

/* Precios: integrado con la página de tarifas */
.promo-public-section--precios {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
    background: transparent;
}

.promo-public-section--precios .promo-public-section__bg {
    background:
        linear-gradient(180deg, rgba(74, 144, 226, 0.06) 0%, transparent 100%),
        radial-gradient(circle at 50% 0%, rgba(45, 106, 79, 0.08) 0%, transparent 55%);
}

.promo-public-section--precios .promo-public-section__title {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.promo-public-section--precios + .precios-main {
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .promo-public-card {
        padding: 1.2rem;
    }

    .promo-public-card__cta {
        width: 100%;
        justify-content: center;
    }

    .promo-public-card__code-hint {
        display: inline;
        margin-left: 0.25rem;
    }
}


/* Página Precios */

.page-precios {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 35%);
    scroll-behavior: smooth;
}

.precios-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.94) 0%, rgba(45, 106, 168, 0.9) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.precios-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
    pointer-events: none;
}

.precios-hero-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.precios-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.precios-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.precios-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.96;
    margin-bottom: 0;
}

.precios-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem var(--page-gutter) 4rem;
}

.precios-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    margin-bottom: 2rem;
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.precio-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.precio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #6eb5ff);
}

.precio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(74, 144, 226, 0.18);
}

.precio-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.05));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.precio-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.precio-card-desc {
    color: #5a6578;
    line-height: 1.65;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.precio-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(74, 144, 226, 0.25);
}

.precio-importe {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.precio-sufijo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #357abd;
}

.precio-card-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #7a8494;
}

/* Tarjeta de precio con promoción activa */
.precio-card--promo {
    border-color: color-mix(in srgb, var(--promo-color, #2d6a4f) 35%, transparent);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--promo-color, #2d6a4f) 18%, transparent);
}

.precio-card--promo::before {
    background: linear-gradient(90deg, var(--promo-color, #2d6a4f), color-mix(in srgb, var(--promo-color, #2d6a4f) 55%, #6eb5ff));
}

.precio-card--bono .precio-card-promo-badge {
    letter-spacing: 0.02em;
}

.precio-card--bono .precio-oferta-label {
    color: var(--promo-color, #2d6a4f);
    font-weight: 600;
}

.precio-card-promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--promo-color, #2d6a4f), color-mix(in srgb, var(--promo-color, #2d6a4f) 70%, #000));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--promo-color, #2d6a4f) 35%, transparent);
}

.precio-card-price--promo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Modo Doctoralia: tarjeta promo con un solo precio (sin tarifa del servicio) */
.precio-card--promo-solo .precio-card-price .precio-importe--promo {
    color: var(--promo-color, #2d6a4f);
}

.precio-card-price-tarifa,
.precio-card-price-oferta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem;
}

a.precio-card-price-oferta {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    margin-left: -0.65rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--promo-color, #2d6a4f) 8%, transparent);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.precio-card-price-oferta:hover,
a.precio-card-price-oferta:focus-visible {
    background: color-mix(in srgb, var(--promo-color, #2d6a4f) 14%, transparent);
    transform: translateY(1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--promo-color, #2d6a4f) 15%, transparent);
    outline: none;
}

a.precio-card-price-oferta:focus-visible {
    outline: 2px solid var(--promo-color, #2d6a4f);
    outline-offset: 2px;
}

.precio-oferta-link-icon {
    font-size: 0.75rem;
    color: var(--promo-color, #2d6a4f);
    margin-left: 0.15rem;
    opacity: 0.85;
}

.precio-importe--promo {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--promo-color, #2d6a4f);
    line-height: 1;
}

.precio-sufijo--promo {
    font-size: 1rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--promo-color, #2d6a4f) 85%, #357abd);
}

.precio-oferta-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--promo-color, #2d6a4f);
    margin-left: 0.15rem;
}

.promo-public-card:target {
    animation: promoCardPulse 1.2s ease;
}

@keyframes promoCardPulse {
    0%, 100% {
        box-shadow:
            0 18px 40px rgba(26, 58, 47, 0.08),
            0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    }
    40% {
        box-shadow:
            0 22px 48px color-mix(in srgb, var(--promo-color, #2d6a4f) 28%, transparent),
            0 0 0 2px color-mix(in srgb, var(--promo-color, #2d6a4f) 55%, transparent);
    }
}

.precio-card-foto {
    padding: 0;
    min-height: 320px;
    border: none;
}

.precio-card-foto::before {
    display: none;
}

.precio-card-foto:hover {
    transform: translateY(-8px);
}

.precio-card-foto-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: 16px;
}

.precio-card-foto-wrap figure {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    margin: 0;
}

.precio-card-foto-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    opacity: 0;
    transition: opacity 0.75s ease-in-out, transform 0.45s ease;
    z-index: 0;
}

.precio-card-foto-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.precio-card-foto:hover .precio-card-foto-slide.is-active {
    transform: scale(1.04);
}

.precios-otros {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(74, 144, 226, 0.15);
}

.precios-otros h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.precios-otros-lead {
    color: #5a6578;
    margin-bottom: 2rem;
}

.precios-otros-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.precio-otro-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.precio-otro-item:hover {
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.12);
}

.precio-otro-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.precio-otro-info p {
    font-size: 0.9rem;
    color: #5a6578;
    line-height: 1.55;
    margin: 0;
}

.precio-otro-meta {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.precio-otro-precio {
    flex-shrink: 0;
    text-align: right;
    color: var(--primary-color);
}

.precio-otro-precio span {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.precio-otro-precio small {
    font-size: 0.9rem;
    font-weight: 600;
}

.precios-cta {
    margin-top: 4rem;
}

.precios-cta-inner {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.02) 100%);
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.precios-cta-inner h2 {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.precios-cta-inner p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: #5a6578;
    line-height: 1.65;
}

.precios-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.precios-cta-buttons .cta-button {
    margin-top: 0;
}

.precios-cta-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.precios-cta-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

@media (max-width: 768px) {
    .precios-hero {
        padding: 2.25rem var(--page-gutter) 1.75rem;
    }

    .precios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .precio-otro-item {
        flex-direction: column;
        gap: 1rem;
    }

    .precio-otro-precio {
        text-align: left;
    }

    .precios-cta-inner {
        padding: 2rem 1.25rem;
    }
}


/* Página Testimonios */

.page-testimonios {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}

.testimonios-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(66, 133, 244, 0.9) 0%, rgba(52, 105, 203, 0.88) 50%, rgba(74, 144, 226, 0.9) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonios-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.testimonios-hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.testimonios-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 0.75rem;
}

.testimonios-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.testimonios-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.testimonios-platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin-top: 0.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.testimonios-platforms .testimonios-google-badge {
    grid-column: 1;
    grid-row: 1;
}

.testimonios-platforms .testimonios-doctoralia-badge {
    grid-column: 2;
    grid-row: 1;
}

.testimonios-platforms .testimonios-maps-link {
    grid-column: 1;
    grid-row: 2;
}

.testimonios-platforms .testimonios-doctoralia-hero-link {
    grid-column: 2;
    grid-row: 2;
}

.testimonios-platforms .cta-button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0 !important;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
}

.testimonios-google-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    min-height: 5.5rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    text-align: left;
    box-sizing: border-box;
}

.testimonios-google-badge > .fab.fa-google {
    font-size: 2rem;
    color: #fff;
}

.testimonios-rating-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.testimonios-rating-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.testimonios-rating-meta {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    opacity: 0.9;
}

.testimonios-source-note {
    opacity: 0.75;
    font-size: 0.82rem;
}

.testimonios-maps-link {
    margin-top: 0 !important;
    background: var(--white) !important;
    color: #4285f4 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonios-maps-link:hover {
    background: transparent !important;
    color: var(--white) !important;
    border: 2px solid var(--white);
}

.testimonios-doctoralia-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    min-height: 5.5rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 195, 165, 0.45);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    text-align: left;
    box-sizing: border-box;
}

.testimonios-doctoralia-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00c3a5;
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 195, 165, 0.35);
}

.testimonios-doctoralia-badge-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.testimonios-doctoralia-hero-link {
    margin-top: 0 !important;
    background: #00c3a5 !important;
    color: var(--white) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.testimonios-doctoralia-hero-link:hover {
    background: transparent !important;
    color: var(--white) !important;
    border-color: #00c3a5;
}

.testimonios-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem var(--page-gutter) 4rem;
}

.testimonios-source {
    margin-bottom: 3.5rem;
}

.testimonios-source-header {
    margin-bottom: 1.75rem;
}

.testimonios-source-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.testimonios-source-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.testimonios-source-icon--google {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.14), rgba(66, 133, 244, 0.06));
    color: #4285f4;
    border: 1px solid rgba(66, 133, 244, 0.18);
}

.testimonios-source-icon--doctoralia {
    background: linear-gradient(135deg, rgba(0, 195, 165, 0.16), rgba(0, 195, 165, 0.06));
    color: #00a88e;
    border: 1px solid rgba(0, 195, 165, 0.22);
}

.testimonios-source-eyebrow {
    margin: 0 0 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
}

.testimonios-source-header h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    color: var(--secondary-color);
}

.testimonios-source-lead {
    margin: 0;
    max-width: 720px;
    color: #5a6b7d;
    line-height: 1.65;
    font-size: 1rem;
}

.testimonios-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.testimonios-source-actions--center {
    justify-content: center;
}

.testimonios-maps-link--section {
    background: #4285f4 !important;
    color: var(--white) !important;
    border: 2px solid transparent;
}

.testimonios-maps-link--section:hover {
    background: transparent !important;
    color: #4285f4 !important;
    border-color: #4285f4 !important;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.testimonio-card {
    background: var(--white);
    border-radius: 18px;
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: 0 10px 36px rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonio-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.25rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(74, 144, 226, 0.08);
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(66, 133, 244, 0.14);
}

.testimonio-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonio-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.testimonio-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #6eb5ff);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonio-author {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--text-color);
}

.testimonio-stars {
    color: #f4b400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.testimonio-time {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #8a94a6;
}

.testimonio-google-icon,
.testimonio-source-icon {
    margin-left: auto;
    color: #4285f4;
    font-size: 1.15rem;
    opacity: 0.85;
}

.testimonio-source-icon--google {
    color: #4285f4;
}

.testimonio-text {
    margin: 0;
    position: relative;
    z-index: 1;
}

.testimonio-text p {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.96rem;
    font-style: italic;
}

.testimonios-cta {
    margin-top: 3.5rem;
}

.testimonios-cta-inner {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.07) 0%, rgba(74, 144, 226, 0.03) 100%);
    border: 1px solid rgba(74, 144, 226, 0.12);
}

.testimonios-cta-inner h2 {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.testimonios-cta-inner p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: #5a6578;
    line-height: 1.65;
}

.testimonios-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.testimonios-cta-buttons .cta-button {
    margin-top: 0;
}

.testimonios-cta-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.testimonios-cta-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Doctoralia en testimonios */

.testimonios-source--google {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(74, 144, 226, 0.12);
}

/* Elfsight Google Reviews */
.testimonios-elfsight-wrap {
    margin-top: 0;
    padding: 1.35rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 226, 0.14);
    box-shadow: 0 12px 36px rgba(66, 133, 244, 0.08);
    overflow: hidden;
}

.testimonios-elfsight-slot {
    min-height: 300px;
    width: 100%;
}

.testimonios-elfsight-slot .elfsight-app,
.testimonios-elfsight-slot [class*="elfsight-app-"] {
    width: 100%;
}

/* Alinear acentos del widget con la paleta del sitio (Elfsight sin shadow DOM en este widget) */
.testimonios-elfsight-slot .es-widget-background,
.testimonios-elfsight-slot .eapps-widget {
    background: transparent !important;
}

.testimonios-elfsight-slot .es-review-background,
.testimonios-elfsight-slot [class*="ReviewBackground"] {
    background: var(--white) !important;
    border: 1px solid rgba(74, 144, 226, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(66, 133, 244, 0.07) !important;
}

.testimonios-elfsight-slot .es-button,
.testimonios-elfsight-slot a[class*="Button"] {
    border-radius: 999px !important;
}

.testimonios-elfsight-slot a[href*="elfsight.com"] {
    font-size: 0.72rem !important;
    opacity: 0.65;
}

.testimonios-doctoralia-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.testimonios-doctoralia-panel {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 195, 165, 0.14);
    box-shadow: 0 12px 36px rgba(44, 62, 80, 0.08);
    padding: 1.35rem 1.25rem 1.15rem;
    overflow: hidden;
}

.testimonios-doctoralia-panel-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.testimonios-doctoralia-panel-label i {
    color: #00c3a5;
}

.testimonios-doctoralia-widget-slot {
    min-height: 120px;
    width: 100%;
}

.testimonios-doctoralia-widget-slot--cert {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonios-doctoralia-widget-slot--reviews {
    min-height: 420px;
}

.testimonios-doctoralia-widget-slot .zl-url {
    display: block;
    width: 100%;
}

.testimonios-doctoralia-note {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: #6b7c8f;
    line-height: 1.5;
}

.testimonios-doctoralia-link {
    background: #00c3a5 !important;
    color: var(--white) !important;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonios-doctoralia-link:hover {
    background: transparent !important;
    color: #00a88e !important;
    border-color: #00c3a5 !important;
}

.testimonios-doctoralia-booking {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .testimonios-hero {
        padding: 2.25rem var(--page-gutter) 1.75rem;
    }

    .testimonios-main {
        padding-top: 2.25rem;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .testimonios-elfsight-wrap {
        padding: 1rem 0.85rem 0.85rem;
    }

    .testimonios-elfsight-slot {
        min-height: 260px;
    }

    .testimonios-platforms {
        gap: 0.75rem 0.85rem;
        max-width: 100%;
    }

    .testimonios-doctoralia-badge,
    .testimonios-google-badge {
        min-height: 5.25rem;
        padding: 0.9rem 0.85rem;
    }

    .testimonios-rating-num {
        font-size: 1.65rem;
    }

    .testimonios-google-badge > .fab.fa-google {
        font-size: 1.65rem;
    }

    .testimonios-cta-inner {
        padding: 2rem 1.25rem;
    }

    .testimonios-source-heading {
        align-items: flex-start;
    }

    .testimonios-doctoralia-layout {
        grid-template-columns: 1fr;
    }

    .testimonios-doctoralia-widget-slot--reviews {
        min-height: 360px;
    }

    .testimonios-source-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .testimonios-source-actions--center {
        align-items: center;
    }

    .testimonios-source-actions .cta-button {
        justify-content: center;
    }
}


/* Página FAQ */

.page-faq {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 40%);
}

.faq-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.94) 0%, rgba(45, 106, 168, 0.9) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
    pointer-events: none;
}

.faq-hero-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.faq-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 0.75rem;
}

.faq-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.faq-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.96;
    margin-bottom: 0;
}

.faq-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem var(--page-gutter) 4rem;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(74, 144, 226, 0.12);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.08);
    color: #5a6578;
    line-height: 1.7;
}

.faq-intro a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.faq-intro a:hover {
    text-decoration: underline;
}

.faq-category {
    margin-bottom: 2.75rem;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.faq-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.18), rgba(74, 144, 226, 0.06));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.faq-category-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-accordion-item {
    border: 1px solid rgba(74, 144, 226, 0.14) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: 0 10px 32px rgba(74, 144, 226, 0.12);
}

.faq-accordion-button {
    display: flex !important;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    background: var(--white) !important;
    box-shadow: none !important;
    line-height: 1.45;
}

.faq-accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.02)) !important;
}

.faq-accordion-button::after {
    flex-shrink: 0;
    margin-left: auto;
    background-size: 1.1rem;
    filter: hue-rotate(-10deg);
}

.faq-accordion-button:focus {
    box-shadow: inset 0 0 0 2px rgba(74, 144, 226, 0.35) !important;
    border-color: transparent;
}

.faq-question-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-accordion-button:not(.collapsed) .faq-question-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.faq-question-text {
    text-align: left;
}

.faq-accordion-body {
    padding: 0 1.35rem 1.35rem 4.2rem !important;
    color: #5a6578;
    line-height: 1.75;
    font-size: 0.98rem;
    border-top: 1px dashed rgba(74, 144, 226, 0.2);
}

.faq-cta {
    margin-top: 1rem;
}

.faq-cta-inner {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.1), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(74, 144, 226, 0.18);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.1);
}

.faq-cta-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.faq-cta-inner h2 {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.faq-cta-inner p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: #5a6578;
    line-height: 1.65;
}

.faq-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.faq-cta-buttons .cta-button {
    margin-top: 0;
}

.faq-cta-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.faq-cta-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 2.25rem var(--page-gutter) 1.75rem;
    }

    .faq-main {
        padding: 2.25rem var(--page-gutter) 3rem;
    }

    .faq-accordion-button {
        padding: 1rem 1rem !important;
        font-size: 0.98rem !important;
        gap: 0.65rem;
    }

    .faq-accordion-body {
        padding: 0 1rem 1.15rem 1rem !important;
    }

    .faq-cta-inner {
        padding: 2rem 1.25rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}


/* —— Página Sobre nosotros —— */

.page-sobre {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 45%);
}

.sobre-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.94) 0%, rgba(45, 106, 168, 0.9) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.sobre-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
    pointer-events: none;
}

.sobre-hero-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.sobre-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 0.75rem;
}

.sobre-eyebrow--dark {
    color: var(--primary-color);
    opacity: 1;
}

.sobre-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.sobre-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.96;
    margin-bottom: 0;
}

.hero-typing {
    display: inline;
    min-height: 1.65em;
}

.hero-typing.is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 3px;
    background: currentColor;
    vertical-align: text-bottom;
    animation: heroTypingCaret 0.9s step-end infinite;
}

.hero-typing.is-finished::after,
.hero-typing:not(.is-typing):not(.is-finished)::after {
    display: none;
}

.hero-typing-link--pending {
    display: none;
}

.hero-typing--cierre.is-typing::after {
    background: var(--primary-color);
}

.hero-typing--cta.is-typing::after {
    background: var(--primary-color);
}

.hero-typing--footer.is-typing::after {
    background: rgba(255, 255, 255, 0.92);
}

.hero-typing--precio-card {
    display: block;
    min-height: 1.65em;
}

.hero-typing--precio-card.is-typing::after {
    background: var(--primary-color);
}

.hero-typing--contacto.is-typing::after {
    background: var(--primary-color);
}

.hero-typing--salud {
    display: inline;
}

.hero-typing--salud.is-typing::after {
    background: var(--brand-manuel);
}

.footer-tagline {
    margin-bottom: 1.5rem;
}

@keyframes heroTypingCaret {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-typing::after {
        display: none;
    }
}

.sobre-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem var(--page-gutter) 4rem;
}

.sobre-quien {
    margin-bottom: 3.5rem;
}

.sobre-quien-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) 1.05fr;
    gap: 3rem;
    align-items: center;
}

.sobre-quien-media {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(74, 144, 226, 0.18);
}

.sobre-quien-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(45, 106, 168, 0.25) 100%);
    pointer-events: none;
}

.sobre-quien-media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.sobre-quien-media:hover img {
    transform: scale(1.04);
}

.sobre-quien-texto h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.sobre-quien-intro {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #4a5568;
    margin-bottom: 1rem;
}

.sobre-quien-texto p {
    color: #5a6578;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.sobre-valores {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
}

.sobre-valores li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 600;
}

.sobre-valores i {
    font-size: 0.95rem;
}

.sobre-quien-cierre {
    font-size: 1.05rem;
    margin-bottom: 0 !important;
}

.sobre-quien-cierre a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 144, 226, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sobre-quien-cierre a:hover {
    color: #2d6aa8;
    border-bottom-color: currentColor;
}

.sobre-especialidades-banner {
    width: 100%;
    margin: 0 0 2.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(74, 144, 226, 0.16);
}

.sobre-banner-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1100 / 420;
    background: linear-gradient(145deg, #e8f0fa 0%, #dce8f5 100%);
}

.sobre-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
    z-index: 0;
}

.sobre-banner-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.sobre-especialidades-banner img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.sobre-especialidades-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.sobre-especialidades-header h2 {
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.sobre-especialidades-lead {
    max-width: 640px;
    margin: 0 auto;
    color: #5a6578;
    line-height: 1.65;
}

.sobre-especialidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.sobre-esp-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid rgba(74, 144, 226, 0.14);
    box-shadow: 0 10px 36px rgba(74, 144, 226, 0.1);
    padding: 1.75rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-esp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(74, 144, 226, 0.16);
}

.sobre-esp-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sobre-esp-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--primary-color), #2d6aa8);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.35);
}

.sobre-esp-card h3 {
    font-size: 1.35rem;
    margin: 0;
    color: var(--text-color);
}

.sobre-esp-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sobre-esp-lista li {
    position: relative;
    padding-left: 1.15rem;
    border-left: 3px solid rgba(74, 144, 226, 0.35);
}

.sobre-esp-item-titulo {
    display: block;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.15rem;
}

.sobre-esp-item-detalle {
    display: block;
    color: #5a6578;
    font-size: 0.95rem;
    line-height: 1.55;
}

.sobre-cta {
    margin-top: 0.5rem;
}

.sobre-cta-inner {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.1), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(74, 144, 226, 0.18);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.1);
}

.sobre-cta-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sobre-cta-inner h2 {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.sobre-cta-inner p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: #5a6578;
    line-height: 1.65;
}

.sobre-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.sobre-cta-buttons .cta-button {
    margin-top: 0;
}

.sobre-cta-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.sobre-cta-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

@media (max-width: 900px) {
    .sobre-quien-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sobre-quien-media {
        max-width: 420px;
        margin: 0 auto;
    }

    .sobre-especialidades-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sobre-hero {
        padding: 2.25rem var(--page-gutter) 1.75rem;
    }

    .sobre-main {
        padding: 2.25rem var(--page-gutter) 3rem;
    }

    .sobre-valores {
        flex-direction: column;
        align-items: flex-start;
    }

    .sobre-cta-inner {
        padding: 2rem 1.25rem;
    }

    .sobre-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}


/* Página Contacto */

.page-contacto {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 45%);
}

.contacto-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.92) 0%, rgba(44, 62, 80, 0.9) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.14) 0%, transparent 50%);
    pointer-events: none;
}

.contacto-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.contacto-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 0.75rem;
}

.contacto-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.contacto-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.96;
    margin-bottom: 0;
}

.contacto-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem var(--page-gutter) 4rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.contacto-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.12);
    overflow: hidden;
}

.contacto-card--profile {
    display: grid;
    grid-template-columns: minmax(180px, 42%) 1fr;
    min-height: 100%;
}

.contacto-profile-media {
    margin: 0;
    position: relative;
    min-height: 280px;
}

.contacto-profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.contacto-details {
    padding: 1.75rem 1.5rem 1.5rem;
}

.contacto-details h2 {
    font-size: 1.45rem;
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
}

.contacto-tagline {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.contacto-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contacto-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-color);
}

.contacto-info-list i {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.contacto-info-list a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contacto-info-list a:hover {
    color: var(--primary-color);
}

.contacto-social {
    display: flex;
    gap: 0.65rem;
}

.contacto-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.35);
}

.contacto-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.45);
}

.contacto-card--map {
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.contacto-map-title {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacto-map-title i {
    color: var(--primary-color);
}

.contacto-map-note {
    color: var(--text-light, #666);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.contacto-map-wrap {
    position: relative;
    flex: 1;
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.contacto-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacto-maps-btn {
    margin-top: 1rem;
    align-self: flex-start;
    text-decoration: none;
}

.contacto-form-section {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(44, 62, 80, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

/* Oculto temporalmente; el formulario sigue en el HTML */
.contacto-form-section.contacto-form-section--oculto {
    display: none !important;
}

.contacto-form-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contacto-form-inner h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contacto-form-lead {
    color: var(--text-light, #666);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.contacto-form.contact-form {
    text-align: left;
}

.contacto-doctoralia {
    margin-top: 3rem;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.contacto-doctoralia-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.contacto-doctoralia-header h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contacto-doctoralia-lead {
    color: var(--text-light, #666);
    line-height: 1.6;
}

.contacto-doctoralia-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.75rem;
    align-items: start;
}

.contacto-doctoralia-booking,
.contacto-doctoralia-certificate {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 8px 28px rgba(44, 62, 80, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contacto-doctoralia-widget-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacto-doctoralia-widget-label i {
    color: #00c3a5;
}

.contacto-doctoralia-widget-slot {
    min-height: 120px;
}

.contacto-doctoralia-widget-slot--big {
    min-height: 420px;
}

.contacto-doctoralia-widget-slot--cert {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-doctoralia-widget-slot .zl-url {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .contacto-hero {
        padding: 2.25rem var(--page-gutter) 1.75rem;
    }

    .contacto-main {
        padding-top: 2.25rem;
    }
}

@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contacto-card--profile {
        grid-template-columns: 1fr;
    }

    .contacto-profile-media {
        min-height: 260px;
        max-height: 340px;
    }

    .contacto-doctoralia-grid {
        grid-template-columns: 1fr;
    }

    .contacto-doctoralia-widget-slot--big {
        min-height: 360px;
    }
}

@media (max-width: 576px) {
    .contacto-main {
        padding-bottom: 2.5rem;
    }

    .contacto-form-section,
    .contacto-doctoralia {
        padding: 1.75rem 1.15rem;
    }
}


/* Página Blog */
.page-blog {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 35%);
    overflow-x: clip;
}

.blog-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter, 1.5rem) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.93) 0%, rgba(45, 106, 168, 0.9) 48%, rgba(32, 78, 121, 0.92) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 44%),
        radial-gradient(circle at 12% 82%, rgba(110, 181, 255, 0.28) 0%, transparent 42%),
        radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%, rgba(15, 23, 42, 0.14) 100%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.blog-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.75rem;
}

.blog-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.blog-hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 2.25rem var(--page-gutter, 1.5rem) 1.75rem;
    }
}


/* Debug servicios (?debug_servicios=1) */

.debug-servicios-panel {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 9999;
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.debug-servicios-panel ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.debug-servicios-panel li {
    margin: 0.15rem 0;
}

/* Página legal / accesibilidad */

.page-legal {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 42%);
}

.legal-hero {
    margin-top: 108px;
    padding: 3rem var(--page-gutter) 2.25rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.94) 0%, rgba(45, 106, 168, 0.9) 100%),
        url('../img/hero-bg.webp') center / cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.legal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 0.75rem;
}

.legal-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.legal-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.96;
    margin-bottom: 0;
}

.legal-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem var(--page-gutter) 4rem;
}

.legal-toc {
    margin-bottom: 2rem;
    padding: 1.35rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(74, 144, 226, 0.14);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.08);
}

.legal-toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 1;
}

.legal-toc li {
    margin: 0.35rem 0;
    line-height: 1.5;
}

.legal-toc a {
    color: #3d4f66;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-article {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(74, 144, 226, 0.12);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.06);
    padding: 2rem 2.15rem;
}

.legal-section + .legal-section {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #204e79;
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d5570;
    margin: 1.25rem 0 0.65rem;
}

.legal-section p,
.legal-section li {
    color: #4a5568;
    line-height: 1.75;
}

.legal-section ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.35rem;
}

.legal-section li + li {
    margin-top: 0.45rem;
}

.legal-section a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-section a:hover,
.legal-section a:focus-visible {
    text-decoration: underline;
}

.legal-section code {
    font-size: 0.88em;
    background: rgba(74, 144, 226, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.legal-contact-list {
    list-style: none;
    padding-left: 0 !important;
}

.legal-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.55rem 0;
}

.legal-contact-list i {
    color: var(--primary-color);
    width: 1.25rem;
    text-align: center;
}

.legal-cta {
    margin-top: 2.5rem;
}

.legal-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 1.85rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.04) 100%);
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: 16px;
}

.legal-cta-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.45rem;
    flex-shrink: 0;
}

.legal-cta-inner h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #204e79;
}

.legal-cta-inner p {
    margin: 0;
    color: #5a6578;
    line-height: 1.6;
}

.legal-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-left: auto;
}

.legal-cta-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: none !important;
}

.legal-cta-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Mapa web */

.mapa-web-grid {
    display: grid;
    gap: 1.5rem;
}

.mapa-web-section {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(74, 144, 226, 0.12);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.06);
    padding: 1.5rem 1.65rem;
}

.mapa-web-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #204e79;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.12);
}

.mapa-web-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.mapa-web-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #3d5570;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mapa-web-list a::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    opacity: 0.75;
}

.mapa-web-list a:hover,
.mapa-web-list a:focus-visible {
    color: var(--primary-color);
    transform: translateX(2px);
}

.mapa-web-list a.mapa-web-link--external::after {
    content: '\F1C5';
    font-family: 'bootstrap-icons';
    font-size: 0.82rem;
    opacity: 0.65;
    margin-left: 0.15rem;
}

@media (min-width: 768px) {
    .mapa-web-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .legal-toc ol {
        columns: 2;
        column-gap: 2rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 2.5rem var(--page-gutter) 2rem;
    }

    .legal-main {
        padding: 2rem var(--page-gutter) 3rem;
    }

    .legal-article {
        padding: 1.5rem 1.25rem;
    }

    .legal-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.25rem;
    }

    .legal-cta-buttons {
        margin-left: 0;
        width: 100%;
    }

    .legal-cta-buttons .cta-button {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* --- Estadísticas web pública (dashboard admin) --- */
.web-stats-admin-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(46, 204, 113, 0.06) 100%);
    border: 1px solid rgba(74, 144, 226, 0.18);
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.08);
}

.web-stats-admin-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: var(--primary-color, #4a90e2);
}

.web-stats-admin-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.web-stats-period-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.web-stats-period-btn {
    border: none;
    background: transparent;
    color: #556;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.web-stats-period-btn:hover {
    color: var(--primary-color, #4a90e2);
}

.web-stats-period-btn.is-active {
    background: var(--primary-color, #4a90e2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.web-stats-admin-subtitle {
    margin: 0 0 1.25rem;
    color: #667;
    font-size: 0.92rem;
}

.web-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.web-stats-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.web-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(74, 144, 226, 0.12);
}

.web-stats-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-color, #4a90e2);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.web-stats-card-icon--week { background: rgba(155, 89, 182, 0.12); color: #9b59b6; }
.web-stats-card-icon--ip { background: rgba(46, 204, 113, 0.12); color: #2ecc71; }
.web-stats-card-icon--time { background: rgba(52, 152, 219, 0.12); color: #3498db; }
.web-stats-card-icon--star { background: rgba(241, 196, 15, 0.15); color: #f39c12; }

.web-stats-card-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2c3e50;
}

.web-stats-card-value--text {
    font-size: 1rem;
    font-weight: 600;
}

.web-stats-card-label {
    display: block;
    font-size: 0.78rem;
    color: #778;
    margin-top: 0.15rem;
}

.web-stats-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.web-stats-panels--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.web-stats-panel--span2 {
    grid-column: span 2;
}

.web-stats-panel {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.web-stats-panel h4 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: #445;
}

.web-stats-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 120px;
    padding-top: 0.5rem;
}

.web-stats-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.web-stats-bar {
    width: 100%;
    max-width: 28px;
    margin-top: auto;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--primary-color, #4a90e2) 0%, rgba(74, 144, 226, 0.55) 100%);
    transition: opacity 0.2s ease;
}

.web-stats-bar-col:hover .web-stats-bar {
    opacity: 0.85;
}

.web-stats-bar-label {
    font-size: 0.62rem;
    color: #889;
    margin-top: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.web-stats-top-list,
.web-stats-ip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.web-stats-top-item {
    margin-bottom: 0.65rem;
}

.web-stats-top-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.web-stats-top-count {
    font-weight: 700;
    color: var(--primary-color, #4a90e2);
}

.web-stats-top-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.1);
    overflow: hidden;
}

.web-stats-top-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color, #4a90e2), #6bb3ff);
}

.web-stats-ip-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.web-stats-ip-item:last-child {
    border-bottom: none;
}

.web-stats-ip {
    font-size: 0.82rem;
    background: rgba(74, 144, 226, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.web-stats-ip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.web-stats-ip-geo {
    font-size: 0.78rem;
    color: #667;
}

.web-stats-donut-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.web-stats-donut {
    --pct-nuevos: 50;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
        #2ecc71 0 calc(var(--pct-nuevos) * 1%),
        #4a90e2 calc(var(--pct-nuevos) * 1%) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.web-stats-donut-hole {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.web-stats-donut-hole strong {
    font-size: 1.25rem;
    color: #2c3e50;
}

.web-stats-donut-hole span {
    font-size: 0.68rem;
    color: #889;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.web-stats-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #556;
}

.web-stats-donut-legend li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.web-stats-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.web-stats-legend-dot--new { background: #2ecc71; }
.web-stats-legend-dot--return { background: #4a90e2; }

.web-stats-ip-meta {
    color: #778;
    font-size: 0.78rem;
}

.web-stats-paises-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.web-stats-pais-item {
    margin-bottom: 0.7rem;
}

.web-stats-pais-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.web-stats-pais-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.web-stats-top-bar--pais {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2ecc71, #4a90e2);
}

.web-stats-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(74, 144, 226, 0.12);
}

.web-stats-total-30d {
    font-size: 0.88rem;
    color: #667;
}

.web-stats-logs-btn {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: var(--primary-color, #4a90e2);
    color: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.web-stats-logs-btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
}

.web-stats-loading,
.web-stats-empty,
.web-stats-error {
    color: #778;
    font-size: 0.9rem;
    margin: 0;
}

.web-stats-error {
    color: #c0392b;
}

@media (max-width: 768px) {
    .web-stats-admin-section {
        padding: 1.1rem;
    }

    .web-stats-admin-title-row {
        flex-direction: column;
    }

    .web-stats-panels--wide {
        grid-template-columns: 1fr;
    }

    .web-stats-panel--span2 {
        grid-column: span 1;
    }

    .web-stats-card-value {
        font-size: 1.35rem;
    }
}

/* Portada — próxima apertura */

body.page-home {
    --apertura-cream: #f4f0e6;
    --apertura-ink: #1c3329;
    --apertura-green: #1e4634;
    --apertura-muted: #4d6156;
    background: var(--apertura-cream);
    color: var(--apertura-ink);
}

body.page-home .site-navbar {
    background: transparent;
    box-shadow: none;
    position: absolute;
    min-height: 0;
    padding: 1.15rem 4vw 0.4rem;
}

body.page-home .logo {
    height: 72px;
}

body.page-home .brand-logo--nav {
    --logo-h: 72px;
}

body.page-home .nav-links a {
    color: var(--apertura-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.page-home .nav-links a.active,
body.page-home .nav-links a:hover {
    color: var(--apertura-green);
}

body.page-home .nav-links a:hover::after,
body.page-home .nav-links a:focus-visible::after,
body.page-home .nav-links a.active::after {
    background: #375042;
}

body.page-home .nav-links li + li::before {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(55, 80, 66, 0.22) 20%,
        rgba(55, 80, 66, 0.38) 50%,
        rgba(55, 80, 66, 0.22) 80%,
        transparent 100%
    );
}

body.page-home .hamburger span {
    background: #375042;
    background-image: linear-gradient(90deg, #1c3329 0%, #375042 55%, #4d6156 100%);
}

.apertura {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6.5rem 6vw 4rem;
    background: #f4f0e6;
    overflow: hidden;
}

body.pagina-sin-menu .apertura {
    padding-top: 3.5rem;
}

.apertura-escena {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.apertura-shape {
    position: absolute;
    top: auto;
    bottom: -2%;
    right: -2%;
    height: min(70%, 640px);
    width: min(54vw, 640px);
    max-width: 100%;
    z-index: 0;
    pointer-events: none;
    transform-origin: 95% 95%;
    animation: apertura-forma 14s ease-in-out infinite;
}

.apertura-shape--1 {
    width: min(60vw, 700px);
    height: min(76%, 700px);
    z-index: 0;
    animation-duration: 16s;
    animation-delay: 0s;
}

.apertura-shape--2 {
    width: min(52vw, 600px);
    height: min(64%, 580px);
    z-index: 0;
    animation-duration: 18s;
    animation-delay: -3s;
}

.apertura-shape--3 {
    width: min(44vw, 500px);
    height: min(48%, 430px);
    z-index: 0;
    animation-duration: 15s;
    animation-delay: -6s;
}

.apertura-shape--4 {
    width: min(36vw, 400px);
    height: min(36%, 320px);
    z-index: 0;
    animation-duration: 17s;
    animation-delay: -9s;
}

.apertura-shape--5 {
    width: min(38vw, 420px);
    height: min(42%, 380px);
    bottom: 12%;
    right: 6%;
    z-index: 0;
    animation-duration: 13s;
    animation-delay: -2s;
}

.apertura-hoja {
    position: absolute;
    right: -0.55rem;
    top: 50%;
    bottom: auto;
    translate: 0 calc(-50% - 18px);
    /* 27'' (~1920+): ~390px; 14'' (~1366–1536): ~280–315px */
    width: clamp(200px, min(20.5vw, 48vh), 390px);
    height: auto;
    z-index: 2;
    overflow: visible;
    transform-origin: 62% 88%;
    animation: apertura-hoja 13s ease-in-out infinite;
}

@keyframes apertura-forma {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-14px, -10px, 0) scale(1.035); }
}

@keyframes apertura-hoja {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-10px, 12px, 0) rotate(-2.2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .apertura-shape,
    .apertura-hoja,
    .servicios-shape {
        animation: none;
    }
}

.apertura-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding-right: clamp(100px, 11vw, 170px);
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(220px, 1fr);
    gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.apertura-copy {
    width: min(100%, 22.5rem);
    max-width: 86%;
}

.apertura-copy h1 {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 510;
    font-size: clamp(3rem, 5.5vw, 5.25rem);
    line-height: 0.92;
    text-transform: uppercase;
    color: #375042;
}

.apertura-copy p {
    max-width: 20rem;
    margin: 1.35rem 0 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--apertura-muted, #4d6156);
}

.apertura-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 1.8rem;
    max-width: 17.5rem;
}

.apertura-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--apertura-green, #1e4634);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.apertura-btn--fill {
    background: var(--apertura-green, #1e4634);
    color: #f7f4ee;
}

.apertura-btn--line {
    background: transparent;
    color: var(--apertura-ink, #1c3329);
}

.apertura-btn:hover {
    transform: translateY(-1px);
    color: #f7f4ee;
    background: var(--apertura-green, #1e4634);
}

.apertura-mark {
    justify-self: center;
    align-self: center;
    width: min(100%, clamp(470px, 62vw, 875px), 92vh);
    max-width: 100%;
    margin-right: 0;
}

.apertura-mark img,
.apertura-mark svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(92vh, 1000px);
    object-fit: contain;
}

.servicios-editorial {
    position: relative;
    background: #f4f0e6;
    padding: 1rem 6vw 5rem;
    overflow: hidden;
}

.servicios-escena {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.servicios-shape {
    position: absolute;
    top: auto;
    bottom: -2%;
    right: -2%;
    height: min(42%, 320px);
    width: min(48vw, 520px);
    max-width: 100%;
    pointer-events: none;
    transform-origin: 95% 95%;
    animation: apertura-forma 18s ease-in-out infinite;
}

.servicios-shape--1 {
    width: min(52vw, 560px);
    height: min(48%, 360px);
    animation-duration: 18s;
    animation-delay: 0s;
}

.servicios-shape--2 {
    width: min(40vw, 420px);
    height: min(32%, 240px);
    animation-duration: 15s;
    animation-delay: -5s;
}

.servicios-editorial > h2,
.servicios-editorial__list {
    position: relative;
    z-index: 1;
}

.servicios-editorial > h2 {
    margin: 0 0 2.6rem;
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--apertura-ink, #1c3329);
}

.servicio-grid {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.8rem 2rem;
}

.servicio-card {
    text-align: center;
    color: var(--apertura-ink, #1c3329);
    background: transparent;
    border: 0;
    padding: 0;
}

.servicio-card--mas {
    cursor: pointer;
}

.servicio-card__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.15rem;
    min-height: clamp(4.8rem, 7.2vw, 6.75rem);
    color: #375042;
}

.servicio-card__icon svg,
.servicio-card__icon-img {
    display: block;
    width: clamp(4.8rem, 7.2vw, 6.75rem);
    height: clamp(4.8rem, 7.2vw, 6.75rem);
    object-fit: contain;
}

.servicio-card h3 {
    margin: 0 0 0.55rem;
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.08rem, 1.45vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #375042;
}

.servicio-card p {
    margin: 0 auto;
    max-width: 18rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--apertura-muted, #4d6156);
}

body.page-home .about {
    background: #f7f4ee;
    color: var(--apertura-ink, #1c3329);
}

body.page-home .about > h2,
body.page-home .about .hero-typing {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--apertura-ink, #1c3329);
}

body.page-home .specialty-btn:hover,
body.page-home a.specialty-btn:hover,
body.page-home a.specialty-btn:focus-visible {
    background: var(--apertura-green, #1e4634);
    color: #f7f4ee;
}

body.page-home footer {
    background: #efeae0;
    margin-top: 0;
}

@media (max-width: 860px) {
    body.page-home .site-navbar {
        position: absolute;
        padding: 0.85rem 1.1rem 0.2rem;
    }

    body.page-home .logo,
    body.page-home .brand-logo--nav {
        height: 58px;
        --logo-h: 58px;
    }

    .apertura {
        min-height: auto;
        padding: 6.8rem 1.25rem 2.5rem;
    }

    body.pagina-sin-menu .apertura {
        padding-top: 6.2rem;
    }

    .apertura-shape,
    .apertura-shape--1,
    .apertura-shape--2,
    .apertura-shape--3,
    .apertura-shape--4,
    .apertura-shape--5 {
        top: auto;
        bottom: -1%;
        right: -2%;
        height: min(44%, 340px);
        width: min(92vw, 520px);
    }

    .apertura-shape--5 {
        bottom: 7%;
        right: 4%;
        height: min(26%, 200px);
    }

    .apertura-hoja {
        display: none;
    }

    .apertura-inner {
        padding-right: 0;
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .apertura-copy {
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .apertura-copy h1 {
        margin-top: 0.85rem;
        font-size: clamp(2.5rem, 12vw, 3.4rem);
    }

    .apertura-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .apertura-actions {
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }

    .apertura-mark {
        justify-self: center;
        width: min(96vw, 88vh, 656px);
        order: 2;
        margin-top: 0.5rem;
        margin-right: 0;
    }

    .apertura-mark img,
    .apertura-mark svg {
        max-height: min(88vh, 656px);
    }

    .servicios-editorial {
        padding: 2.25rem 1.85rem 4.75rem;
    }

    .servicios-editorial > h2 {
        margin-bottom: 2.1rem;
    }

    .servicios-shape,
    .servicios-shape--1,
    .servicios-shape--2 {
        bottom: -1%;
        right: -3%;
        height: min(28%, 200px);
        width: min(78vw, 360px);
    }

    .servicios-shape--2 {
        height: min(20%, 140px);
        width: min(58vw, 260px);
    }

    .servicio-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .servicio-card {
        display: grid;
        grid-template-columns: 3.4rem 1fr;
        column-gap: 0.95rem;
        text-align: left;
        align-items: start;
    }

    .servicio-card__icon {
        grid-row: 1 / span 2;
        margin: 0.1rem 0 0;
        justify-content: flex-start;
    }

    .servicio-card__icon {
        min-height: 3.6rem;
    }

    .servicio-card__icon svg,
    .servicio-card__icon-img {
        width: 3.6rem;
        height: 3.6rem;
    }

    .servicio-card p {
        margin: 0;
        max-width: none;
    }
}