    :root {
    --color-principal: #2f6f73; /* teal profundo: títulos, iconos, nav */
    --color-titulo: #1f4f53;
    --color-secundario: #eaf3f2; /* secciones alternas */
    --color-calido: #fbf3e8; /* fondo del inicio */
    --color-acento: #f4d3b0; /* durazno: insignia y marco de foto */
    --color-texto: #3a4a4d;
    --fuente-titulos: "Fraunces", Georgia, serif;
    --color-btn-wsp: #25d366;
    --color-btn-wsp-hover: #1ebe5d;
    }

    html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    }
    @media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    }

    body {
    font-family: "Nunito Sans", "Segoe UI", Tahoma, sans-serif;
    color: var(--color-texto);
    overflow-x: hidden; /* evita scroll lateral por las animaciones AOS */
    }

    .bg-secundario {
    background-color: var(--color-secundario);
    }
    .text-principal {
    color: var(--color-principal);
    }
    .hover-white:hover {
    color: #fff !important;
    }

    /* ---------- Navbar ---------- */
    .navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232f6f73' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0.6rem 0;
    }

    /* Brand: no deja que el texto empuje la hamburguesa a otra línea */
    .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    color: var(--color-principal) !important;
    }
    .brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    }

    .navbar-toggler {
    border: 0;
    padding: 0.4rem 0.5rem;
    flex-shrink: 0;
    }
    .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(94, 156, 160, 0.3);
    }

    .navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: var(--color-texto);
    padding: 0.6rem 1rem;
    transition: color 0.3s;
    }
    .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--color-principal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    }
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
    color: var(--color-principal);
    }
    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
    transform: scaleX(1);
    }

    @media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 0.5rem 0 1rem;
    }
    .navbar .nav-link::after {
        left: 35%;
        right: 35%;
    }
    }
    @media (min-width: 992px) {
    .navbar {
        padding: 0.9rem 0;
    }
    .brand {
        font-size: 1rem;
        max-width: 300px;
    }
    .brand img {
        width: 50px;
        height: 50px;
    }
    }

    .logo-breathe {
    animation: breathe 4s ease-in-out infinite;
    }
    @keyframes breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    }

    /* ---------- Botón WhatsApp ---------- */
    .btn-agenda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-btn-wsp);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
    animation: pulse-soft 4s infinite;
    }
    .btn-agenda:hover {
    background-color: var(--color-btn-wsp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
    }
    @keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
    }

    /* Flotante: visible desde que carga la página */
    .btn-wsp-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-btn-wsp);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    animation:
        wsp-in 0.5s ease-out,
        pulse-soft 2s 0.5s infinite;
    }
    .btn-wsp-flotante i {
    color: #fff;
    }
    .btn-wsp-flotante:hover {
    background-color: var(--color-btn-wsp-hover);
    }
    @keyframes wsp-in {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
    }
    @media (min-width: 768px) {
    .btn-wsp-flotante {
        right: 30px;
        bottom: 30px;
        width: 60px;
        height: 60px;
        font-size: 35px;
    }
    }

    .micro-texto {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #777;
    }

    /* ---------- Hero ---------- */
    .hero {
    background-color: var(--color-secundario);
    padding: 6.5rem 0 3rem;
    }
    .hero-title {
    font-size: clamp(1.9rem, 7vw, 3.5rem);
    line-height: 1.15;
    }
    .hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    }
    .chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0;
    }
    .chips li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 50rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    @media (min-width: 992px) {
    .hero {
        display: flex;
        align-items: center;
        min-height: 90vh;
        padding: 8rem 0 4rem;
    }
    .hero > .container {
        width: 100%;
    }
    .hero-img {
        aspect-ratio: auto;
        height: 600px;
    }
    }

    /* ---------- Tarjetas ---------- */
    .card-padecimiento {
    border: none;
    border-top: 4px solid var(--color-principal);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    }
    .card-padecimiento:hover {
    transform: translateY(-5px);
    }

    /* ---------- Tabla de modalidades ---------- */
    .tabla-wrap {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow-x: auto;
    }
    .table.tabla-modalidades > :not(caption) > * > * {
    padding: 1rem 1.5rem;
    }
    .tabla-modalidades thead {
    background: #f8f9fa;
    }

    /* Móvil: cada fila se convierte en una tarjeta */
    @media (max-width: 767.98px) {
    .tabla-wrap {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }
    .tabla-modalidades thead {
        display: none;
    }
    .tabla-modalidades,
    .tabla-modalidades tbody {
        display: block;
    }
    .tabla-modalidades tbody {
        display: grid;
        gap: 1rem;
    }
    .tabla-modalidades tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.25rem 1rem;
        align-items: center;
        padding: 1rem 1.1rem;
        background: #fff;
        border-top: 4px solid var(--color-principal);
        border-radius: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    }
    .table.tabla-modalidades > :not(caption) > * > * {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .tabla-modalidades td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .tabla-modalidades td:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
        text-align: right !important;
    }
    .tabla-modalidades td:nth-child(2),
    .tabla-modalidades td:nth-child(4) {
        grid-column: 1 / -1;
    }
    .tabla-modalidades td:nth-child(4) {
        margin-top: 0.4rem;
    }
    }

    /* ---------- Ubicación ---------- */
    .mapa {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    }

    /* ---------- Footer ---------- */
    footer {
    background-color: #1f3f42;
    }

    /* ---------- Identidad v2: más calidez y contraste ---------- */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .brand {
    font-family: var(--fuente-titulos);
    }
    .text-dark {
    color: var(--color-titulo) !important;
    }
    .hero {
    background: linear-gradient(160deg, var(--color-calido) 0%, #f7e6d2 100%);
    }
    .hero .badge {
    background: var(--color-acento) !important;
    color: var(--color-titulo);
    }
    .hero-media {
    position: relative;
    margin: 0 10px 10px 0;
    }
    .hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(10px, 10px);
    background: var(--color-acento);
    border-radius: 1.5rem;
    }
    .hero-media .hero-img {
    position: relative;
    }
    .chips li {
    border: 1px solid rgba(47, 111, 115, 0.15);
    }

    /* ---------- Frase destacada del inicio ---------- */
    .frase-impacto {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    background: #fff;
    border-left: 5px solid #e8a46c;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 6px 20px rgba(31, 79, 83, 0.1);
    font-family: var(--fuente-titulos);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.05rem, 3.6vw, 1.3rem);
    line-height: 1.4;
    color: var(--color-titulo);
    }
    .frase-impacto strong {
    color: var(--color-principal);
    font-weight: 700;
    }
