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

:root {
    --bg: #050505;
    --bg-soft: #0f0f10;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.12);
    --accent: #d7dbe0;
    --accent-soft: #f5f7fa;
    --text: #f3f4f6;
    --text-soft: rgba(243, 244, 246, 0.74);
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --page-shift: 0px;
}

body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 28px 16px;
    overflow-x: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at top, rgba(215, 219, 224, 0.16), transparent 26%),
        linear-gradient(180deg, #121212 0%, #050505 48%, #000000 100%);
    color: var(--text);
    font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    filter: blur(20px);
    will-change: transform, opacity;
}

body::before {
    top: -12vh;
    left: -14vw;
    width: 54vw;
    height: 54vw;
    max-width: 520px;
    max-height: 520px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at center, rgba(196, 204, 214, 0.16), transparent 62%);
    transform: translate3d(calc(var(--page-shift) * -0.18), calc(var(--page-shift) * 0.08), 0);
    animation: ambient-orbit-one 20s ease-in-out infinite alternate;
}

body::after {
    right: -16vw;
    bottom: -14vh;
    width: 62vw;
    height: 62vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 42% 58% 58% 42%;
    background:
        radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.12), transparent 24%),
        radial-gradient(circle at center, rgba(128, 136, 148, 0.14), transparent 64%);
    transform: translate3d(calc(var(--page-shift) * 0.14), calc(var(--page-shift) * -0.1), 0);
    animation: ambient-orbit-two 24s ease-in-out infinite alternate;
}

.card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: linear-gradient(180deg, rgba(16, 16, 17, 0.98) 0%, rgba(5, 5, 5, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: card-enter 0.9s var(--ease) both;
}

.header-image {
    position: relative;
    min-height: 400px;
    height: 400px;
    overflow: hidden;
    background: #0a0a0a;
}

.header-image > img {
    position: absolute;
    top: -110px;
    left: 0;
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
    filter: grayscale(18%) contrast(1.05);
    animation: header-fade 1.1s var(--ease) both;
    transform: translateY(0) scale(1.04);
    transform-origin: center top;
    will-change: transform;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 28%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(135deg, rgba(215, 219, 224, 0.14) 0%, transparent 45%);
}

.logo-container {
    position: absolute;
    top: 70px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    animation: header-fade 0.85s 0.12s var(--ease) both;
    will-change: transform, opacity;
    transition: opacity 0.24s linear;
}

.logo {
    width: min(100%, 124px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.4));
}

.name-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    padding: 0 22px;
    text-align: center;
    animation: fade-up 0.85s 0.28s var(--ease) both;
}

.profile-photo-frame {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(192, 198, 206, 0.96), rgba(255, 255, 255, 0.9));
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.4);
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.name {
    font-size: 1.72rem;
    line-height: 1.08;
    letter-spacing: 0.03em;
}

.position {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.4;
}

.main-content {
    padding: 24px 22px 28px;
}

.contact-icons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 30px;
    animation: fade-up 0.85s 0.42s var(--ease) both;
}

.icon-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.26s var(--ease),
        box-shadow 0.26s var(--ease),
        background-color 0.26s var(--ease),
        border-color 0.26s var(--ease),
        filter 0.26s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.icon-link {
    width: 100%;
    height: 92px;
    border-radius: 24px;
    animation: icon-float 5.2s ease-in-out infinite;
}

.icon-link img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition:
        transform 0.26s var(--ease),
        filter 0.26s var(--ease),
        opacity 0.26s var(--ease);
}

.icon-link img {
    filter: grayscale(1) brightness(1.28) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.icon-link::before,
.save-contact::before,
.link-button::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
    pointer-events: none;
}

.save-contact {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(215, 219, 224, 0.22);
    background: linear-gradient(180deg, rgba(245, 247, 250, 0.14), rgba(184, 191, 199, 0.08));
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition:
        transform 0.26s var(--ease),
        box-shadow 0.26s var(--ease),
        background 0.26s var(--ease),
        border-color 0.26s var(--ease);
    animation: fade-up 0.85s 0.52s var(--ease) both;
}

.info-card,
.content-section,
.about-section {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.content-section,
.about-section,
.links-section {
    border-radius: 24px;
    padding: 20px 18px;
    margin-top: 16px;
    animation: fade-up 0.85s 0.68s var(--ease) both;
}

.intro-section {
    margin: 4px 0 16px;
    padding: 0 4px;
    text-align: center;
    animation: fade-up 0.85s 0.62s var(--ease) both;
}

.section-kicker,
.about-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-title,
.about-title {
    font-size: 1.18rem;
    line-height: 1.3;
    color: var(--text);
}

.intro-text,
.section-text,
.about-text,
.info-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.72;
}

.section-text + .section-text {
    margin-top: 10px;
}

.about-heading-wrap {
    margin-bottom: 2px;
}

.content-details {
    margin-top: 16px;
    animation: fade-up 0.85s 0.68s var(--ease) both;
}

