/* Aventura Oculta Wizard — Brand Design */

/* Variables de marca */
:root {
    --ao-navy:         #12263A;
    --ao-navy-deep:    #0d1e2e;
    --ao-gold:         #C9A961;
    --ao-gold-dark:    #8B6F3E;
    --ao-gold-light:   #E8C66D;
    --ao-cream:        #F3EFE6;
    --ao-parchment:    #F4E8D0;
    --ao-white:        #ffffff;
    --ao-text:         #2C2C2C;
    --ao-text-muted:   #6B6B6B;
    --ao-border:       #D9CEBC;
    --ao-danger:       #c0392b;
    --ao-success:      #2d6a4f;
    --ao-shadow-sm:    0 1px 3px rgba(18,38,58,0.08);
    --ao-shadow:       0 4px 12px rgba(18,38,58,0.12);
    --ao-shadow-md:    0 8px 24px rgba(18,38,58,0.15);
    --ao-shadow-lg:    0 16px 40px rgba(18,38,58,0.2);
    --ao-radius:       8px;
    --ao-radius-sm:    4px;
    --ao-radius-lg:    12px;
}

/* Container principal */
.ao-wizard-container {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: var(--ao-cream);
    border-radius: 0 0 var(--ao-radius-lg) var(--ao-radius-lg);
    box-shadow: var(--ao-shadow-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--ao-border);
}

/* Header del wizard */
.ao-wizard-header {
    background: linear-gradient(160deg, var(--ao-navy-deep) 0%, var(--ao-navy) 100%);
    color: var(--ao-white);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Textura sutil estilo pergamino oscuro */
.ao-wizard-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(201,169,97,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201,169,97,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Línea dorada decorativa inferior */
.ao-wizard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ao-gold), var(--ao-gold-light), var(--ao-gold), transparent);
}

.ao-header-content {
    position: relative;
    z-index: 1;
}

.ao-header-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(201,169,97,0.4));
}

.ao-header-title {
    font-family: 'Montserrat', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.01em;
    color: var(--ao-white);
}

.ao-header-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 2rem 0;
    font-weight: 400;
}

/* Barra de progreso */
.ao-progress-container {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.ao-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ao-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ao-gold-dark), var(--ao-gold-light));
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(201,169,97,0.5);
}

.ao-progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Indicadores de pasos */
.ao-step-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.ao-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.4rem 0.6rem;
    border-radius: var(--ao-radius-sm);
}

.ao-step:hover {
    background: rgba(255,255,255,0.06);
}

.ao-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255,255,255,0.15);
}

.ao-step.active .ao-step-number {
    background: var(--ao-gold);
    color: var(--ao-navy-deep);
    border-color: var(--ao-gold-light);
    box-shadow: 0 0 16px rgba(201,169,97,0.4);
    transform: scale(1.1);
}

.ao-step.completed .ao-step-number {
    background: rgba(201,169,97,0.2);
    color: var(--ao-gold-light);
    border-color: var(--ao-gold);
}

.ao-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.ao-step.active .ao-step-label {
    color: var(--ao-gold-light);
}

.ao-step.completed .ao-step-label {
    color: rgba(255,255,255,0.6);
}

/* Contenido principal */
.ao-wizard-main {
    padding: 2.5rem 2rem;
    min-height: 460px;
    background: var(--ao-cream);
    position: relative;
}

/* Contenido de pasos */
.ao-step-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.ao-step-content.active {
    display: block;
}

.ao-step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ao-step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.ao-step-title {
    font-family: 'Montserrat', 'Georgia', serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--ao-navy);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.ao-step-description {
    font-size: 1rem;
    color: var(--ao-text-muted);
    margin: 0;
}

/* Formularios */
.ao-form-container {
    max-width: 560px;
    margin: 0 auto;
}

.ao-field-group {
    margin-bottom: 1.75rem;
}

.ao-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--ao-navy);
    font-size: 0.95rem;
}

.ao-label-text {
    flex: 1;
}

.ao-label-required {
    color: var(--ao-danger);
    font-weight: 700;
}

.ao-label-optional {
    color: var(--ao-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.ao-input,
.ao-textarea,
.ao-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--ao-border);
    border-radius: var(--ao-radius);
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #ffffff !important;
    color: #2C2C2C !important;
}

.ao-input:focus,
.ao-textarea:focus,
.ao-select:focus {
    outline: none;
    border-color: var(--ao-gold);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}

