/*
|--------------------------------------------------------------------------
| Prisma Med — Landing pública del tenant
|--------------------------------------------------------------------------
*/

:root {
    --landing-primary: #087f8c;
    --landing-primary-dark: #055f69;
    --landing-primary-soft: #e7f7f8;

    --landing-secondary: #08283f;
    --landing-secondary-soft: #103f5d;

    --landing-accent: #20b8c5;
    --landing-success: #19a974;
    --landing-warning: #f5ad18;

    --landing-bg: #f4f8fa;
    --landing-surface: #ffffff;
    --landing-surface-soft: #edf4f7;

    --landing-text: #142733;
    --landing-text-soft: #60717c;
    --landing-border: rgba(8, 40, 63, 0.12);

    --landing-radius-sm: 10px;
    --landing-radius-md: 18px;
    --landing-radius-lg: 28px;

    --landing-shadow-sm:
        0 8px 22px rgba(8, 40, 63, 0.07);

    --landing-shadow-md:
        0 18px 45px rgba(8, 40, 63, 0.12);

    --landing-shadow-lg:
        0 28px 70px rgba(8, 40, 63, 0.17);

    --landing-container: 1180px;
    --landing-transition: 220ms ease;
}


/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    margin: 0;
    color: var(--landing-text);
    background: var(--landing-bg);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

body.landing-menu-open {
    overflow: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--landing-primary);
    transition:
        color var(--landing-transition),
        background-color var(--landing-transition),
        border-color var(--landing-transition),
        transform var(--landing-transition),
        box-shadow var(--landing-transition);
}

a:hover,
a:focus {
    color: var(--landing-primary-dark);
    text-decoration: none;
}

::selection {
    color: #ffffff;
    background: var(--landing-primary);
}


/*
|--------------------------------------------------------------------------
| Contenedor y secciones
|--------------------------------------------------------------------------
*/

.section {
    position: relative;
    padding: 92px 0;
    overflow: hidden;
}

.section > .container {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--landing-container));
    max-width: var(--landing-container);
    margin-right: auto;
    margin-left: auto;
}

.section-light {
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(32, 184, 197, 0.08),
            transparent 25%
        ),
        var(--landing-surface);
}

.section-dark {
    color: var(--landing-text);
    background:
        linear-gradient(
            145deg,
            rgba(8, 40, 63, 0.025),
            rgba(32, 184, 197, 0.045)
        ),
        var(--landing-bg);
}

.section:nth-of-type(even)::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(32, 184, 197, 0.06);
    pointer-events: none;
}

.section:nth-of-type(odd)::after {
    content: "";
    position: absolute;
    bottom: -240px;
    left: -220px;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: rgba(8, 127, 140, 0.045);
    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Encabezados
|--------------------------------------------------------------------------
*/

.section h1,
.section h2,
.section h3,
.section h4 {
    margin-top: 0;
    color: var(--landing-secondary);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.section h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.section h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.8vw, 3rem);
}

.section h3 {
    font-size: 1.35rem;
}

.section h2 + p,
.section .section-subtitle,
.section .subtitle {
    max-width: 720px;
    margin-right: auto;
    margin-bottom: 42px;
    margin-left: auto;
    color: var(--landing-text-soft);
    font-size: 1.08rem;
}

.section .text-center h2::after,
.section > .container > h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin: 17px auto 0;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--landing-primary),
            var(--landing-accent)
        );
}


/*
|--------------------------------------------------------------------------
| Botones
|--------------------------------------------------------------------------
*/

.section .btn {
    min-height: 45px;
    padding: 11px 20px;
    border-radius: 11px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    transition:
        transform var(--landing-transition),
        box-shadow var(--landing-transition),
        background-color var(--landing-transition),
        border-color var(--landing-transition),
        color var(--landing-transition);
}

.section .btn:hover,
.section .btn:focus {
    transform: translateY(-2px);
}

.section .btn-primary,
.section .btn-info {
    border-color: var(--landing-primary);
    background:
        linear-gradient(
            135deg,
            var(--landing-primary),
            var(--landing-accent)
        );
    box-shadow:
        0 10px 25px rgba(8, 127, 140, 0.22);
}

.section .btn-primary:hover,
.section .btn-primary:focus,
.section .btn-info:hover,
.section .btn-info:focus {
    border-color: var(--landing-primary-dark);
    background:
        linear-gradient(
            135deg,
            var(--landing-primary-dark),
            var(--landing-primary)
        );
    box-shadow:
        0 14px 30px rgba(8, 127, 140, 0.29);
}

.section .btn-default {
    color: var(--landing-secondary);
    border-color: var(--landing-border);
    background: rgba(255, 255, 255, 0.88);
}

