/* ═══════════════════════════════════════
   Thank You Page — P&D Representaciones
   ═══════════════════════════════════════ */

.ty {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

/* Block 1: Celebration Header */
.ty-header {
    text-align: center;
    padding: 48px 0 40px;
}
.ty-check {
    width: 64px; height: 64px;
    margin: 0 auto 24px;
}
.ty-check__circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--pyd-primary-light, #EBF5FF);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tyScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ty-check__icon {
    width: 28px; height: 28px;
    stroke: var(--pyd-primary, #0070C0);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: tyDraw 0.4s 0.3s ease forwards;
}
@keyframes tyScaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes tyDraw { to { stroke-dashoffset: 0; } }

.ty-header__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    color: var(--pyd-heading, #1A1A1A);
    margin-bottom: 8px;
}
.ty-header__order {
    font-size: 15px;
    color: var(--pyd-text-light, #6B7280);
    margin-bottom: 12px;
}
.ty-header__order strong {
    color: var(--pyd-heading, #1A1A1A);
    font-weight: 600;
}
.ty-header__email {
    font-size: 13px;
    color: var(--pyd-text-light, #6B7280);
    background: var(--pyd-bg-alt, #F3F3F1);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 4px;
}
.ty-header__email svg {
    width: 14px; height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
    stroke: var(--pyd-text-light, #6B7280);
}

/* Block 2: Timeline */
.ty-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 0 40px;
    border-top: 1px solid var(--pyd-border, #E5E7EB);
    border-bottom: 1px solid var(--pyd-border, #E5E7EB);
}
.ty-timeline__step {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 160px;
}
.ty-timeline__step::after {
    content: '';
    position: absolute;
    top: 14px; right: -50%;
    width: 100%; height: 2px;
    background: var(--pyd-border, #E5E7EB);
}
.ty-timeline__step:last-child::after { display: none; }
.ty-timeline__step.active::after { background: var(--pyd-primary, #0070C0); }
.ty-timeline__dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--pyd-bg-alt, #F3F3F1);
    border: 2px solid var(--pyd-border, #E5E7EB);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.ty-timeline__step.active .ty-timeline__dot {
    background: var(--pyd-primary, #0070C0);
    border-color: var(--pyd-primary, #0070C0);
}
.ty-timeline__step.active .ty-timeline__dot svg { stroke: white; }
.ty-timeline__dot svg {
    width: 12px; height: 12px;
    stroke: var(--pyd-text-light, #6B7280);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.ty-timeline__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pyd-text-light, #6B7280);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ty-timeline__step.active .ty-timeline__label { color: var(--pyd-primary, #0070C0); }

/* Block 3: Order Details */
.ty-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0;
}
.ty-card {
    background: white;
    border: 1px solid var(--pyd-border, #E5E7EB);
    border-radius: 12px;
    padding: 24px;
}
.ty-card__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pyd-text-light, #6B7280);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pyd-border, #E5E7EB);
}
.ty-product {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    align-items: center;
}
.ty-product + .ty-product { border-top: 1px solid var(--pyd-bg-alt, #F3F3F1); }
.ty-product__img {
    width: 56px; height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--pyd-bg-alt, #F3F3F1);
    flex-shrink: 0;
}
.ty-product__info { flex: 1; }
.ty-product__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pyd-heading, #1A1A1A);
    line-height: 1.3;
}
.ty-product__meta {
    font-size: 12px;
    color: var(--pyd-text-light, #6B7280);
    margin-top: 2px;
}
.ty-product__price {
    font-size: 14px;
    font-weight: 600;
    color: var(--pyd-heading, #1A1A1A);
    white-space: nowrap;
}
.ty-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pyd-border, #E5E7EB);
}
.ty-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--pyd-text-light, #6B7280);
}
.ty-totals__row--total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--pyd-heading, #1A1A1A);
    font-size: 16px;
    font-weight: 700;
    color: var(--pyd-heading, #1A1A1A);
}
.ty-info__row { padding: 6px 0; font-size: 14px; }
.ty-info__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pyd-text-light, #6B7280);
    font-weight: 600;
    margin-bottom: 2px;
}
.ty-info__value { color: var(--pyd-heading, #1A1A1A); line-height: 1.5; }
.ty-info__row + .ty-info__row { margin-top: 12px; }
.ty-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pyd-bg-alt, #F3F3F1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--pyd-heading, #1A1A1A);
    margin-top: 4px;
}

/* Block 4: CTAs */
.ty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 0 48px;
}
.ty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Archivo', sans-serif;
}
.ty-btn--primary {
    background: var(--pyd-primary, #0070C0);
    color: white;
}
.ty-btn--primary:hover {
    background: var(--pyd-primary-dark, #005A9E);
    transform: translateY(-1px);
}
.ty-btn--outline {
    background: white;
    color: var(--pyd-heading, #1A1A1A);
    border: 1.5px solid var(--pyd-border, #E5E7EB);
}
.ty-btn--outline:hover { border-color: var(--pyd-heading, #1A1A1A); }
.ty-btn svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Invalid order */
.ty-invalid {
    text-align: center;
    padding: 96px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.ty-invalid__title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--pyd-heading, #1A1A1A);
    margin-bottom: 12px;
}
.ty-invalid__text {
    font-size: 15px;
    color: var(--pyd-text-light, #6B7280);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .ty { padding: 24px 16px 64px; }
    .ty-header { padding: 32px 0 24px; }
    .ty-details { grid-template-columns: 1fr; gap: 20px; }
    .ty-timeline { padding: 24px 0 28px; }
    .ty-timeline__step { max-width: 120px; }
    .ty-actions { flex-direction: column; }
    .ty-btn { justify-content: center; }
}