.ao-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.ao-input.error,
.ao-textarea.error {
    border-color: var(--ao-danger);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

/* Campo de ayuda */
.ao-field-help {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(201,169,97,0.07);
    border-left: 3px solid var(--ao-gold);
    border-radius: 0 var(--ao-radius-sm) var(--ao-radius-sm) 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ao-text-muted);
}

.ao-help-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Input numérico */
.ao-number-input {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 180px;
}

.ao-number-btn {
    width: 2.75rem;
    height: 3rem;
    border: 1.5px solid var(--ao-border);
    background: var(--ao-parchment);
    color: var(--ao-navy);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ao-number-btn:first-child {
    border-radius: var(--ao-radius) 0 0 var(--ao-radius);
    border-right: none;
}

.ao-number-btn:last-child {
    border-radius: 0 var(--ao-radius) var(--ao-radius) 0;
    border-left: none;
}

.ao-number-btn:hover {
    background: var(--ao-gold);
    color: var(--ao-navy);
    border-color: var(--ao-gold);
}

.ao-number-field {
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    border-left: none;
    border-right: none;
}

/* Recomendación */
.ao-recommendation {
    background: rgba(45,106,79,0.06);
    border: 1.5px solid rgba(45,106,79,0.25);
    border-radius: var(--ao-radius);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInUp 0.4s ease;
}

.ao-recommendation-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ao-recommendation-content {
    color: var(--ao-success);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Localizaciones */
.ao-localizacion-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.ao-localizacion {
    flex: 1;
}

.ao-btn-remove {
    width: 3rem;
    height: 3rem;
    border: 1.5px solid var(--ao-border);
    background: var(--ao-white);
    color: var(--ao-danger);
    border-radius: var(--ao-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ao-btn-remove:hover {
    background: var(--ao-danger);
    color: var(--ao-white);
    border-color: var(--ao-danger);
}

.ao-btn-add {
    background: transparent;
    color: var(--ao-gold-dark);
    border: 1.5px dashed var(--ao-gold);
    padding: 0.75rem 1.25rem;
    border-radius: var(--ao-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.ao-btn-add:hover {
    background: rgba(201,169,97,0.1);
    border-style: solid;
}

/* Resumen en paso 5 */
.ao-summary-container {
    max-width: 760px;
    margin: 0 auto;
}

.ao-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.ao-summary-card {
    background: var(--ao-white);
    border: 1.5px solid var(--ao-border);
    border-radius: var(--ao-radius);
    padding: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ao-summary-card:hover {
    border-color: var(--ao-gold);
    box-shadow: var(--ao-shadow-sm);
}

.ao-summary-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ao-border);
}

.ao-summary-icon {
    font-size: 1.2rem;
}

.ao-summary-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ao-navy);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ao-summary-card p,
.ao-summary-card ul {
    color: var(--ao-text);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ao-summary-card ul {
    padding-left: 1.25rem;
}

/* Desglose de precios */
.ao-price-breakdown {
    background: linear-gradient(160deg, var(--ao-navy-deep) 0%, var(--ao-navy) 100%);
    color: var(--ao-white);
    border-radius: var(--ao-radius);
    padding: 1.75rem;
    box-shadow: var(--ao-shadow-md);
    position: relative;
    overflow: hidden;
}

.ao-price-breakdown::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ao-gold), var(--ao-gold-light), var(--ao-gold), transparent);
}

.ao-price-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ao-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ao-price-icon {
    font-size: 1.25rem;
}

.ao-price-items {
    margin-bottom: 1.25rem;
}

.ao-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    font-weight: 500;
}

.ao-price-item:last-child {
    border-bottom: none;
}

.ao-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 0 0;
    border-top: 1.5px solid rgba(201,169,97,0.4);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ao-gold-light);
}

/* Resumen lateral — flotante bottom-right, izquierda del cofre */
.ao-sidebar-summary {
    position: fixed;
    bottom: 20px;
    right: 80px; /* 20px cofre offset + 48px ball + 12px gap */
    width: 240px;
    background: var(--ao-navy);
    border: 1.5px solid rgba(201,169,97,0.4);
    border-radius: var(--ao-radius);
    box-shadow: 0 6px 24px rgba(18,38,58,0.4);
    z-index: 9989; /* just below cofre z-index 9990 */
    overflow: hidden;
    /* default: collapsed, price bar only */
}

.ao-sidebar-header {
    background: linear-gradient(160deg, var(--ao-navy-deep), var(--ao-navy));
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--ao-radius) var(--ao-radius) 0 0;
}

