@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');
@import url('./design-tokens.css');


:root {
    --container: 1160px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-sm: 0 6px 18px rgba(23, 42, 90, 0.06);
    --shadow-md: 0 16px 36px rgba(23, 42, 90, 0.08);
    --shadow-lg: 0 22px 50px rgba(23, 42, 90, 0.12);

    --section-py: 100px;
    --section-py-sm: 72px;
}


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


html {
    scroll-behavior: smooth;

    overflow-x: hidden;
}


body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.65;

    overflow-x: hidden;
}


img {
    width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


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


.container {
    width: min(var(--container), 90%);
    margin: 0 auto;
}


/* =========================
   REVEAL AL HACER SCROLL
========================= */

.reveal {
    opacity: 0;

    transform: translateY(24px);

    transition: opacity 0.6s ease, transform 0.6s ease;
}


.reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(229, 234, 240, 0.8);
}


.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


.logo {
    width: 168px;
}


.nav {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-left: auto;
}


.nav a {
    font-size: 14px;
    font-weight: 500;

    color: var(--text);

    transition: color 0.2s ease;
}


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


.nav-link-profesionales {
    color: var(--primary) !important;
    font-weight: 700 !important;

    padding-left: 24px;

    border-left: 1px solid var(--border);
}


.nav-link-profesionales:hover {
    color: var(--primary-dark) !important;
}


.footer-navigation a[data-app-route="profesionales"] {
    color: var(--accent);
    font-weight: 600;
}


a.nav-cta {
    display: none;
}


.nav-toggle {
    display: none;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    background: none;
    border: none;

    cursor: pointer;
}


.nav-toggle span {
    width: 22px;
    height: 2px;

    background: var(--primary-dark);

    border-radius: 2px;

    transition: transform 0.25s ease, opacity 0.25s ease;
}


.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}


.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 26px;

    border-radius: var(--radius-sm);

    font-size: 14px;
    font-weight: 600;

    border: 1px solid transparent;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    color: white;
    background: var(--primary);

    box-shadow: 0 10px 24px rgba(38, 63, 130, 0.22);
}


.btn-primary:hover {
    background: var(--primary-dark);

    box-shadow: 0 14px 30px rgba(38, 63, 130, 0.28);
}


.navbar-cta {
    flex-shrink: 0;

    white-space: nowrap;
}


.btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}


.btn-outline:hover {
    color: white;
    background: var(--primary);
}


.btn-light {
    color: var(--primary);
    background: white;
}


.btn-light:hover {
    background: var(--accent-light);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 660px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            120deg,
            #F7F9FC 0%,
            #EEF5FA 100%
        );

    overflow: hidden;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 64px;

    padding: 88px 0;
}


.hero-text {
    max-width: 540px;
}


.eyebrow,
.section-label {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}


.hero h1 {
    font-family: "Manrope", sans-serif;

    color: var(--primary-dark);

    font-size: clamp(40px, 4.6vw, 60px);

    font-weight: 500;

    line-height: 1.14;

    letter-spacing: -1.5px;

    margin-bottom: 22px;
}


.hero h1 span {
    display: block;

    color: var(--accent);
}


.hero p {
    max-width: 460px;

    color: var(--text-light);

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 32px;
}


.hero-actions {
    display: flex;
    align-items: center;

    gap: 14px;
}


.hero-image {
    position: relative;

    height: 480px;
}


.hero-image > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: var(--radius-xl);
}


/* =========================
   HERO CAROUSEL
========================= */

.hero-carousel {
    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: var(--radius-xl);
}


.hero-track {
    display: flex;

    width: 300%;
    height: 100%;

    transition: transform 1s ease-in-out;
}


.hero-slide {
    flex: 0 0 33.3333%;

    width: 33.3333%;
    height: 100%;

    object-fit: cover;

    border-radius: 0;
}


.hero-card {
    position: absolute;

    left: -28px;
    bottom: 28px;

    display: flex;
    align-items: center;

    gap: 14px;

    width: 264px;

    padding: 18px;

    background: white;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);
}