.section .btn-default:hover,
.section .btn-default:focus {
    color: var(--landing-primary-dark);
    border-color: rgba(8, 127, 140, 0.35);
    background: var(--landing-primary-soft);
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

#inicio {
    display: flex;
    min-height: calc(100vh - 64px);
    align-items: center;
    padding-top: 110px;
    padding-bottom: 100px;
    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(32, 184, 197, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 18% 78%,
            rgba(8, 127, 140, 0.1),
            transparent 28%
        ),
        linear-gradient(145deg, #f8fcfd 0%, #edf6f8 100%);
}

#inicio::before {
    content: "";
    position: absolute;
    top: 7%;
    right: 3%;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(8, 127, 140, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

#inicio .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#inicio h1,
#inicio h2 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(2.7rem, 5vw, 4.9rem);
}

#inicio p {
    max-width: 610px;
    color: var(--landing-text-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

#inicio ul {
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

#inicio li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 31px;
    color: #354b58;
}

#inicio li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: var(--landing-primary);
    font-size: 0.75rem;
    font-weight: 900;
}

#inicio img {
    width: 100%;
    max-height: 510px;
    border-radius: var(--landing-radius-lg);
    object-fit: cover;
    box-shadow: var(--landing-shadow-lg);
    transform: perspective(1000px) rotateY(-2deg);
}

#inicio .btn + .btn {
    margin-left: 8px;
}


/*
|--------------------------------------------------------------------------
| Cuadrículas Bootstrap
|--------------------------------------------------------------------------
*/

#equipo .row,
#especialidades .row,
#testimonios .row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

#equipo .row > [class*="col-"],
#especialidades .row > [class*="col-"],
#testimonios .row > [class*="col-"] {
    display: flex;
    float: none;
    margin-bottom: 24px;
    padding-right: 12px;
    padding-left: 12px;
}


/*
|--------------------------------------------------------------------------
| Tarjetas genéricas
|--------------------------------------------------------------------------
*/

#equipo .row > [class*="col-"] > *,
#especialidades .row > [class*="col-"] > *,
#testimonios .row > [class*="col-"] > * {
    width: 100%;
}

#equipo .thumbnail,
#equipo .panel,
#equipo .card,
#equipo article,
#equipo .equipo-card,

#especialidades .thumbnail,
#especialidades .panel,
#especialidades .card,
#especialidades article,
#especialidades .especialidad-card,

#testimonios .thumbnail,
#testimonios .panel,
#testimonios .card,
#testimonios article,
#testimonios .testimonio-card {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius-md);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--landing-shadow-sm);
    transition:
        transform 260ms ease,
        box-shadow 260ms ease,
        border-color 260ms ease;
}

#equipo .thumbnail:hover,
#equipo .panel:hover,
#equipo .card:hover,
#equipo article:hover,
#equipo .equipo-card:hover,

#especialidades .thumbnail:hover,
#especialidades .panel:hover,
#especialidades .card:hover,
#especialidades article:hover,
#especialidades .especialidad-card:hover,

#testimonios .thumbnail:hover,
#testimonios .panel:hover,
#testimonios .card:hover,
#testimonios article:hover,
#testimonios .testimonio-card:hover {
    z-index: 3;
    border-color: rgba(8, 127, 140, 0.27);
    box-shadow: var(--landing-shadow-md);
    transform: translateY(-7px);
}


/*
|--------------------------------------------------------------------------
| Equipo médico
|--------------------------------------------------------------------------
*/

#equipo {
    background:
        linear-gradient(
            180deg,
            rgba(237, 246, 248, 0.94),
            rgba(244, 248, 250, 1)
        );
}

#equipo .thumbnail,
#equipo .panel,
#equipo .card,
#equipo article,
#equipo .equipo-card {
    text-align: center;
}

#equipo img {
    width: 100%;
    height: 260px;
    border-radius:
        var(--landing-radius-md)
        var(--landing-radius-md)
        0
        0;
    object-fit: cover;
    object-position: center top;
    transition: transform 500ms ease;
}

#equipo .thumbnail:hover img,
#equipo .panel:hover img,
#equipo .card:hover img,
#equipo article:hover img,
#equipo .equipo-card:hover img {
    transform: scale(1.035);
}

#equipo .caption,
#equipo .panel-body,
#equipo .card-body,
#equipo article > div {
    padding: 23px 22px 24px;
}

#equipo h3,
#equipo h4 {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

#equipo h3 + p,
#equipo h4 + p {
    color: var(--landing-primary);
    font-weight: 750;
}

#equipo p {
    color: var(--landing-text-soft);
}

#equipo hr {
    margin: 18px 0;
    border-color: var(--landing-border);
}

#equipo .btn {
    min-height: 36px;
    margin: 3px 1px;
    padding: 8px 11px;
    font-size: 0.8rem;
}


/*
|--------------------------------------------------------------------------
| Especialidades
|--------------------------------------------------------------------------
*/

#especialidades {
    background: var(--landing-surface);
}

#especialidades img {
    width: 100%;
    height: 205px;
    border-radius:
        var(--landing-radius-md)
        var(--landing-radius-md)
        0
        0;
    object-fit: cover;
    transition:
        transform 600ms ease,
        filter 400ms ease;
}

#especialidades .thumbnail:hover img,
#especialidades .panel:hover img,
#especialidades .card:hover img,
#especialidades article:hover img,
#especialidades .especialidad-card:hover img {
    filter: saturate(1.05);
    transform: scale(1.055);
}

