:root {
    --primary: #0f172a;
    --tk-logo-secondary: #4ECDC4;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --radius: 24px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 15px;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1.1;
}

.header-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin: 15px 0;
}

.header .subtitle {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* WIZARD STEPPER */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
    padding: 0 10px;
    width: 100%;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border);
    z-index: 1;
}

.step {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 0 8px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step.active .step-circle {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.step.completed .step-circle {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.step-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.step.active .step-label {
    color: var(--secondary);
}

/* CONTENT VIEW */
#step-container {
    width: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 15px;
    position: relative;
    width: 100%;
}

h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
}

p.instruction {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* AGE SELECTOR & FORMS */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    background: #fcfcfc;
}

input:focus,
select:focus {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* DOB Segmented Inputs */
.dob-header-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.dob-header-row .input-group:nth-child(1) {
    flex: 0.8;
}

/* Dia */
.dob-header-row .input-group:nth-child(2) {
    flex: 2;
}

/* Mes */
.dob-header-row .input-group:nth-child(3) {
    flex: 1.2;
}

/* Año */

.day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.day-grid-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background: white;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
}

.day-grid-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.day-grid-btn.selected {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.age-feedback {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    border: 1px solid #bae6fd;
    display: none;
}

/* SCHEDULE CARDS */
.sedes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sede-group {
    margin-bottom: 25px;
}

.sede-name {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maps-link:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

.schedule-card {
    background: #fcfcfc;
    padding: 18px;
    border-radius: 16px;
    cursor: pointer;
    border: 2px solid var(--border);
}

.schedule-card:hover {
    border-color: var(--secondary);
    background: white;
}

.schedule-card.active {
    border-color: var(--secondary);
    background: #f0f9ff;
    box-shadow: 0 0 0 1px var(--secondary);
}

.schedule-card .time {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.schedule-card .program {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* DAY PICKER */
.day-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.day-btn {
    padding: 15px 10px;
    background: #fcfcfc;
    border: 2px solid var(--border);
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
}

.day-btn:hover {
    border-color: var(--secondary);
}

.day-btn.active {
    border-color: var(--secondary);
    background: #f0f9ff;
    box-shadow: 0 0 0 1px var(--secondary);
}

.day-btn .date-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.day-btn .date-month {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--secondary), #0369a1);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-back {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 15px;
}

/* SUCCESS */
.success-header {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.whatsapp-btn {
    background: #22c55e;
    color: white;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

@media (max-width: 600px) {
    .card {
        padding: 22px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .day-grid {
        gap: 4px;
    }

    .day-grid-btn {
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .success-icon {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: 28px;
    padding: 25px 30px;
    max-width: 500px;
    width: 95%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-box {
    background: #fff5f5;
    border: 1px solid #ffe3e3;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.alert-box i {
    color: #f03e3e;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.alert-box p {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #c92a2a;
    margin: 0;
    text-align: justify;
}

.program-guide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.72rem;
    border: 1px solid var(--border);
    text-align: center;
}

.guide-item span {
    font-weight: 700;
    color: var(--primary);
}

.guide-item strong {
    color: var(--secondary);
    font-weight: 800;
}

.modal-header h2 {
    color: var(--primary);
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    text-align: center;
}

.guide-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin: 10px 0 10px 0;
    text-align: center;
    font-weight: 800;
}

/* PREMIUM MODAL STUFF */
.info-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon-wrapper {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.info-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.modal-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
}