.hero-card-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--accent-light);

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
}


.hero-card strong {
    display: block;

    color: var(--primary-dark);

    font-size: 14px;
}


.hero-card p {
    margin: 2px 0 0;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================
   INTRO
========================= */

.intro {
    padding: var(--section-py) 0;
}


.intro-content {
    max-width: 800px;

    text-align: center;
}


.intro h2,
.section-heading h2,
.about-content h2,
.modalities-heading h2,
.contact-info h2 {
    font-family: "Manrope", sans-serif;

    color: var(--primary-dark);

    font-size: clamp(30px, 3.6vw, 44px);

    font-weight: 500;

    line-height: 1.22;

    letter-spacing: -0.5px;
}


.intro h2 {
    margin-bottom: 22px;
}


.intro p {
    max-width: 660px;

    margin: 0 auto;

    color: var(--text-light);

    font-size: 17px;
}


/* =========================
   ABOUT
========================= */

.about {
    padding: var(--section-py) 0;

    background: var(--background-soft);
}


.about-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 72px;
}


.about-image {
    height: 520px;
}


.about-image img {
    height: 100%;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);
}


.about-content h2 {
    margin-bottom: 22px;
}


.about-content > p {
    color: var(--text-light);

    margin-bottom: 16px;
}


.values {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    margin-top: 38px;
}


.value {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    padding: 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);
}


.value-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--accent-light);

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
}


.value h3 {
    color: var(--primary-dark);

    font-size: 15px;

    margin-bottom: 4px;
}


.value p {
    color: var(--text-light);

    font-size: 13px;
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
    max-width: 640px;

    margin-bottom: 50px;
}


.section-heading h2 {
    margin-bottom: 14px;
}


.section-heading > p {
    color: var(--text-light);

    font-size: 16px;
}


/* =========================
   SPECIALISTS
========================= */

.specialists {
    padding: var(--section-py) 0;
}


.specialists-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 28px;
}


.specialist-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.specialist-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow-lg);
}

.specialist-image {
    height: 380px;

    background: var(--accent-light);
    overflow: hidden;
}

.specialist-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.specialist-content {
    padding: 28px;
}

.specialist-content > span {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.specialist-content h3 {
    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: 24px;

    font-weight: 500;

    margin: 8px 0 12px;
}

.specialist-content p {
    color: var(--text-light);

    font-size: 13px;

    margin-bottom: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tarjeta de especialista (perfiles publicados desde la plataforma) */

/* Con perfiles reales hay cantidad variable: las tarjetas se centran en vez de dejar una columna vacía. */
.specialists-grid.specialists-grid-dynamic {
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));

    justify-content: center;
}

.specialist-card {
    display: flex;
    flex-direction: column;
}

.specialist-image {
    position: relative;
}

.specialist-image img {
    transition: transform 0.5s ease;
}

.specialist-card:hover .specialist-image img {
    transform: scale(1.04);
}

.specialist-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(to top, rgba(23, 42, 90, 0.5), rgba(23, 42, 90, 0) 45%);

    pointer-events: none;
}

.specialist-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;

    max-width: calc(100% - 36px);

    padding: 6px 14px;

    overflow: hidden;

    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;

    background: rgba(255, 255, 255, 0.92);

    border-radius: 999px;

    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.specialist-card .specialist-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.specialist-card .specialist-content h3 {
    margin-bottom: 4px;
}

.specialist-role {
    margin-bottom: 12px !important;

    color: var(--secondary) !important;

    font-size: 13px !important;
    font-weight: 600;

    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
}

.specialist-bio {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
}

.specialist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0 0 22px;
    padding: 0;

    list-style: none;
}

.specialist-tags li {
    padding: 4px 11px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 500;

    background: var(--accent-light);

    border-radius: 999px;
}

.specialist-tags .specialist-tags-more {
    color: var(--text-light);

    background: var(--background-soft);
}

