/* ═══════════════════════════════════════════════
   ACUARIO BOOKING — UI v2
   Inspired by Aquamundo's booking interface
═══════════════════════════════════════════════ */

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

.acuario-booking-wrap {
    max-width: 1060px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

/* ── Layout: sidebar + content ── */
.acuario-layout {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.12);
    min-height: 620px;
}

/* ── Sidebar ── */
.acuario-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0d9488, #0e7490);
    padding: 36px 0 28px;
    display: flex;
    flex-direction: column;
}

.acuario-sidebar__step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: default;
    position: relative;
    transition: background .2s;
}
.acuario-sidebar__step--active {
    background: rgba(255,255,255,.15);
}
.acuario-sidebar__step--done {
    opacity: .85;
}

.acuario-sidebar__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    transition: all .2s;
}
.acuario-sidebar__step--active .acuario-sidebar__num {
    background: #fff;
    color: #0d9488;
    border-color: #fff;
}
.acuario-sidebar__step--done .acuario-sidebar__num {
    background: rgba(255,255,255,.3);
    border-color: rgba(255,255,255,.6);
}
.acuario-sidebar__step--done .acuario-sidebar__num::before {
    content: '✓';
    font-size: 13px;
}

.acuario-sidebar__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    line-height: 1.3;
}
.acuario-sidebar__step--active .acuario-sidebar__label {
    color: #fff;
    font-weight: 600;
}

/* Connector line between steps */
.acuario-sidebar__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 33px;
    bottom: -10px;
    width: 2px;
    height: 20px;
    background: rgba(255,255,255,.2);
    z-index: 1;
}

