@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
    color-scheme: light;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #102538;
    --muted: #5a6d7d;
    --surface: rgba(255, 255, 255, 0.94);
    --line: rgba(16, 37, 56, 0.12);
    --accent: #5bc2cf;
    --accent-deep: #116e7a;
    --accent-soft: #e2f7f8;
    --backdrop: linear-gradient(145deg, rgba(4, 34, 59, 0.9), rgba(10, 94, 107, 0.72)), url("../img/fondo_azul_estrellas1.JPG");
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--backdrop) center / cover fixed;
}

.profile-laura {
    --accent: #f4d774;
    --accent-deep: #8c6530;
    --accent-soft: #fff7d8;
    --backdrop: linear-gradient(145deg, rgba(34, 33, 64, 0.88), rgba(112, 67, 93, 0.72)), url("../img/fondo_lau.jpg");
}

.profile-diego {
    --accent: #e9c357;
    --accent-deep: #7b5a05;
    --accent-soft: #fff5cf;
    --backdrop: linear-gradient(145deg, rgba(48, 39, 12, 0.88), rgba(115, 83, 5, 0.68)), url("../img/fondo_amarillo_giro.JPG");
}

.profile-gloria {
    --accent: #79d4e4;
    --accent-deep: #176b82;
    --accent-soft: #e2f7fb;
    --backdrop: linear-gradient(145deg, rgba(5, 35, 70, 0.91), rgba(31, 79, 128, 0.72)), url("../img/fondo_azul_estrellas1.JPG");
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 14px;
    color: white;
    background: #061d31;
    border-radius: 10px;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.profile-header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.back-link,
.profile-brand {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    letter-spacing: 0.02em;
}

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

.back-link span {
    font-size: 1.25rem;
    transition: transform 160ms ease;
}

.back-link:hover span,
.back-link:focus-visible span {
    transform: translateX(-4px);
}

.profile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.12rem;
}

.profile-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
}

.back-link:focus-visible,
.profile-brand:focus-visible,
.action:focus-visible,
.contact-value:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.profile-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.profile-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.profile-visual {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #d9e8ed;
}

.profile-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 25, 41, 0.66), transparent 48%);
    pointer-events: none;
}

.profile-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.availability {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    z-index: 1;
    margin: 0;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: rgba(5, 32, 52, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.availability span {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent);
}

.profile-content {
    padding: clamp(36px, 5vw, 68px);
    align-self: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-deep);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
p {
    text-wrap: pretty;
}

h1 {
    margin: 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.profile-lead {
    max-width: 650px;
    margin: 22px 0 0;
    color: #314b5f;
    font-size: clamp(1.06rem, 1.7vw, 1.24rem);
    line-height: 1.65;
}

.specialty-list {
    margin: 26px 0 34px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
}

.specialty-list li {
    padding: 9px 13px;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 42%, white);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.profile-detail {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.profile-detail h2 {
    margin: 0 0 15px;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
}

.profile-detail p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.78;
}

.profile-highlight {
    margin: 24px 0 0;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
    color: var(--accent-deep);
    background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.78));
    border: 1px solid color-mix(in srgb, var(--accent) 38%, white);
    border-radius: 18px;
}

.profile-highlight span {
    margin-top: 1px;
    color: var(--accent-deep);
    font-size: 1rem;
}

.profile-highlight p {
    margin: 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.55;
}

.contact-panel {
    margin-top: 32px;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.2fr);
    align-items: center;
    gap: 24px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.contact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-value {
    width: fit-content;
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}

.contact-email {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.action {
    min-height: 44px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.action-primary {
    color: #10212a;
    background: var(--accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent);
}

.action-secondary {
    color: var(--accent-deep);
    background: white;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, white);
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

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

    .profile-visual {
        min-height: 520px;
        max-height: 640px;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .profile-header,
    .profile-shell {
        width: min(100% - 24px, 1180px);
    }

    .profile-header {
        padding-top: 18px;
    }

    .profile-brand {
        font-size: 0.96rem;
    }

    .profile-brand img {
        width: 36px;
        height: 36px;
    }

    .profile-shell {
        padding: 18px 0 30px;
    }

    .profile-card {
        border-radius: 22px;
    }

    .profile-visual {
        min-height: 390px;
    }

    .profile-content {
        padding: 30px 22px 24px;
    }

    h1 {
        font-size: clamp(2.45rem, 15vw, 3.5rem);
    }

    .specialty-list {
        margin-bottom: 28px;
    }

    .contact-panel {
        padding: 18px;
    }

    .profile-actions,
    .action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