.specialist-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding: 10px 20px;

    color: var(--primary);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    background: transparent;

    border: 1px solid var(--primary);
    border-radius: 999px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.specialist-link span {
    transition: transform 0.2s ease;
}

.specialist-link:hover {
    color: white;

    background: var(--primary);
}

.specialist-link:hover span {
    transform: translateX(4px);
}


/* Perfil completo del especialista */

.specialist-modal {
    width: min(880px, calc(100% - 32px));
    min-height: min(440px, calc(100vh - 48px));
    max-height: min(620px, calc(100vh - 48px));

    margin: auto;
    padding: 0;

    overflow: hidden;

    color: var(--text);

    background: white;

    border: 0;
    border-radius: 24px;

    box-shadow: 0 30px 80px rgba(23, 42, 90, 0.35);
}

.specialist-modal[open] {
    display: grid;
    grid-template-columns: 300px 1fr;

    animation: specialist-in 0.3s ease;
}

.specialist-modal::backdrop {
    background: rgba(23, 42, 90, 0.6);

    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

body:has(.specialist-modal[open]) {
    overflow: hidden;
}

@keyframes specialist-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.specialist-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    color: var(--primary-dark);

    font-size: 22px;
    line-height: 1;

    background: var(--background-soft);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition: background 0.2s ease;
}

.specialist-modal-close:hover {
    background: var(--accent-light);
}

.specialist-modal-aside {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 40px 28px 32px;

    color: white;

    text-align: center;

    background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
}

.specialist-modal-aside img {
    width: 150px;
    height: 150px;

    margin-bottom: 22px;

    object-fit: cover;

    background: var(--accent-light);

    border: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.specialist-modal-badge {
    margin-bottom: 14px;
    padding: 5px 14px;

    color: #CBEFFA;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;

    background: rgba(59, 174, 212, 0.22);

    border-radius: 999px;
}

.specialist-modal-aside h3 {
    margin: 0 0 6px;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.specialist-modal-aside p {
    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 14px;
}

.specialist-modal-cta {
    width: 100%;

    margin-top: auto;
}

.specialist-modal-aside > :nth-last-child(2) {
    margin-bottom: 28px;
}

.specialist-modal-main {
    max-height: min(620px, calc(100vh - 48px));

    padding: 44px 40px 36px;

    overflow-y: auto;
}

.specialist-modal-section + .specialist-modal-section {
    margin-top: 28px;
}

.specialist-modal-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 12px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.specialist-modal-section h4::before {
    content: "";

    width: 18px;
    height: 3px;

    background: var(--accent);

    border-radius: 2px;
}

.specialist-modal-text {
    margin: 0;

    font-size: 15px;
    line-height: 1.75;

    white-space: pre-line;
}

.specialist-modal-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.specialist-modal-areas li {
    padding: 7px 15px;

    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 500;

    background: var(--accent-light);

    border: 1px solid rgba(59, 174, 212, 0.25);
    border-radius: 999px;
}

.specialist-modal-empty {
    margin: 0;

    color: var(--text-light);

    font-size: 15px;
}

@media (max-width: 720px) {
    .specialist-modal {
        max-height: calc(100vh - 32px);

        overflow-y: auto;
    }

    .specialist-modal[open] {
        grid-template-columns: 1fr;
    }

    .specialist-modal-aside {
        padding: 32px 20px 24px;
    }

    .specialist-modal-aside img {
        width: 116px;
        height: 116px;
    }

    .specialist-modal-cta {
        margin-top: 22px;
    }

    .specialist-modal-main {
        max-height: none;

        padding: 28px 22px 32px;

        overflow: visible;
    }

    .specialist-modal-close {
        color: white;

        background: rgba(255, 255, 255, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .specialist-modal[open] {
        animation: none;
    }

    .specialist-image img,
    .specialist-link span {
        transition: none;
    }
}

.text-link {
    color: var(--primary);

    font-size: 13px;
    font-weight: 600;
}

.text-link span {
    margin-left: 6px;

    transition: margin 0.2s ease;
}


.text-link:hover span {
    margin-left: 12px;
}


/* =========================
   AREAS
========================= */

.areas {
    padding: var(--section-py) 0;

    background: var(--background-soft);
}


.areas-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


.area-card {
    padding: 30px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.area-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}


.area-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--accent-light);

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
}


.area-card h3 {
    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: 19px;

    font-weight: 500;

    margin-bottom: 10px;
}


.area-card p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================
   MODALITIES
========================= */

.modalities {
    padding: var(--section-py) 0;
}


.modalities-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    align-items: start;
}


.modalities-heading h2 {
    max-width: 420px;
}


.modality-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.modality {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 24px;

    background: var(--background-soft);

    border-radius: var(--radius-md);
}


.modality-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 50%;

    background: white;

    color: var(--accent);

    font-size: 13px;

    font-weight: 700;

    box-shadow: var(--shadow-sm);
}