.ao-sidebar-icon {
    font-size: 0.9rem;
}

.ao-sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ao-gold-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ao-sidebar-content {
    padding: 0.6rem 0.9rem;
}

.ao-sidebar-item {
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--ao-border);
}

.ao-sidebar-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ao-sidebar-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(201,169,97,0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ao-sidebar-item-icon {
    font-size: 0.75rem;
}

.ao-sidebar-value {
    display: block;
    color: #E8E0D0;
    font-weight: 500;
    font-size: 0.78rem;
    word-break: break-word;
    line-height: 1.3;
}

.ao-sidebar-price {
    background: var(--ao-navy);
    color: var(--ao-gold-light);
    padding: 0.55rem 0.9rem 0.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 var(--ao-radius) var(--ao-radius);
    gap: 0 0.4rem;
}

/* Toggle + label + price all on one row */
.ao-sidebar-toggle { order: 0; flex-shrink: 0; }
.ao-sidebar-price-label { order: 1; flex: 1; white-space: nowrap; }
.ao-sidebar-price-value { order: 2; flex-shrink: 0; }

/* Hint on its own second row */
.ao-sidebar-hint {
    order: 3;
    flex-basis: 100%;
}

/* Navegación de pasos */
.ao-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ao-border);
}

.ao-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--ao-radius);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 130px;
    justify-content: center;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.ao-btn-prev {
    background: transparent;
    color: var(--ao-text-muted);
    border: 1.5px solid var(--ao-border);
}

.ao-btn-prev:hover {
    background: var(--ao-parchment);
    color: var(--ao-navy);
    border-color: var(--ao-navy);
}

.ao-btn-next {
    background: var(--ao-navy);
    color: var(--ao-gold-light);
}

.ao-btn-next:hover {
    background: var(--ao-navy-deep);
    box-shadow: var(--ao-shadow);
    transform: translateY(-1px);
}

.ao-btn-pay {
    background: linear-gradient(135deg, var(--ao-gold-dark) 0%, var(--ao-gold) 50%, var(--ao-gold-light) 100%);
    color: var(--ao-navy-deep);
    flex: 1;
    font-size: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 16px rgba(201,169,97,0.35);
}

.ao-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,169,97,0.45);
}

.ao-btn:disabled {
    background: var(--ao-border);
    color: rgba(0,0,0,0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ao-btn-icon {
    font-size: 1rem;
}

/* Loading */
.ao-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13,30,46,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.ao-loading-content {
    text-align: center;
    color: var(--ao-white);
    max-width: 360px;
    padding: 2rem;
}

.ao-loading-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem 0;
    color: var(--ao-gold-light);
}

.ao-loading-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.ao-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(201,169,97,0.2);
    border-top: 3px solid var(--ao-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Mensajes de error */
.ao-error-message {
    background: rgba(192,57,43,0.08);
    color: var(--ao-danger);
    border: 1.5px solid rgba(192,57,43,0.25);
    padding: 0.875rem 1rem;
    border-radius: var(--ao-radius);
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: slideInDown 0.3s ease;
}

.ao-error-message::before {
    content: '⚠';
    font-size: 1rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    /* sidebar stays fixed at bottom-right on all screen sizes */
    .ao-sidebar-summary {
        right: 80px;
        width: 220px;
    }

    .ao-wizard-container {
        margin: 1rem;
    }
}

@media (max-width: 768px) {
    .ao-wizard-container {
        margin: 0.5rem;
        border-radius: var(--ao-radius);
    }

    .ao-wizard-header {
        padding: 2rem 1.25rem 1.5rem;
    }

    .ao-header-title {
        font-size: 1.5rem;
    }

    .ao-header-subtitle {
        font-size: 0.9rem;
    }

    .ao-wizard-main {
        padding: 2rem 1.25rem;
    }

    .ao-step-indicators {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .ao-step-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
    }

    .ao-step-label {
        font-size: 0.62rem;
    }

    .ao-step-title {
        font-size: 1.375rem;
    }

    .ao-step-navigation {
        flex-direction: column;
    }

    .ao-btn {
        width: 100%;
    }

    .ao-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ao-localizacion-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ao-btn-remove {
        align-self: flex-end;
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (max-width: 480px) {
    .ao-wizard-header {
        padding: 1.5rem 1rem 1.25rem;
    }

    .ao-wizard-main {
        padding: 1.5rem 1rem;
    }

    .ao-header-icon {
        font-size: 2rem;
    }

    .ao-header-title {
        font-size: 1.25rem;
    }

    .ao-input,
    .ao-textarea,
    .ao-select {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* =====================================================
 *  Preview de historia (Paso 5)
 * ===================================================== */
.ao-preview-container {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--ao-radius);
    background: var(--ao-parchment);
    border: 1.5px solid var(--ao-border);
}

.ao-preview-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ao-preview-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.ao-preview-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ao-navy);
}

.ao-preview-subtitle {
    margin: 4px 0 0 0;
    color: var(--ao-text-muted);
    font-size: 0.875rem;
}

.ao-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
    margin-bottom: 1rem;
}

.ao-btn-secondary {
    background: var(--ao-white);
    border: 1.5px solid var(--ao-border);
    color: var(--ao-navy);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-width: auto;
}

.ao-btn-secondary:hover {
    border-color: var(--ao-gold);
    background: rgba(201,169,97,0.06);
}

.ao-inline-loading {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--ao-text-muted);
}

.ao-inline-loading .ao-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    margin: 0;
}

