* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f7f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #392b31;
}

.app {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    padding-bottom: 90px;
    box-shadow: 0 0 30px rgba(0,0,0,.06);
}

.header {
    padding: 24px 22px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: #df4773;
    font-size: 22px;
    font-weight: 800;
}

.brand small {
    display: block;
    color: #9a7b85;
    font-size: 11px;
    font-weight: 400;
}

.hero {
    margin: 5px 18px 25px;
    padding: 28px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff1f5, #fde5ec);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.hero p {
    margin: 0;
    color: #775f68;
    line-height: 1.5;
}

.section {
    padding: 0 18px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
}

.section-title span {
    color: #e34b76;
    font-size: 13px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    margin-bottom: 13px;
    background: #fff;
    border: 1px solid #f2e7ea;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(100, 50, 70, .06);
    text-decoration: none;
    color: inherit;
}

.service-image {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #f9dce5, #f6edf0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.duration {
    color: #88727a;
    font-size: 13px;
    margin-bottom: 8px;
}

.price {
    color: #e33f70;
    font-size: 17px;
    font-weight: 700;
}

.arrow {
    color: #e34b76;
    font-size: 25px;
}

.notice {
    margin: 25px 18px;
    padding: 17px;
    border-radius: 18px;
    background: #fff5f7;
    color: #765f68;
    font-size: 13px;
    line-height: 1.5;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 100%);
    height: 72px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid #f1e4e8;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.nav-item {
    color: #9a858c;
    text-decoration: none;
    text-align: center;
    font-size: 11px;
}

.nav-item strong {
    display: block;
    font-size: 21px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: #e33f70;
}

/* ==========================================
   NUEVA RESERVA
========================================== */

.reservation-app {
    padding-bottom: 40px;
}

.reservation-header {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    text-align: center;
    padding: 22px 18px 12px;
    font-size: 17px;
}

.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #33242a;
    font-size: 32px;
    border-radius: 50%;
}

.back-button:hover {
    background: #fff1f5;
}


/* PASOS */

.steps {
    display: flex;
    align-items: flex-start;
    padding: 10px 28px 28px;
}

.step {
    width: 68px;
    text-align: center;
    color: #aaa;
}

.step span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    border-radius: 50%;
    background: #e9e9e9;
    font-size: 13px;
    font-weight: 700;
}

.step small {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    white-space: nowrap;
}

.step.active {
    color: #e33f70;
}

.step.active span {
    background: #e33f70;
    color: white;
}

.step.completed span {
    background: #f7a2bb;
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    margin-top: 14px;
    background: #e7e7e7;
}

.step-line.active {
    background: #f19ab4;
}


/* SECCIONES */

.reservation-section {
    padding: 0 18px 23px;
}

.reservation-title {
    margin: 0 0 16px;
    font-size: 18px;
}


/* SERVICIO SELECCIONADO */

.selected-service {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #f0e5e8;
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 18px rgba(100, 50, 70, .05);
}

.selected-service-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    background: #fbe3ea;
    font-size: 34px;
}

.selected-service-info h2 {
    margin: 0 0 7px;
    font-size: 16px;
}

.selected-service-info p {
    margin: 0 0 7px;
    color: #8b747c;
    font-size: 13px;
}

.selected-service-info strong {
    color: #e33f70;
}


/* FECHAS */

.date-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.date-scroll::-webkit-scrollbar {
    display: none;
}

.date-card {
    min-width: 68px;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eee4e7;
    border-radius: 15px;
    color: #46343b;
    background: white;
}

.date-card span,
.date-card small {
    display: block;
    font-size: 11px;
}

.date-card strong {
    display: block;
    margin: 5px 0;
    font-size: 22px;
}

.date-card.active {
    color: white;
    border-color: #e33f70;
    background: linear-gradient(
        135deg,
        #ef638a,
        #df3567
    );
    box-shadow: 0 7px 16px rgba(227, 63, 112, .22);
}


/* HORARIOS */

.time-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-option {
    min-height: 52px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee5e8;
    border-radius: 13px;
    cursor: pointer;
    background: white;
    font-weight: 600;
}

.time-option input {
    position: absolute;
    opacity: 0;
}

.time-option i {
    width: 21px;
    height: 21px;
    border: 2px solid #bdb4b7;
    border-radius: 50%;
    position: relative;
}

.time-option:has(input:checked) {
    border-color: #e33f70;
    background: #fff5f8;
    color: #e33f70;
}

.time-option input:checked + i {
    border-color: #e33f70;
}

.time-option input:checked + i::after {
    content: "";
    width: 11px;
    height: 11px;
    background: #e33f70;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.empty-times {
    padding: 22px;
    text-align: center;
    border-radius: 15px;
    background: #fff4f6;
    color: #826b73;
    font-size: 14px;
}


/* BOTÓN */

.primary-button {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        #ef5681,
        #df3567
    );
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(227, 63, 112, .20);
}

.primary-button:hover {
    opacity: .94;
}


/* ==========================================
   DATOS Y CONFIRMACIÓN
========================================== */

