/* Estilos Premium para Senda Eventos */
:root {
    --se-primary: #0284c7;
    --se-primary-hover: #0369a1;
    --se-primary-light: #e0f2fe;
    --se-accent: #059669;
    --se-bg: #f8fafc;
    --se-card-bg: #ffffff;
    --se-text-main: #1e293b;
    --se-text-muted: #64748b;
    --se-border: #cbd5e1;
    --se-border-focus: #0284c7;
    --se-error: #ef4444;
    --se-error-bg: #fef2f2;
    --se-success: #10b981;
    --se-success-bg: #ecfdf5;
    --se-radius: 12px;
    --se-radius-sm: 8px;
    --se-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.senda-eventos-container {
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.senda-eventos-container *,
.senda-eventos-container *::before,
.senda-eventos-container *::after {
    box-sizing: inherit;
}

.senda-eventos-card {
    background: var(--se-card-bg);
    border-radius: var(--se-radius);
    padding: 36px 32px;
    box-shadow: var(--se-shadow);
    border: 1px solid #e2e8f0;
}

/* Header */
.senda-eventos-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.senda-eventos-banner {
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--se-radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    background: #f1f5f9;
}

.senda-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 280px;
}


.senda-eventos-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--se-primary-light);
    color: var(--se-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;

    border-radius: 20px;
    margin-bottom: 12px;
}

.senda-eventos-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--se-text-main);
    letter-spacing: -0.5px;
}

.senda-eventos-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--se-text-muted);
}

/* Alertas */
.senda-eventos-alert {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--se-radius-sm);
    margin-bottom: 24px;
    animation: sendaFadeIn 0.3s ease;
}

.senda-alert-success {
    background-color: var(--se-success-bg);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.senda-alert-error {
    background-color: var(--se-error-bg);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.senda-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.senda-alert-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
}

.senda-alert-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.senda-alert-actions {
    margin-top: 14px;
}

.senda-btn-secondary {
    background: #ffffff;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.senda-btn-secondary:hover {
    background: #ecfdf5;
}

/* Grid del Formulario */
.senda-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 18px -10px;
}

.senda-form-group {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }

@media (max-width: 768px) {
    .senda-eventos-container {
        margin-top: 100px;
        padding: 0 12px;
    }
    .senda-eventos-card {
        padding: 20px 14px;
    }
    .senda-eventos-banner {
        margin-bottom: 16px;
    }
    .col-6 {
        width: 100%;
        margin-bottom: 14px;
    }
    .senda-form-row {
        margin-bottom: 0;
    }
}


/* Etiquetas y campos */
.senda-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--se-text-main);
    margin-bottom: 6px;
}

.senda-required {
    color: var(--se-error);
}

.senda-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.senda-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
    width: 18px;
    height: 18px;
}

.senda-input,
.senda-select,
.senda-textarea {
    width: 100%;
    font-size: 15px;
    color: var(--se-text-main);
    background: #ffffff;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius-sm);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.senda-input-wrapper .senda-input,
.senda-input-wrapper .senda-select {
    padding: 12px 14px 12px 46px !important;
}

.senda-textarea {
    padding: 12px 14px !important;
    resize: vertical;
    min-height: 80px;
}

.senda-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}


.senda-input:focus,
.senda-select:focus,
.senda-textarea:focus {
    border-color: var(--se-border-focus);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.senda-input.has-error,
.senda-select.has-error {
    border-color: var(--se-error);
    background-color: #fffbfa;
}

.senda-hint {
    font-size: 12px;
    color: var(--se-text-muted);
    margin-top: 4px;
}

.senda-error-msg {
    color: var(--se-error);
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.senda-error-msg.visible {
    display: block;
}

/* Divisor */
.senda-form-divider {
    text-align: center;
    position: relative;
    margin: 24px 0 20px 0;
}

.senda-form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.senda-form-divider span {
    position: relative;
    z-index: 2;
    background: var(--se-card-bg);
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stepper numérico para Adultos y Menores */
.senda-number-stepper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.senda-number-stepper:focus-within {
    border-color: var(--se-border-focus);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.senda-stepper-btn {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: none;
    color: var(--se-text-main);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.15s ease;
}

.senda-stepper-btn:hover {
    background: #e2e8f0;
}

.senda-input-number {
    border: none !important;
    text-align: center;
    padding: 10px !important;
    font-size: 17px !important;
    font-weight: 700;
    -moz-appearance: textfield;
}

.senda-input-number::-webkit-outer-spin-button,
.senda-input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Badge de Total de Asistentes */
.senda-total-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--se-radius-sm);
    padding: 12px 16px;
    margin: 4px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #166534;
    font-size: 14px;
}

.senda-total-label {
    font-weight: 600;
}

.senda-total-number {
    font-size: 18px;
    font-weight: 800;
    margin-right: 4px;
}

/* Checkbox personalizado */
.senda-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--se-text-main);
    line-height: 1.4;
    user-select: none;
}

.senda-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.senda-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--se-border);
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.senda-checkbox-label input:checked ~ .senda-checkbox-custom {
    background: var(--se-primary);
    border-color: var(--se-primary);
}

.senda-checkbox-label input:checked ~ .senda-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.senda-checkbox-text a {
    color: var(--se-primary);
    text-decoration: underline;
}

/* Aviso informativo de reserva y fianza */
.senda-disclaimer-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: var(--se-radius-sm);
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.senda-disclaimer-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

/* Botón Submit */
.senda-form-actions {
    margin-top: 24px;
}

.senda-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--se-primary) 0%, #0284c7 100%);
    color: #ffffff !important;
    border: none;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--se-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.senda-btn-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

.senda-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.senda-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
}

.senda-btn-text svg {
    stroke: #ffffff !important;
}


/* Spinner Animación */
.senda-spinner {
    animation: rotate 2s linear infinite;
}

.senda-spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

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