.modality h3 {
    color: var(--primary-dark);

    font-size: 19px;

    margin-bottom: 6px;
}


.modality p {
    color: var(--text-light);

    font-size: 15px;
}


/* =========================
   PROCESS
========================= */

.process {
    padding: var(--section-py) 0;

    background: var(--lavender);
}


.process-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


.process-step {
    padding: 28px;

    background: white;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.process-step:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}


.process-step > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-bottom: 30px;

    border-radius: 50%;

    background: var(--lavender);

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;
}


.process-step h3 {
    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: 19px;

    font-weight: 500;

    margin-bottom: 10px;
}


.process-step p {
    color: var(--text);

    font-size: 14px;
}


/* =========================
   NEWS
========================= */

.news {
    position: relative;

    padding: var(--section-py-sm) 0 var(--section-py);

    overflow: hidden;

    color: white;

    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 58%,
        var(--secondary) 100%
    );
}


/* Resplandores decorativos */

.news::before,
.news::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.news::before {
    top: -220px;
    right: -120px;

    width: 520px;
    height: 520px;

    background: radial-gradient(circle, rgba(59, 174, 212, 0.35), transparent 68%);
}


.news::after {
    bottom: -200px;
    left: -120px;

    width: 420px;
    height: 420px;

    background: radial-gradient(circle, rgba(59, 174, 212, 0.22), transparent 70%);
}


.news .container {
    position: relative;

    z-index: 1;
}


/* Encabezado */

.news .section-heading {
    max-width: 680px;

    margin-bottom: 44px;
}


.news .section-label {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--accent);
}


.news .section-label::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);

    animation: news-pulse 2s ease-out infinite;
}


@keyframes news-pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(59, 174, 212, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 174, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 174, 212, 0);
    }

}


.news .section-heading h2 {
    color: white;
}


.news .section-heading > p {
    color: rgba(255, 255, 255, 0.78);
}


/* Disposición: destacada arriba, resto en cuadrícula */

.news-layout {
    display: flex;
    flex-direction: column;

    gap: 24px;
}


.news-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 22px;
}


.news-empty {
    color: rgba(255, 255, 255, 0.78);
}


/* ----- Etiquetas y textos (base clara, usada por la destacada) ----- */

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 12px;

    margin-bottom: 18px;
}


.news-tag {
    padding: 4px 12px;

    border-radius: 999px;

    background: var(--accent-light);

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.news-meta time {
    margin-left: auto;

    color: var(--text-light);

    font-size: 12px;
}


.news-badge {
    padding: 4px 12px;

    border-radius: 999px;

    background: var(--accent);

    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


.news-media .news-badge {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 1;

    padding: 6px 14px;

    box-shadow: 0 6px 16px rgba(7, 16, 40, 0.25);
}


.news-body {
    display: flex;
    flex-direction: column;

    flex: 1;
}


.news-body h3 {
    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: 19px;

    font-weight: 500;

    line-height: 1.35;

    margin-bottom: 12px;
}


.news-body p {
    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 24px;
}


.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px 16px;

    margin-top: auto;
    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.news-source {
    color: var(--text-light);

    font-size: 12px;
}


/* ----- Imagen o panel de color ----- */

.news-media {
    position: relative;

    overflow: hidden;

    background: var(--accent-light);
}


.news-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}


/* Panel cuando la noticia no tiene imagen */

.news-media-placeholder {
    display: flex;
    align-items: flex-end;

    padding: 32px;

    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--secondary) 60%,
        var(--primary) 100%
    );
}