#especialidades .caption,
#especialidades .panel-body,
#especialidades .card-body,
#especialidades article > div {
    padding: 24px 22px 27px;
    text-align: center;
}

#especialidades h3,
#especialidades h4 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

#especialidades p {
    margin-bottom: 0;
    color: var(--landing-text-soft);
}


/*
|--------------------------------------------------------------------------
| Testimonios
|--------------------------------------------------------------------------
*/

#testimonios {
    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(32, 184, 197, 0.08),
            transparent 28%
        ),
        #f6fafb;
}

#testimonios .thumbnail,
#testimonios .panel,
#testimonios .card,
#testimonios article,
#testimonios .testimonio-card {
    min-height: 275px;
    padding: 30px 27px;
    text-align: center;
}

#testimonios img {
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 2px rgba(8, 127, 140, 0.12),
        0 9px 25px rgba(8, 40, 63, 0.14);
}

#testimonios h3,
#testimonios h4,
#testimonios strong {
    color: var(--landing-secondary);
    font-weight: 750;
}

#testimonios p {
    color: var(--landing-text-soft);
}

#testimonios blockquote {
    margin: 16px 0 0;
    padding: 0;
    color: #40545f;
    border: 0;
    font-size: 0.95rem;
    font-style: italic;
}

#testimonios .stars,
#testimonios .rating,
#testimonios [aria-label*="estrella"] {
    color: var(--landing-warning);
    font-size: 1.05rem;
    letter-spacing: 2px;
}


/*
|--------------------------------------------------------------------------
| Formulario de contacto
|--------------------------------------------------------------------------
*/

#contacto {
    background:
        linear-gradient(
            145deg,
            var(--landing-secondary),
            var(--landing-secondary-soft)
        );
}

#contacto,
#contacto h1,
#contacto h2,
#contacto h3,
#contacto h4 {
    color: #ffffff;
}

#contacto h2 + p,
#contacto .section-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

#contacto form,
#contacto .panel,
#contacto .card {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--landing-radius-md);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--landing-shadow-lg);
    backdrop-filter: blur(12px);
}

#contacto label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 650;
}

#contacto .form-control {
    min-height: 47px;
    color: var(--landing-text);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

#contacto textarea.form-control {
    min-height: 135px;
    resize: vertical;
}

#contacto .form-control:focus {
    border-color: var(--landing-accent);
    box-shadow:
        0 0 0 3px rgba(32, 184, 197, 0.22);
}


/*
|--------------------------------------------------------------------------
| Mensajes y alertas
|--------------------------------------------------------------------------
*/

.section .alert {
    padding: 18px 22px;
    border: 0;
    border-radius: var(--landing-radius-sm);
}

.section .alert-info {
    color: var(--landing-primary-dark);
    background: var(--landing-primary-soft);
}


/*
|--------------------------------------------------------------------------
| Animaciones activadas por JavaScript
|--------------------------------------------------------------------------
*/

.landing-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-image-float {
    animation: landingFloat 6s ease-in-out infinite;
}

@keyframes landingFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 991px) {
    .section {
        padding: 75px 0;
    }

    #inicio {
        min-height: auto;
        padding-top: 95px;
        text-align: center;
    }

    #inicio .row {
        display: block;
    }

    #inicio h1,
    #inicio h2,
    #inicio p {
        margin-right: auto;
        margin-left: auto;
    }

    #inicio ul {
        display: inline-block;
        text-align: left;
    }

    #inicio img {
        max-width: 680px;
        margin-top: 45px;
        transform: none;
    }

    #equipo img {
        height: 280px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 60px;
    }

    body {
        font-size: 15px;
    }

    .section {
        padding: 62px 0;
    }

    .section > .container {
        width: min(100% - 24px, var(--landing-container));
    }

    .section h2 {
        font-size: 2rem;
    }

    #inicio {
        padding-top: 78px;
        padding-bottom: 70px;
    }

    #inicio h1,
    #inicio h2 {
        font-size: 2.5rem;
    }

    #inicio .btn {
        display: block;
        width: 100%;
        margin: 9px 0 0;
    }

    #inicio .btn + .btn {
        margin-left: 0;
    }

    #equipo .row > [class*="col-"],
    #especialidades .row > [class*="col-"],
    #testimonios .row > [class*="col-"] {
        width: 100%;
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
    }

    #equipo img,
    #especialidades img {
        height: auto;
        max-height: 370px;
    }

    #contacto form,
    #contacto .panel,
    #contacto .card {
        padding: 23px 18px;
    }
}

@media (max-width: 420px) {
    #inicio h1,
    #inicio h2 {
        font-size: 2.15rem;
    }

    #testimonios .thumbnail,
    #testimonios .panel,
    #testimonios .card,
    #testimonios article,
    #testimonios .testimonio-card {
        padding: 25px 19px;
    }
}


/*
|--------------------------------------------------------------------------
| Accesibilidad
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .landing-reveal {
        opacity: 1;
        transform: none;
    }
}