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

:root {
    --card-bg: #0e58c5;
    --card-bg-deep: #083d8d;
    --accent: #00a8e1;
    --accent-strong: #35d0ff;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.8);
    --shadow: 0 24px 55px rgba(4, 34, 84, 0.22);
    --shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.14);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 16px;
    background:
        radial-gradient(circle at top, rgba(53, 208, 255, 0.16), transparent 34%),
        linear-gradient(180deg, #0a2b72 0%, #072154 52%, #04143a 100%);
    font-family: Arial, sans-serif;
}

.card {
    max-width: 400px;
    width: min(100%, 400px);
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--card-bg-deep) 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    animation: card-enter 0.9s var(--ease) both;
}

.header-image {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 500px;
    overflow: hidden;
    object-fit: cover;
    transform: scale(1.04);
}

.header-image > img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transform: scale(1.04);
    animation: image-settle 1.5s var(--ease) both;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 61, 141, 0.96) 12%, rgba(8, 61, 141, 0.25) 55%, rgba(8, 61, 141, 0.05) 100%);
}

.logo-container {
    position: absolute;
    top: 9px;
    left: 0;
    width: 100%;
    height: 188px;
    overflow: hidden;
    display: block;
    padding: 0;
    animation: fade-up 0.85s 0.15s var(--ease) both;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.logo-feature {
    object-position: absolute;
    padding: 0;
    object-fit: cover;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2));
}

.name-section {
    position: absolute;
    top: 270px;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 0 24px;
    color: var(--text);
    animation: fade-up 0.85s 0.32s var(--ease) both;
}

.profile-photo-frame {
    width: 104px;
    height: 104px;
    margin: 0 auto 16px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

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

.name {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.position {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft);
}

.main-content {
    margin-top: 0;
    padding: 26px 24px 20px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    animation: fade-up 0.85s 0.48s var(--ease) both;
}

.icon-link {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.26s var(--ease),
        box-shadow 0.26s var(--ease),
        opacity 0.26s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

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

.save-contact,
.flyer-download,
.social-button,
.tikiti-button {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.26s var(--ease),
        box-shadow 0.26s var(--ease),
        background-color 0.26s var(--ease),
        border-color 0.26s var(--ease),
        color 0.26s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.save-contact::before,
.flyer-download::before,
.social-button::before,
.tikiti-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--ease);
}

.save-contact {
    display: inline-block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 16px 26px rgba(0, 168, 225, 0.26);
    animation: fade-up 0.85s 0.58s var(--ease) both;
    margin-bottom: 22px;
}

.flyer-download {
    display: inline-block;
    width: 100%;
    margin-top: 22px;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 12px 22px rgba(4, 34, 84, 0.14);
    animation: fade-up 0.85s 0.84s var(--ease) both;
}

.about-section {
    position: relative;
    margin-top: 22px;
    padding: 24px 20px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    animation: fade-up 0.85s 0.78s var(--ease) both;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 20px;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-strong), rgba(255, 255, 255, 0.35));
}

.about-heading-wrap {
    margin-bottom: 18px;
    padding-top: 14px;
}

.about-details {
    display: block;
}

.about-toggle {
    list-style: none;
    cursor: pointer;
}

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

.about-preview {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    line-height: 1.7;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.about-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--accent-strong);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-readmore-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(53, 208, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.26s var(--ease), background-color 0.26s var(--ease);
}

.about-expanded {
    display: none;
    padding-top: 6px;
}

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

.about-details[open] .about-preview,
.about-details[open] .about-readmore-text {
    display: none;
}

.about-details[open] .about-readmore {
    margin-top: 0;
    margin-bottom: 8px;
}

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

.about-details[open] .about-toggle {
    margin-bottom: 2px;
}

.about-details[open] .about-toggle::after {
    content: "Leer menos";
    display: inline-block;
    margin-left: 10px;
    color: var(--accent-strong);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.about-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.about-title {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.about-text {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    line-height: 1.7;
}

.about-text-strong {
    color: var(--text);
    font-weight: 700;
}

.about-text-highlight {
    color: var(--accent-strong);
    font-weight: 700;
}

.about-list {
    line-height: 1.9;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    animation: fade-up 0.85s 0.9s var(--ease) both;
}

.tikiti-logo {
    width: 54px;
    height: auto;
}

.tikiti-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.icon-link:hover,
.save-contact:hover,
.flyer-download:hover,
.social-button:hover,
.tikiti-button:hover {
    transform: translateY(-3px);
}

.icon-link:hover {
    opacity: 0.94;
}

.icon-link:hover img,
.social-button:hover img {
    transform: scale(1.08);
}

.save-contact:hover {
    box-shadow: 0 18px 30px rgba(0, 168, 225, 0.34);
}

.flyer-download:hover,
.social-button:hover,
.tikiti-button:hover {
    box-shadow: var(--shadow-soft);
}

.icon-link:hover::before,
.save-contact:hover::before,
.flyer-download:hover::before,
.social-button:hover::before,
.tikiti-button:hover::before {
    transform: translateX(120%);
}

.icon-link:active,
.save-contact:active,
.flyer-download:active,
.social-button:active,
.tikiti-button:active {
    transform: translateY(0) scale(0.98);
}

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

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

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

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

    .card {
        border-radius: 22px;
    }

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

    .logo-container {
        height: 210px;
        padding: 0 6px;
    }

    .name {
        font-size: 1.7rem;
    }

    .position {
        font-size: 0.96rem;
    }

    .main-content {
        padding: 24px 18px 16px;
    }

    .contact-icons {
        gap: 12px;
    }

    .icon-link,
    .social-button {
        width: 54px;
        height: 54px;
    }

    .icon-link img,
    .social-button img {
        width: 54px;
        height: 54px;
    }

    .about-section {
        margin-top: 22px;
        padding: 20px 16px 4px;
    }

    .about-section::before {
        left: 16px;
    }

    .about-title {
        font-size: 1rem;
    }

    .about-text,
    .about-preview {
        font-size: 0.91rem;
        line-height: 1.58;
    }

    .footer {
        padding: 16px 18px 22px;
    }
}