.news-media-placeholder::before,
.news-media-placeholder::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);
}


.news-media-placeholder::before {
    top: -80px;
    right: -60px;

    width: 260px;
    height: 260px;
}


.news-media-placeholder::after {
    bottom: -60px;
    left: 34%;

    width: 160px;
    height: 160px;

    background: rgba(255, 255, 255, 0.1);
}


.news-media-label {
    position: relative;

    color: white;

    font-family: "Manrope", sans-serif;

    font-size: 28px;

    font-weight: 500;

    letter-spacing: -0.3px;
}


/* ----- Noticia destacada ----- */

.news-featured {
    display: grid;

    grid-template-columns: 1.15fr 1fr;

    overflow: hidden;

    background: white;

    border-radius: var(--radius-xl);

    box-shadow: 0 30px 70px rgba(7, 16, 40, 0.35);

    color: var(--text);

    transition:
        opacity 0.6s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.news-featured.is-visible:hover {
    transform: translateY(-4px);

    box-shadow: 0 38px 80px rgba(7, 16, 40, 0.42);
}


.news-featured .news-media {
    min-height: 360px;
}


.news-featured .news-media img {
    position: absolute;

    inset: 0;
}


.news-featured:hover .news-media img {
    transform: scale(1.04);
}


.news-featured .news-body {
    justify-content: center;

    padding: 44px;
}


.news-featured .news-body h3 {
    font-size: clamp(24px, 2.6vw, 34px);

    line-height: 1.25;

    letter-spacing: -0.3px;

    margin-bottom: 16px;
}


.news-featured .news-body p {
    font-size: 16px;
}


/* ----- Tarjetas (cristal sobre fondo oscuro) ----- */

.news-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.16);

    border-radius: var(--radius-lg);

    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    color: white;

    transition:
        opacity 0.6s ease,
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.news-card.is-visible:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.13);

    border-color: rgba(59, 174, 212, 0.7);
}


.news-card .news-media {
    aspect-ratio: 16 / 9;
}


.news-card:hover .news-media img {
    transform: scale(1.05);
}


/* Franja de color cuando no hay imagen */

.news-card-sin-imagen::before {
    content: "";

    height: 4px;

    background: linear-gradient(90deg, var(--accent), var(--secondary));
}


.news-card .news-body {
    padding: 26px;
}


.news-card .news-tag {
    background: rgba(59, 174, 212, 0.22);

    color: #CBEFFA;
}


.news-card .news-meta time,
.news-card .news-source {
    color: rgba(255, 255, 255, 0.72);
}


.news-card .news-body h3 {
    color: white;
}


.news-card .news-body p {
    color: rgba(255, 255, 255, 0.8);
}


.news-card .news-footer {
    border-top-color: rgba(255, 255, 255, 0.16);
}


.news-card .text-link {
    color: white;
}


@media (prefers-reduced-motion: reduce) {

    .news .section-label::before {
        animation: none;
    }

    .news-media img,
    .news-featured,
    .news-card {
        transition: none;
    }

    .news-featured:hover .news-media img,
    .news-card:hover .news-media img {
        transform: none;
    }

}


/* =========================
   APPOINTMENT
========================= */

.appointment {
    padding: 90px 0;
}


.appointment-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding: 60px 64px;

    background:
        linear-gradient(
            120deg,
            var(--primary-dark),
            var(--primary)
        );

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-lg);
}


.appointment-box .section-label {
    color: var(--accent);
}


.appointment-box h2 {
    color: white;

    font-family: "Manrope", sans-serif;

    font-size: 38px;

    font-weight: 500;

    margin-bottom: 10px;
}