.content-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(215, 219, 224, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.content-toggle::-webkit-details-marker {
    display: none;
}

.content-toggle-label {
    color: var(--accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.content-toggle-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(215, 219, 224, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.26s var(--ease);
}

.content-expanded {
    display: none;
    padding-top: 12px;
}

.content-details[open] .content-expanded {
    display: block;
}

.content-details[open] .content-toggle-icon {
    transform: rotate(180deg);
}

.content-details[open] .content-toggle-label::after {
    content: " / Leer menos";
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.accordion-card {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
    overflow: hidden;
}

.accordion-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 18px 18px 16px;
    list-style: none;
    cursor: pointer;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-kicker {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.accordion-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.accordion-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(215, 219, 224, 0.28);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.26s var(--ease), background-color 0.26s var(--ease);
}

.accordion-body {
    display: none;
    padding: 0;
}

.accordion-card[open] .accordion-body {
    display: block;
}

.accordion-card[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-card .content-section,
.accordion-card .about-section {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-top: 0;
}

.accordion-card .info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.info-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.info-card {
    padding: 16px;
    border-radius: 18px;
}

.info-card h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.4;
}

.principles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.principles span {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(215, 219, 224, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.links-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.link-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.link-button {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(215, 219, 224, 0.22);
    background: linear-gradient(180deg, rgba(232, 236, 240, 0.12), rgba(164, 170, 177, 0.08));
    color: var(--text);
    text-align: center;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition:
        transform 0.26s var(--ease),
        box-shadow 0.26s var(--ease),
        border-color 0.26s var(--ease),
        background 0.26s var(--ease);
}

.link-button.pin-requested {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 132px;
    padding: 16px;
    text-align: left;
}

.pin-message {
    position: relative;
    z-index: 1;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.pin-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.pin-input {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    font: inherit;
    outline: none;
}

.pin-input::placeholder {
    color: rgba(243, 244, 246, 0.45);
}

.pin-input:focus {
    border-color: rgba(245, 247, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 247, 250, 0.08);
}

.pin-submit {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 247, 250, 0.16);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.22s var(--ease),
        background-color 0.22s var(--ease);
}

.pin-submit:hover {
    background: rgba(245, 247, 250, 0.24);
    transform: translateY(-1px);
}

.pin-submit:active {
    transform: scale(0.97);
}

.pin-feedback {
    position: relative;
    z-index: 1;
    min-height: 1.2em;
    font-size: 0.8rem;
    color: var(--accent-soft);
}

.icon-link:hover,
.save-contact:hover,
.link-button:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.icon-link:hover img {
    transform: scale(1.1);
    filter: grayscale(0) brightness(1.42) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38));
}

.icon-link:hover::before,
.save-contact:hover::before,
.link-button:hover::before {
    opacity: 1;
    transform: scale(1);
}

    .icon-link:active,
    .save-contact:active,
    .link-button:active {
        transform: translateY(1px) scale(0.965);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.icon-link:active img {
    transform: scale(0.92) rotate(-4deg);
}

.link-button:hover {
    background: linear-gradient(180deg, rgba(242, 245, 248, 0.18), rgba(180, 187, 194, 0.12));
}

.save-contact:hover {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.2), rgba(191, 197, 204, 0.14));
}

.icon-link:nth-child(1) {
    animation-delay: 0s;
}

.icon-link:nth-child(2) {
    animation-delay: 0.18s;
}

.icon-link:nth-child(3) {
    animation-delay: 0.36s;
}

.icon-link:nth-child(4) {
    animation-delay: 0.54s;
}

.icon-link:nth-child(5) {
    animation-delay: 0.72s;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.986);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes image-settle {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes header-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ambient-orbit-one {
    0% {
        opacity: 0.42;
        transform: translate3d(calc(var(--page-shift) * -0.18), calc(var(--page-shift) * 0.08), 0) scale(1);
    }
    50% {
        opacity: 0.58;
        transform: translate3d(calc(var(--page-shift) * -0.1 + 18px), calc(var(--page-shift) * 0.1 + 14px), 0) scale(1.08);
    }
    100% {
        opacity: 0.46;
        transform: translate3d(calc(var(--page-shift) * -0.2 - 12px), calc(var(--page-shift) * 0.04 - 8px), 0) scale(0.96);
    }
}

@keyframes ambient-orbit-two {
    0% {
        opacity: 0.38;
        transform: translate3d(calc(var(--page-shift) * 0.14), calc(var(--page-shift) * -0.1), 0) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.54;
        transform: translate3d(calc(var(--page-shift) * 0.18 - 16px), calc(var(--page-shift) * -0.06 - 18px), 0) rotate(8deg) scale(1.05);
    }
    100% {
        opacity: 0.4;
        transform: translate3d(calc(var(--page-shift) * 0.1 + 12px), calc(var(--page-shift) * -0.12 + 10px), 0) rotate(-6deg) scale(0.95);
    }
}

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

@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    .card {
        border-radius: 24px;
    }

    .header-image,
    .header-image > img {
        min-height: 400px;
        height: 400px;
    }

    .header-image > img {
        top: -100px;
        height: 580px;
    }

    .logo-container {
        top: 18px;
        left: 18px;
        right: 18px;
    }

    .logo {
        width: min(100%, 114px);
    }

    .name-section {
        bottom: 18px;
        padding: 0 18px;
    }

    .profile-photo-frame {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 1.5rem;
    }

    .position {
        font-size: 0.88rem;
    }

    .main-content {
        padding: 20px 16px 22px;
    }

    .section-title,
    .about-title {
        font-size: 1.06rem;
    }

    .intro-text,
    .section-text,
    .about-text,
    .info-card p,
    .accordion-title {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .principles span {
        width: 100%;
        text-align: center;
    }

    .contact-icons {
        margin-bottom: 26px;
    }

    .icon-link {
        height: 76px;
        border-radius: 20px;
    }

    .icon-link img {
        width: 44px;
        height: 44px;
    }

    .accordion-summary {
        padding: 16px;
    }

    .save-contact {
        min-height: 52px;
        font-size: 0.84rem;
    }

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

    .pin-submit {
        width: 100%;
    }
}