.ao-preview-output {
    background: var(--ao-white);
    border: 1.5px solid var(--ao-border);
    border-radius: var(--ao-radius);
    padding: 1.25rem;
}

.ao-preview-output-title {
    margin: 0 0 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ao-navy);
}

.ao-preview-output-text {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--ao-text);
}

.ao-preview-output-hook {
    margin: 0.75rem 0 0 0;
    font-weight: 700;
    color: var(--ao-gold-dark);
    font-style: italic;
}

.ao-preview-error {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ao-radius-sm);
    background: rgba(192,57,43,0.06);
    border: 1px solid rgba(192,57,43,0.2);
    color: var(--ao-danger);
    font-size: 0.875rem;
}

/* Preview adjustments */
.ao-preview-adjust {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ao-border);
}

.ao-preview-adjust .ao-textarea {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 80px;
}

.ao-preview-adjust-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ao-preview-adjust-help {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ao-text-muted);
}

/* Preview acceptance */
.ao-preview-acceptance {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1.5px solid var(--ao-border);
    border-radius: var(--ao-radius);
    background: var(--ao-white);
}

.ao-checkbox {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ao-navy);
}

.ao-checkbox input {
    margin-top: 3px;
    accent-color: var(--ao-gold);
}

.ao-preview-acceptance-help {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: var(--ao-text-muted);
}

/* Placeholder visible */
.ao-input::placeholder,
.ao-textarea::placeholder,
.ao-select::placeholder {
    color: #9A8F7E;
    opacity: 1;
}

/* =====================================================
 *  Sidebar colapsable — abre hacia ARRIBA desde el precio
 * ===================================================== */

/* Por defecto: header siempre visible, solo content colapsado */
.ao-sidebar-summary .ao-sidebar-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Abierto: content se expande hacia arriba */
.ao-sidebar-summary.is-open .ao-sidebar-content {
    max-height: 500px;
    opacity: 1;
}

/* Colores del header/content adaptados al fondo navy del sidebar */
.ao-sidebar-header {
    background: rgba(13,30,46,0.6);
    border-bottom: 1px solid rgba(201,169,97,0.2);
}
.ao-sidebar-title { color: var(--ao-gold-light); }
.ao-sidebar-content { background: var(--ao-navy); }
.ao-sidebar-label { color: rgba(201,169,97,0.85); }
.ao-sidebar-value { color: #E8E0D0; }
.ao-sidebar-item { border-bottom-color: rgba(201,169,97,0.15); }

/* Precio — trigger clicable, siempre visible */
.ao-sidebar-price {
    cursor: pointer;
    user-select: none;
    border-radius: 0 0 var(--ao-radius) var(--ao-radius);
    transition: background 0.2s;
    position: relative;
}
.ao-sidebar-summary:not(.is-open) .ao-sidebar-price {
    border-radius: var(--ao-radius);
}
.ao-sidebar-price:hover { background: rgba(13,30,46,0.7); }

/* Hint bajo el precio */
/* .ao-sidebar-hint styles moved into .ao-sidebar-price block above */

/* Botón toggle */
.ao-sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--ao-gold);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    margin-right: 0.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.ao-sidebar-summary.is-open .ao-sidebar-toggle {
    transform: rotate(180deg);
}

/* Mobile: ajustar posición para que no tape el cofre */
@media (max-width: 480px) {
    .ao-sidebar-summary {
        right: 76px;
        width: 190px;
        bottom: 16px;
    }
}