.summary-card {
    padding: 17px;
    border: 1px solid #eee3e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(100, 50, 70, .05);
}

.summary-service {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1e6e9;
}

.summary-service h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.summary-service p {
    margin: 0;
    color: #87747a;
    font-size: 13px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #f4ecee;
    font-size: 13px;
}

.summary-line:last-child {
    border-bottom: 0;
}

.summary-line span {
    color: #826f76;
}

.summary-line strong {
    text-align: right;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.form-group label small {
    font-weight: 400;
    color: #9c8d92;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #e9dfe2;
    border-radius: 13px;
    outline: none;
    background: #fff;
    font-size: 14px;
    color: #3a2b31;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e6547e;
    box-shadow: 0 0 0 3px rgba(230, 84, 126, .08);
}

.payment-card {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 17px;
    background: linear-gradient(
        135deg,
        #fff0f4,
        #fde5ec
    );
}

.payment-card span {
    display: block;
    color: #78636a;
    font-size: 13px;
}

.payment-card strong {
    display: block;
    margin: 6px 0;
    color: #e33f70;
    font-size: 27px;
}

.payment-card small {
    color: #816c73;
    line-height: 1.4;
}

.upload-box {
    position: relative;
    padding: 24px 15px;
    border: 2px dashed #efadc1;
    border-radius: 15px;
    background: #fffafd;
    text-align: center;
}

.upload-box input[type="file"] {
    width: 100%;
    font-size: 13px;
}

.upload-box p {
    margin: 12px 0 4px;
    color: #765f68;
    font-size: 12px;
}

.upload-box small {
    color: #aa959c;
}

.payment-warning {
    margin: 18px 0 0;
    padding: 15px;
    border-radius: 14px;
    background: #fff5e8;
    color: #745e40;
    font-size: 12px;
    line-height: 1.55;
}


/* ==========================================
   ADMINISTRACIÓN
========================================== */

.admin-app {
    padding-bottom: 90px;
}

.admin-date-nav {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    gap: 8px;
    margin: 5px 0 22px;
}

.date-arrow {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eedfe4;
    border-radius: 13px;
    background: #fff;
    color: #e33f70;
    text-decoration: none;
    font-size: 27px;
}

.agenda-date {
    text-align: center;
}

.agenda-date strong {
    display: block;
    font-size: 15px;
}

.agenda-date small {
    display: block;
    margin-top: 5px;
    color: #8e7a81;
    font-size: 12px;
}

.form-group input[type="date"] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #e9dfe2;
    border-radius: 13px;
    background: #fff;
    color: #3a2b31;
    font-size: 14px;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agenda-item {
    display: flex;
    gap: 14px;
    padding: 15px;
    border: 1px solid #eee3e6;
    border-radius: 17px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 18px rgba(100, 50, 70, .05);
}

.agenda-hour {
    width: 62px;
    flex-shrink: 0;
    padding-right: 12px;
    border-right: 1px solid #f0e5e8;
    color: #e33f70;
    font-size: 17px;
    font-weight: 800;
}

.agenda-hour small {
    display: block;
    margin-top: 3px;
    color: #9a858c;
    font-size: 10px;
}

.agenda-content {
    flex: 1;
    min-width: 0;
}

.agenda-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.agenda-top strong {
    font-size: 14px;
}

.agenda-service {
    margin-top: 7px;
    color: #66545b;
    font-size: 13px;
}

.agenda-meta {
    margin-top: 7px;
    color: #9a858c;
    font-size: 11px;
}

.admin-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff1f5;
    color: #e33f70;
    font-size: 10px;
    white-space: nowrap;
}

.status-confirmada {
    background: #edf9f0;
    color: #31884a;
}

.status-pendiente_validacion {
    background: #fff6e8;
    color: #b7791f;
}

.status-finalizada {
    background: #edf4ff;
    color: #356ab5;
}

.status-en_atencion {
    background: #f3edff;
    color: #724db2;
}

.status-reprogramada {
    background: #eef7ff;
    color: #3677a8;
}

.status-no_asistio {
    background: #f2f2f2;
    color: #666;
}

.agenda-empty {
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #eee3e6;
    border-radius: 18px;
    background: #fff;
}

.agenda-empty-icon {
    margin-bottom: 12px;
    font-size: 40px;
}

.agenda-empty strong {
    display: block;
    margin-bottom: 7px;
}

.agenda-empty p {
    margin: 0;
    color: #88747b;
    font-size: 13px;
    line-height: 1.5;
}

.admin-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 100%);
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #f1e4e8;
    background: rgba(255,255,255,.98);
    z-index: 100;
}

.admin-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #99848b;
    text-decoration: none;
    font-size: 10px;
}

.admin-nav-item strong {
    font-size: 20px;
}

.admin-nav-item.active {
    color: #e33f70;
}

.admin-filter {
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid #eee3e6;
    border-radius: 999px;
    background: #fff;
    color: #79656c;
    text-decoration: none;
    font-size: 12px;
}

.admin-filter.active {
    border-color: #e33f70;
    background: #e33f70;
    color: #fff;
}
