:root {
    --color-primary: #0B2D4B;
    --color-secondary: #B1843B;
    --color-background: #F6F2EA;
    --color-surface: #FFFFFF;
    --color-text: #1B2A38;
    --color-text-light: #66717C;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-surface);
    color: var(--color-text);
}

.profile {
    min-height: 100vh;
}

.profile-hero {
    width: min(92%, 520px);
    margin: 2rem auto 1rem;
    padding: 3rem 3rem;
    text-align: center;
    background-color: var(--color-background);
    border-radius: 20px;
}

.profile-hero__photo {
    display: block;
    width: 150px;
    height: 150px;
    margin-inline: auto;
    margin-bottom: 1.75rem;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-surface);
    box-shadow:
        0 12px 30px rgba(11, 45, 75, 0.12);
}

.profile-hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.profile-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    line-height: 1.05;
    text-wrap: balance;
    color: var(--color-primary);
}

.profile-hero__headline,
.profile-section__title,
.profile-contact__card h2 {
    text-wrap: balance;
}

.profile-hero__headline {
    margin: 1.25rem auto 0;
    max-width: 430px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary);
}

.profile-hero__intro {
    margin: 1.25rem auto 0;
    max-width: 450px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.profile-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(11, 45, 75, 0.15);
    border-radius: 10px;
    background-color: var(--color-surface);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    gap: 0.55rem
}

    .profile-action i {
        font-size: 1.05rem;
    }

.profile-action--primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/*Animación cuando pasamos el mouse*/
.profile-action,
.contact-button,
.save-contact,
.profile-footer a {
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.profile-action:hover,
.contact-button:hover {
    transform: translateY(-2px);
}

.save-contact:hover,
.profile-footer a:hover {
    opacity: 0.75;
}

/*Para navegación por teclado*/
.profile-action:focus-visible,
.contact-button:focus-visible,
.save-contact:focus-visible,
.profile-qr__image:focus-visible,
.qr-modal__close:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}

/*Sobre mí + mis servicios*/

.profile-container {
    width: min(92%, 520px);
    margin-inline: auto;
}

.profile-section {
    padding-block: 1rem;
}

.profile-about {
    padding: 2rem;

    background-color: var(--color-primary);
    color: white;

    border-radius: 20px;

}

.profile-about h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.1;
}

.profile-about h2 span {
    display: block;
    color: var(--color-secondary);
}

.profile-about p {
    margin-top: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.profile-section__label {
    margin-bottom: 1rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-secondary);
}

/* .profile-services {
    background-color: var(--color-surface);
} */

.profile-services__grid {
    display: grid;
    gap: 1rem;
}

.profile-service {
    padding: 1.5rem;

    border: 1px solid rgba(11, 45, 75, 0.12);
    border-radius: 16px;

    background-color: var(--color-background);
}

.profile-service span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.profile-service h3 {
    margin: 0.5rem 0;
    color: var(--color-primary);
}

.profile-service p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ========================================
   EXPERIENCE
======================================== */

.profile-experience {
    margin-top: 1rem;
}

.profile-section__title {
    margin: 0 0 2rem;

    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;

    color: var(--color-primary);
}

.profile-section__title span {
    display: block;
    color: var(--color-secondary);
}

.experience-list {
    border-top: 1px solid rgba(11, 45, 75, 0.15);
}

.experience-item {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 1rem;

    padding-block: 1.5rem;

    border-bottom: 1px solid rgba(11, 45, 75, 0.15);
}

.experience-item__number {
    padding-top: 0.2rem;

    font-size: 0.75rem;
    font-weight: 700;

    color: var(--color-secondary);
}

.experience-item h3 {
    margin: 0 0 0.5rem;

    font-size: 1.1rem;

    color: var(--color-primary);
}

.experience-item p {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.6;

    color: var(--color-text-light);
}

/* ========================================
   TOOLS
======================================== */

.profile-tools {
    margin-top: 1rem;
}

.tools-groups {
    display: grid;
    gap: 1rem;
}

.tools-group {
    padding: 1.5rem;

    background-color: var(--color-background);

    border-radius: 16px;
}

.tools-group h3 {
    margin: 0 0 1rem;

    font-size: 0.95rem;

    color: var(--color-primary);
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tools-tags span {
    padding: 0.4rem 0.7rem;

    font-size: 0.75rem;
    font-weight: 600;

    color: var(--color-primary);

    background-color: var(--color-surface);

    border: 1px solid rgba(11, 45, 75, 0.1);
    border-radius: 100px;
}

/* ========================================
   CONTACT
======================================== */

.profile-contact {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.profile-contact__card {
    padding: 2.25rem;

    background-color: var(--color-primary);
    border-radius: 20px;

    color: white;
}

.profile-contact__card h2 {
    margin: 0;

    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.profile-contact__card h2 span {
    display: block;
    color: var(--color-secondary);
}

.profile-contact__text {
    margin: 1.5rem 0 0;

    font-size: 0.95rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.75);
}

.profile-contact__actions {
    display: grid;
    gap: 0.75rem;

    margin-top: 2rem;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0.8rem 1rem;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;

    color: white;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;

    gap: 0.6rem;
}

.contact-button--primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);

    color: var(--color-primary);
}

.save-contact {
    display: block;

    margin-top: 1.5rem;

    text-align: center;

    font-size: 0.8rem;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FOOTER
======================================== */

.profile-footer {
    padding: 2rem 1rem 3rem;

    text-align: center;
}

.profile-footer p {
    margin: 0;

    font-size: 0.75rem;

    color: var(--color-text-light);
}

.profile-footer a {
    font-weight: 700;

    color: var(--color-primary);

    text-decoration: none;
}

/* ========================================
   QR
======================================== */

.profile-qr {
    display: flex;
    align-items: center;
    gap: 1.25rem;

    margin-top: 2rem;
    padding-top: 2rem;

    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-qr img {
    width: 105px;
    height: 105px;

    padding: 7px;

    background-color: white;
    border-radius: 10px;
}

.profile-qr__content {
    text-align: left;
}

.profile-qr__content h3 {
    margin: 0 0 0.4rem;

    font-size: 1rem;
    color: white;
}

.profile-qr__content p {
    margin: 0;

    font-size: 0.8rem;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.7);
}

/*Ampliación del QR*/
.profile-qr__image {
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-qr__image:hover {
    transform: scale(1.05);
}

.qr-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    background-color: rgba(11, 45, 75, 0.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 1000;
}

.qr-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.qr-modal__content {
    text-align: center;
}

.qr-modal__content img {
    width: min(75vw, 350px);
    height: auto;
    padding: 12px;
    background-color: white;
    border-radius: 18px;
    max-height: 75vh;
}

.qr-modal__content p {
    margin: 1rem 0 0;

    font-size: 0.9rem;
    font-weight: 600;

    color: white;
}

.qr-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;

    padding: 0;

    border: 0;
    background: none;

    font-size: 2.5rem;
    line-height: 1;

    color: white;

    cursor: pointer;
}

/*======================================================================
CELULARES MUY ESTRECHOS
========================================================================*/

@media (max-width: 480px) {

    .profile-hero {
        width: min(94%, 520px);
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }

    .profile-about,
    .profile-contact__card {
        padding: 1.75rem 1.5rem;
    }

}

@media (max-width: 420px) {

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

}

@media (max-width: 380px) {

    .profile-qr {
        flex-direction: column;
        text-align: center;
    }

    .profile-qr__content {
        text-align: center;
    }

}


/*======================================================================
PARA USUARIOS QUE TENGAN REDUCCIÓN DE MOVIMIENTO ACTIVADA
========================================================================*/
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}