.appointment-box p {
    color: rgba(255, 255, 255, 0.72);
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: var(--section-py) 0;

    background: var(--background-soft);
}


.contact-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;
}


.contact-info h2 {
    margin-bottom: 18px;
}


.contact-info > p {
    max-width: 460px;

    color: var(--text-light);

    margin-bottom: 36px;
}


.contact-details {
    display: flex;

    flex-direction: column;

    gap: 22px;
}


.contact-details span {
    display: block;

    color: var(--accent);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 4px;
}


.contact-details strong {
    color: var(--primary-dark);

    font-size: 15px;

    font-weight: 500;
}


/* Teléfono (WhatsApp), correo (Gmail) y dirección (Google Maps) son enlaces. */
.contact-details strong a {
    color: inherit;

    text-decoration: none;

    transition: color 0.2s ease;
}


.contact-details strong a:hover,
.contact-details strong a:focus-visible {
    color: var(--accent);

    text-decoration: underline;

    text-underline-offset: 3px;
}


/* =========================
   FORM
========================= */

.contact-form {
    padding: 36px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;
}


.form-group label {
    color: var(--primary-dark);

    font-size: 13px;

    font-weight: 600;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 16px;

    background: #FAFBFC;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text);

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);

    background: white;
}


.form-group textarea {
    resize: vertical;
}


.contact-form .btn {
    width: 100%;
}


/* Campo trampa contra robots: fuera de pantalla, no se muestra a nadie. */
.form-trampa {
    position: absolute;

    left: -9999px;

    width: 1px;

    height: 1px;

    overflow: hidden;
}


/* =========================
   RESEÑAS
========================= */

.reviews {
    padding: var(--section-py) 0;

    background: var(--background-soft);
}


.reviews-layout {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 48px;

    align-items: start;
}


.reviews-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    align-content: start;

    gap: 20px;

    /* La lista se desplaza dentro de su recuadro para no alargar la página. */
    max-height: 640px;

    overflow-y: auto;

    overscroll-behavior: contain;

    /* Aire para que no se corte la sombra de las tarjetas. */
    padding: 4px 10px 12px 4px;

    scrollbar-width: thin;

    scrollbar-color: var(--border) transparent;
}


.reviews-list:focus-visible {
    outline: 2px solid var(--primary);

    outline-offset: 2px;
}


.reviews-empty {
    grid-column: 1 / -1;

    color: var(--text-light);
}


