/* =========================================================
   JE AGUIRRE CONSULTORES
   CONFIRMACIÓN DE CITA
   PREMIUM / MODERN
   ========================================================= */

:root {
    --navy: #173542;
    --navy-deep: #102a35;

    --teal: #168f91;
    --teal-dark: #0d7477;
    --teal-pale: #edf7f6;

    --cream: #f8faf9;
    --white: #ffffff;

    --text: #29414b;
    --muted: #7c8c92;

    --line: #e3eae9;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(22, 143, 145, 0.045),
            transparent 32%
        ),
        var(--cream);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   PAGE
   ========================================================= */

.confirmation-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    width: 100%;

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

    padding: 30px 30px 24px;

    background: rgba(255, 255, 255, 0.82);

    border-bottom: 1px solid rgba(227, 234, 233, 0.75);
}

.header .logo {
    display: block;

    width: 175px;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.confirmation {
    width: min(900px, calc(100% - 48px));

    margin: 0 auto;

    padding: 68px 0 90px;

    text-align: center;
}


/* =========================================================
   CONFIRMATION ICON
   ========================================================= */

.success-icon {
    width: 50px;
    height: 50px;

    margin: 0 auto 20px;

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

    border-radius: 50%;

    background: var(--teal-pale);

    border: 1px solid #d5eae8;

    color: var(--teal);

    font-size: 20px;
    font-weight: 500;

    box-shadow:
        0 8px 25px rgba(22, 143, 145, 0.08);
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: block;

    color: var(--teal);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 3.4px;

    line-height: 1.5;
}


/* =========================================================
   TITLE
   ========================================================= */

.confirmation h1 {
    margin: 12px 0 0;

    color: var(--navy);

    font-size: clamp(40px, 5vw, 60px);

    line-height: 1.02;

    letter-spacing: -2.8px;

    font-weight: 650;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    width: min(570px, 100%);

    margin: 18px auto 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   APPOINTMENT CARD
   ========================================================= */

.appointment-card {
    width: 100%;

    margin-top: 46px;

    padding: 0;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: 16px;

    text-align: left;

    box-shadow:
        0 20px 60px rgba(16, 42, 53, 0.075);
}


/* =========================================================
   CLIENT HEADER
   ========================================================= */

.client-section {
    padding: 30px 34px 27px;
}

.client-section .label {
    margin-bottom: 8px;
}

.client-section h2 {
    margin: 0;

    color: var(--navy);

    font-size: 25px;

    line-height: 1.25;

    font-weight: 650;

    letter-spacing: -0.5px;
}


/* =========================================================
   LABEL
   ========================================================= */

.label {
    display: block;

    color: var(--teal);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2.2px;

    line-height: 1.5;
}


/* =========================================================
   DATE / TIME HERO
   ========================================================= */

.appointment-date {
    display: grid;

    grid-template-columns: 1.35fr 0.65fr;

    background:
        linear-gradient(
            135deg,
            #f8fbfa,
            #f1f8f7
        );

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


/* DATE */

.date-block {
    padding: 27px 34px;
}

.date-block strong {
    display: block;

    margin-top: 4px;

    color: var(--navy);

    font-size: 19px;

    line-height: 1.35;

    font-weight: 650;
}


/* TIME */

.time-block {
    padding: 27px 34px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-left: 1px solid var(--line);
}

.time-block strong {
    display: block;

    margin-top: 4px;

    color: var(--navy);

    font-size: 23px;

    line-height: 1.2;

    font-weight: 650;
}


/* =========================================================
   DETAILS
   ========================================================= */

.details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 0;

    padding: 0;

    border-bottom: 1px solid var(--line);
}


.detail {
    min-height: 112px;

    padding: 24px 25px;

    display: flex;

    align-items: flex-start;

    gap: 13px;
}

.detail + .detail {
    border-left: 1px solid var(--line);
}


.detail-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

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

    border-radius: 50%;

    background: var(--teal-pale);

    color: var(--teal);

    font-size: 13px;

    border: 1px solid #d9ecea;
}


.detail .label {
    margin-top: 2px;

    margin-bottom: 7px;
}

.detail p {
    margin: 0;

    color: var(--text);

    font-size: 13px;

    line-height: 1.45;

    font-weight: 500;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.actions {
    padding: 25px 30px 28px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


/* =========================================================
   PRIMARY — ZOOM
   ========================================================= */

.primary-button {
    grid-column: 1 / -1;

    width: 100%;

    min-height: 51px;

    padding: 14px 20px;

    border: 0;

    border-radius: 8px;

    background: var(--teal);

    color: var(--white);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.1px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.primary-button:hover {
    background: var(--teal-dark);

    transform: translateY(-1px);

    box-shadow:
        0 10px 25px rgba(22, 143, 145, 0.18);
}


/* =========================================================
   SECONDARY
   ========================================================= */

.secondary-button {
    width: 100%;

    min-height: 47px;

    padding: 12px 16px;

    border: 1px solid var(--line);

    border-radius: 8px;

    background: var(--white);

    color: var(--navy);

    font-family: inherit;

    font-size: 12px;

    font-weight: 650;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.secondary-button:hover {
    background: #f7fbfa;

    border-color: #c4dfdc;

    color: var(--teal-dark);
}


/* =========================================================
   CONFIRM ATTENDANCE
   ========================================================= */

.confirmation-button {
    width: 100%;

    min-height: 47px;

    padding: 12px 16px;

    border: 1px solid #c9e4e1;

    border-radius: 8px;

    background: var(--teal-pale);

    color: var(--teal-dark);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.confirmation-button:hover {
    background: #e1f3f1;

    border-color: var(--teal);
}


/* =========================================================
   TEXT ACTIONS
   ========================================================= */

.text-button {
    width: 100%;

    padding: 5px;

    border: 0;

    background: transparent;

    color: #89979c;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;

    transition: color .2s ease;
}

.text-button:hover {
    color: var(--teal);
}


/* Make "No podré asistir" span both columns */

#not-attending-button {
    grid-column: 1 / -1;
}


/* =========================================================
   ATTENDANCE MESSAGE
   ========================================================= */

#attendance-message {
    grid-column: 1 / -1;

    display: none;

    margin-top: 2px;

    padding: 15px 18px;

    border-radius: 9px;

    background: var(--teal-pale);

    border: 1px solid #d3e9e6;

    text-align: center;

    color: var(--teal-dark);

    font-size: 12px;

    line-height: 1.5;
}

#attendance-message.show {
    display: block;
}

#attendance-message strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

#loading-message {
    display: none;

    margin-top: 25px;

    padding: 18px;

    border-radius: 9px;

    background: #f0f7f6;

    border: 1px solid var(--line);

    text-align: center;
}

#loading-message.show {
    display: block;
}

#loading-message strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
}