/* ── Main content area ── */
.acuario-content {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.acuario-content__body {
    flex: 1;
    padding: 34px 40px 20px;
    overflow-y: auto;
}

.acuario-content__footer {
    padding: 18px 40px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 0 0 16px 0;
}

/* ── Step title ── */
.acuario-step-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.acuario-step-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

/* ── Info banner ── */
.acuario-info {
    background: #f0fdfa;
    border-left: 3px solid #0d9488;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #0f766e;
    margin-bottom: 20px;
}

/* ══════════════════════════════════
   PASO 1 — Tipo de visita
══════════════════════════════════ */
.acuario-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.acuario-type-card { cursor: pointer; }
.acuario-type-card input[type="radio"] { display: none; }

.acuario-type-card__inner {
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
    transition: all .22s;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.acuario-type-card__inner:hover {
    border-color: #0d9488;
    box-shadow: 0 6px 20px rgba(13,148,136,.15);
    transform: translateY(-2px);
}
.acuario-type-card input:checked + .acuario-type-card__inner {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.2), 0 6px 20px rgba(13,148,136,.12);
    transform: translateY(-2px);
}

/* Scene: ilustración SVG del acuario */
.acuario-type-card__scene {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}
.acuario-type-card__scene svg {
    width: 100%;
    height: 100%;
    display: block;
}
.acuario-type-card__inner:hover .acuario-type-card__scene {
    filter: brightness(1.04) saturate(1.08);
}

/* Texto: nombre y descripción */
.acuario-type-card__text {
    padding: 11px 14px 13px;
    background: #fff;
    border-top: 1.5px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background .22s;
}
.acuario-type-card input:checked + .acuario-type-card__inner .acuario-type-card__text {
    background: #f0fdfa;
    border-top-color: #99f6e4;
}
.acuario-type-card__text strong { font-size: 14px; font-weight: 700; color: #0f172a; }
.acuario-type-card__text span   { font-size: 12px; color: #64748b; line-height: 1.4; }

/* Info box por tipo de visita */
.acuario-type-info {
    background: #f0fdfa;
    border: 1.5px solid #99f6e4;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #0f766e;
}
.acuario-type-info p {
    margin: 0 0 8px;
    font-weight: 600;
    color: #0f172a;
}
.acuario-type-info ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.acuario-type-info li { line-height: 1.5; }
.acuario-type-info strong { color: #0f172a; }

/* Campo de ancho completo en filas de campos */
.acuario-field--full { grid-column: 1 / -1; }

/* ══════════════════════════════════
   PASO 2 — Calendario
══════════════════════════════════ */
.acuario-field--people {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.acuario-field--people label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}
.acuario-field--people input {
    width: 80px;
    padding: 8px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
}
.acuario-field--people input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

/* Calendar widget */
.acuario-calendar {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}
.acuario-cal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.acuario-cal__month-label {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}
.acuario-cal__nav {
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 17px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.acuario-cal__nav:hover { background: #f0fdfa; border-color: #0d9488; color: #0d9488; }

.acuario-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 12px 4px;
    gap: 4px;
}
.acuario-cal__weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.acuario-cal__weekend { color: #cbd5e1 !important; }

.acuario-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 4px 12px 12px;
    transition: opacity .2s;
}
.acuario-cal__cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    transition: all .15s;
    border: 1.5px solid transparent;
}
.acuario-cal__cell--empty    { background: transparent; }
.acuario-cal__cell--loading  { background: #f1f5f9; color: #cbd5e1; }
.acuario-cal__cell--closed   { background: #f8fafc; color: #cbd5e1; }
.acuario-cal__cell--available {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
    cursor: pointer;
}
.acuario-cal__cell--available:hover {
    background: #ccfbf1;
    border-color: #0d9488;
    transform: scale(1.08);
    z-index: 1;
}
.acuario-cal__cell--limited {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
    cursor: pointer;
}
.acuario-cal__cell--limited:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    transform: scale(1.08);
    z-index: 1;
}
.acuario-cal__cell--full {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    opacity: .65;
}
.acuario-cal__cell--selected {
    background: #0d9488 !important;
    color: #fff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,.25);
    transform: scale(1.08);
    z-index: 2;
}
.acuario-cal__day { font-size: 13px; line-height: 1; }

.acuario-cal__legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px 14px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}
.acuario-cal__legend-item {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
}
.acuario-cal__legend-item::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    border: 1.5px solid;
    flex-shrink: 0;
}
.acuario-cal__legend-item--available::before { background: #f0fdfa; border-color: #0d9488; }
.acuario-cal__legend-item--limited::before   { background: #fffbeb; border-color: #f59e0b; }
.acuario-cal__legend-item--full::before      { background: #fef2f2; border-color: #fca5a5; }
.acuario-cal__legend-item--closed::before    { background: #f8fafc; border-color: #e2e8f0; }

.acuario-cal__loading {
    padding: 8px 14px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
}
.acuario-spinner--sm {
    width: 14px; height: 14px;
    border: 2px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: acuario-spin .8s linear infinite;
    flex-shrink: 0;
}

/* Bloques horarios */
#acuario-blocks-wrap { margin-bottom: 8px; }
.acuario-blocks-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.acuario-block-notice {
    padding: 9px 13px;
    background: #f0fdfa;
    border-radius: 8px;
    font-size: 12px;
    color: #0f766e;
    margin-bottom: 10px;
    border-left: 3px solid #0d9488;
}
.acuario-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}
.acuario-block {
    padding: 10px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    transition: all .2s;
    background: #f8fafc;
    user-select: none;
}
.acuario-block--available { border-color: #99f6e4; background: #f0fdfa; cursor: pointer; }
.acuario-block--available:hover { border-color: #0d9488; background: #ccfbf1; }
.acuario-block--partial   { border-color: #fde68a; background: #fffbeb; cursor: pointer; }
.acuario-block--partial:hover { border-color: #f59e0b; background: #fef3c7; }
.acuario-block--full      { border-color: #fecaca; background: #fef2f2; opacity: .6; cursor: not-allowed; }
.acuario-block--invalid   { opacity: .45; cursor: not-allowed; }

.acuario-block__time  { font-weight: 600; font-size: 13px; color: #0f172a; }
.acuario-block__spots { font-size: 11px; color: #64748b; margin-top: 2px; }
.acuario-block__label { font-size: 11px; color: #ef4444; margin-top: 2px; }

/* Bloques consecutivos seleccionados */
.acuario-block--selected,
.acuario-block--selected-mid,
.acuario-block--selected-last {
    border: 2px solid #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,.2);
    color: #fff !important;
}
.acuario-block--selected      { background: #0d9488 !important; }
.acuario-block--selected-mid  { background: #5eead4 !important; }
.acuario-block--selected-last { background: #99f6e4 !important; color: #0f766e !important; }

.acuario-block--selected .acuario-block__time,
.acuario-block--selected .acuario-block__spots { color: #fff !important; }
.acuario-block--selected-mid .acuario-block__time,
.acuario-block--selected-mid .acuario-block__spots { color: #fff !important; }
.acuario-block--selected-last .acuario-block__time,
.acuario-block--selected-last .acuario-block__spots { color: #0f766e !important; }

.acuario-block--selected::after      { content: 'INICIO'; }
.acuario-block--selected-mid::after  { content: 'CONT.'; }
.acuario-block--selected-last::after { content: 'FIN'; }
.acuario-block--selected::after,
.acuario-block--selected-mid::after,
.acuario-block--selected-last::after {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-top: 3px;
    opacity: .9;
}

.acuario-block--invalid.acuario-block--selected-mid,
.acuario-block--invalid.acuario-block--selected-last {
    opacity: 1 !important;
    cursor: not-allowed;
}

/* ══════════════════════════════════
   PASO 3 — Datos de contacto
══════════════════════════════════ */
.acuario-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* Contadores profesores / apoderados */
.acuario-counter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.acuario-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    gap: 12px;
}
.acuario-counter__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.acuario-counter__label span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.acuario-counter__label small {
    font-size: 11px;
    color: #64748b;
}
.acuario-counter__control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.acuario-counter__val {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    min-width: 22px;
    text-align: center;
}
.acuario-counter__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    font-size: 18px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    padding: 0;
}
.acuario-counter__btn:hover:not(:disabled) {
    border-color: #0d9488;
    color: #0d9488;
    background: #f0fdfa;
}
.acuario-counter__btn:disabled { opacity: .35; cursor: default; }
.acuario-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.acuario-field label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.acuario-field input,
.acuario-field textarea {
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    transition: border-color .2s;
}
.acuario-field input:focus,
.acuario-field textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

/* ══════════════════════════════════
   PASO 4 — Resumen
══════════════════════════════════ */
.acuario-summary {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}
.acuario-summary table { width: 100%; border-collapse: collapse; }
.acuario-summary th,
.acuario-summary td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}
.acuario-summary th { color: #64748b; width: 150px; font-weight: 500; }
.acuario-summary td { font-weight: 500; }
.acuario-summary__blocks { margin-top: 14px; }
.acuario-summary__blocks h4 { font-size: 13px; margin: 0 0 8px; color: #374151; }
.acuario-block-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #ccfbf1;
    color: #0f766e;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid #99f6e4;
}

/* ══════════════════════════════════
   BOTONES
══════════════════════════════════ */
.acuario-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}
.acuario-btn--primary {
    background: #0d9488;
    color: #fff;
}
.acuario-btn--primary:hover { background: #0f766e; }
.acuario-btn--primary:disabled { background: #94a3b8; cursor: not-allowed; }
.acuario-btn--ghost {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #d1d5db;
}
.acuario-btn--ghost:hover { background: #f8fafc; }
.acuario-btn--submit {
    background: #0d9488;
    color: #fff;
    font-size: 15px;
    padding: 11px 28px;
    font-weight: 600;
}
.acuario-btn--submit:hover { background: #0f766e; }

/* ══════════════════════════════════
   ÉXITO
══════════════════════════════════ */
.acuario-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 400px;
}
.acuario-success__icon {
    width: 64px; height: 64px;
    background: #0d9488;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.acuario-success h2 { color: #0d9488; margin-bottom: 8px; }
.acuario-success__ref {
    margin: 14px auto;
    padding: 8px 24px;
    background: #f0fdfa;
    border: 1.5px solid #99f6e4;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: 2px;
}
.acuario-success__blocks { font-size: 13px; color: #374151; margin-top: 12px; }

/* ══════════════════════════════════
   LOADING & ERROR
══════════════════════════════════ */
.acuario-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 200px;
    color: #64748b;
}
.acuario-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: acuario-spin .8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes acuario-spin { to { transform: rotate(360deg); } }

.acuario-error-box {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    color: #991b1b;
    font-size: 13px;
    margin-top: 12px;
}
.acuario-suggestions { margin-top: 10px; }
.acuario-suggestions p { font-size: 12px; color: #374151; margin-bottom: 6px; }
.acuario-suggestion-btn {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 5px;
    padding: 5px 12px;
    background: #fff;
    border: 1.5px solid #0d9488;
    color: #0f766e;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.acuario-suggestion-btn:hover { background: #f0fdfa; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 700px) {
    .acuario-layout { flex-direction: column; }
    .acuario-sidebar { width: 100%; flex-direction: row; padding: 14px 12px; overflow-x: auto; gap: 0; }
    .acuario-sidebar__step { flex-direction: column; gap: 4px; padding: 8px 12px; min-width: 70px; text-align: center; }
    .acuario-sidebar__step::after { display: none; }
    .acuario-sidebar__label { font-size: 11px; }
    .acuario-content__body { padding: 20px 18px 14px; }
    .acuario-content__footer { padding: 14px 18px; }
    .acuario-type-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .acuario-type-card__inner { height: 170px; }
    .acuario-fields-row { grid-template-columns: 1fr; }
    .acuario-counter-group { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .acuario-type-grid { grid-template-columns: 1fr; }
}