.review-card {
    display: flex;

    flex-direction: column;

    gap: 12px;

    padding: 24px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.review-card p {
    flex: 1;

    color: var(--text);

    font-size: 14px;

    line-height: 1.6;
}


.review-author {
    display: flex;

    justify-content: space-between;

    gap: 12px;

    color: var(--text-light);

    font-size: 12px;
}


.review-author strong {
    color: var(--primary-dark);

    font-size: 13px;
}


.review-verified {
    align-self: flex-start;

    padding: 4px 12px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.5px;

    background: var(--accent-light);

    border-radius: 999px;
}


.review-source {
    color: var(--text-light);

    background: var(--background-soft);
}


.review-about {
    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 600;
}


.review-stars {
    color: #F5B301;

    letter-spacing: 2px;
}


.review-stars span {
    color: var(--border);
}


.review-form {
    padding: 32px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.review-form h3 {
    margin-bottom: 20px;

    color: var(--primary-dark);
}


.review-form .btn {
    width: 100%;
}


.rating-input {
    border: 0;

    padding: 0;
}


.rating-input legend {
    margin-bottom: 8px;

    color: var(--primary-dark);

    font-size: 13px;

    font-weight: 600;
}


/* Estrellas en orden inverso: marcar/hover pinta también las anteriores */
.rating-stars {
    display: inline-flex;

    flex-direction: row-reverse;

    justify-content: flex-end;
}


.rating-stars input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.rating-stars label {
    padding: 0 3px;

    color: var(--border);

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    transition: color 0.15s ease;
}


.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #F5B301;
}


.rating-stars input:focus-visible + label {
    outline: 2px solid var(--accent);

    border-radius: 4px;
}


.review-trap {
    position: absolute;

    left: -9999px;
}


.review-note {
    margin-bottom: 14px;

    color: var(--text-light);

    font-size: 12px;
}


.review-status {
    min-height: 1.2em;

    margin-bottom: 12px;

    font-size: 13px;
}


.review-status.is-ok {
    color: #1A7F5A;
}


.review-status.is-error {
    color: #C0392B;
}


@media (max-width: 900px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {
    .reviews-list {
        grid-template-columns: 1fr;

        max-height: 520px;
    }
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #111E42;

    color: white;
}


.footer-main {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr;

    gap: 60px;

    padding: 64px 0;
}


.footer-brand-name {
    display: inline-block;

    margin-bottom: 14px;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}


.footer-brand p {
    max-width: 300px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 14px;
}


.footer h4 {
    color: white;

    font-size: 13px;

    margin-bottom: 18px;
}


.footer-navigation {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-navigation a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.6);

    font-size: 14px;

    transition: color 0.2s ease;
}


.footer-navigation a:hover {
    color: var(--accent);
}


.footer-contact p a {
    color: inherit;

    text-decoration: none;
}


.footer-contact p a:hover,
.footer-contact p a:focus-visible {
    color: var(--accent);

    text-decoration: underline;

    text-underline-offset: 3px;
}


.footer-contact {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
}


.footer-bottom div {
    display: flex;

    gap: 25px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured .news-media {
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .navbar {
        gap: 16px;
    }

    .navbar-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;

        margin-left: auto;
    }

    .nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        width: 100%;

        margin-left: 0;

        padding: 12px 5% 20px;

        background: var(--background);

        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow-md);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 0;
    }

    .nav-link-profesionales {
        padding-left: 0;
        padding-top: 16px;

        border-left: none;
        border-top: 1px solid var(--border);
    }

    .nav a.nav-cta {
        display: inline-flex;

        justify-content: center;

        width: 100%;

        margin-top: 10px;

        color: white;
    }

    .hero-content,
    .about-grid,
    .modalities-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 44px;
    }

    .hero-text {
        max-width: 700px;
    }

    .hero-image {
        height: 420px;
    }

    .about-image {
        height: 420px;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 700px) {

    .news {
        padding: 56px 0 var(--section-py-sm);
    }

    .news .section-heading {
        margin-bottom: 32px;
    }

    .news-featured .news-body {
        padding: 28px 24px;
    }

    .news-media-placeholder {
        padding: 24px;
    }

    .news-media-label {
        font-size: 22px;
    }

    :root {
        --section-py: var(--section-py-sm);
    }

    .navbar {
        min-height: 68px;
    }

    .logo {
        width: 144px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 40px;

        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-image {
        height: 340px;
    }

    .hero-card {
        left: 14px;
        bottom: 18px;

        width: calc(100% - 28px);
        max-width: 280px;
    }

    .intro,
    .about,
    .specialists,
    .areas,
    .modalities,
    .process,
    .contact {
        padding: var(--section-py-sm) 0;
    }

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

    .specialists-grid,
    .areas-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .specialist-image {
        height: 320px;
    }

    .process-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .modality {
        padding: 18px;
    }

    .appointment {
        padding: 64px 0;
    }

    .appointment-box {
        flex-direction: column;

        align-items: flex-start;

        padding: 40px 28px;
    }

    .appointment-box h2 {
        font-size: 30px;
    }

    .contact-grid {
        gap: 44px;
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 36px;

        padding: 48px 0;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-bottom div {
        flex-direction: column;

        gap: 8px;
    }

}


@media (max-width: 380px) {

    .logo {
        width: 120px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-card {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

    .area-card {
        padding: 22px;
    }

    .appointment-box {
        padding: 32px 20px;
    }

    .contact-form {
        padding: 18px;
    }

}