#loading-message span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   PREPARATION SECTION
   ========================================================= */

.preparation {
    width: 100%;

    margin-top: 58px;

    display: grid;

    grid-template-columns: 235px 1fr;

    overflow: hidden;

    background: var(--navy-deep);

    border-radius: 16px;

    text-align: left;

    box-shadow:
        0 20px 55px rgba(16, 42, 53, 0.10);
}


/* =========================================================
   PREPARATION IMAGE
   ========================================================= */

.preparation-image {
    min-height: 315px;

    overflow: hidden;

    background: #183d49;
}

.preparation-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;
}


/* =========================================================
   PREPARATION CONTENT
   ========================================================= */

.preparation-content {
    padding: 43px 45px;
}

.preparation-content .eyebrow {
    color: #78d5d1;
}

.preparation-content h2 {
    max-width: 470px;

    margin: 11px 0 0;

    color: var(--white);

    font-size: 30px;

    line-height: 1.15;

    letter-spacing: -1px;

    font-weight: 650;
}

.preparation-content p {
    max-width: 510px;

    margin: 15px 0 0;

    color: rgba(255,255,255,.70);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   SIGNATURE
   ========================================================= */

.preparation-signature {
    margin-top: 25px;

    padding-top: 17px;

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

.preparation-signature strong {
    display: block;

    color: var(--white);

    font-size: 13px;

    font-weight: 650;
}

.preparation-signature span {
    display: block;

    margin-top: 4px;

    color: #78d5d1;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


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

.footer {
    width: 100%;

    margin-top: auto;

    padding: 38px 20px;

    background: var(--white);

    border-top: 1px solid var(--line);

    text-align: center;
}

.footer img {
    width: 58px;
    height: 58px;

    display: block;

    margin: 0 auto 11px;

    object-fit: contain;
}

.footer p {
    margin: 0;

    color: var(--navy);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;
}

.footer span {
    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

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

    padding: 20px;

    background:
        rgba(16,42,53,.48);

    backdrop-filter: blur(7px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: min(420px, 100%);

    padding: 38px 32px;

    background: var(--white);

    border-radius: 14px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(16,42,53,.20);
}

.modal-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 17px;

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

    border-radius: 50%;

    background: var(--teal-pale);

    color: var(--teal);

    font-size: 21px;
}

.modal h2 {
    margin: 0;

    color: var(--navy);

    font-size: 23px;
}

.modal p {
    margin: 11px 0 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.modal-actions {
    margin-top: 24px;
}

.modal-close {
    width: 100%;

    padding: 13px;

    border: 0;

    border-radius: 7px;

    background: var(--teal);

    color: var(--white);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header {
        padding: 23px 20px;
    }

    .header .logo {
        width: 160px;
    }

