/**
 * Estilos frontend — página de venta del seminario.
 * Mobile first, totalmente responsive.
 *
 * @package AikidoSeminario
 */

/* ── Reset / base ─────────────────────────────────────────────────────────── */

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

.ast-wrap {
	font-family: inherit;
	color: #1d2327;
	max-width: 860px;
	margin: 0 auto;
}

/* ── Cabecera del evento ──────────────────────────────────────────────────── */

.ast-event-header {
	margin-bottom: 28px;
}

.ast-event-title {
	font-size: clamp( 22px, 4vw, 34px );
	font-weight: 700;
	margin: 0 0 14px;
	line-height: 1.2;
}

.ast-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
}

.ast-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: #50575e;
}

.ast-meta-start,
.ast-meta-end {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px;
	background: #f9f9f9;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
	min-width: 200px;
}

.ast-meta-label {
	font-size: 13px;
	font-weight: 600;
	color: #0073aa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ast-meta-value {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.ast-meta-time {
	font-size: 13px;
	color: #50575e;
	font-weight: 500;
}

/* ── Descripción ──────────────────────────────────────────────────────────── */

.ast-event-description {
	margin-bottom: 32px;
	line-height: 1.7;
}

/* ── Días (preview de precios) ────────────────────────────────────────────── */

.ast-days-preview {
	margin-bottom: 32px;
}

.ast-days-preview h3 {
	font-size: 18px;
	margin: 0 0 14px;
}

.ast-days-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 12px;
}

.ast-day-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 14px;
	background: #fff;
}

.ast-day-card--sold-out {
	opacity: 0.55;
}

.ast-day-card__label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

.ast-day-card__price {
	font-size: 18px;
	font-weight: 700;
	color: #0073aa;
}

.ast-day-card__capacity {
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

.ast-sold-out {
	color: #cc1818;
	font-weight: 600;
}

.ast-earlybird-badge {
	display: inline-block;
	background: #fff3cd;
	color: #856404;
	font-size: 11px;
	font-weight: 600;
	padding: 1px 7px;
	border-radius: 3px;
	margin-right: 4px;
	vertical-align: middle;
}

/* ── Formulario general ──────────────────────────────────────────────────── */

.ast-form-wrap h2 {
	font-size: 22px;
	margin: 0 0 20px;
}

.ast-section {
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid #e0e0e0;
}

.ast-section:last-of-type {
	border-bottom: none;
}

.ast-section h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 16px;
}

.ast-hint {
	color: #646970;
	font-size: 13px;
	margin-top: 8px;
}

/* ── Filas de campos 2 columnas ───────────────────────────────────────────── */

.ast-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 14px;
}

@media ( max-width: 600px ) {
	.ast-field-row {
		grid-template-columns: 1fr;
	}
}

.ast-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ast-field label {
	font-size: 14px;
	font-weight: 500;
}

.ast-field input[type="text"],
.ast-field input[type="email"] {
	border: 1px solid #8c8f94;
	border-radius: 4px;
	padding: 9px 12px;
	font-size: 15px;
	width: 100%;
	transition: border-color 0.15s;
}

.ast-field input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba( 0, 115, 170, 0.2 );
}

.ast-required {
	color: #cc1818;
	margin-left: 2px;
}

/* ── Asistente ────────────────────────────────────────────────────────────── */

.ast-attendee-block {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 16px;
}

.ast-attendee-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.ast-attendee-number {
	font-weight: 600;
	font-size: 15px;
}

/* ── Días checkboxes del asistente ────────────────────────────────────────── */

.ast-field--days {
	margin-top: 4px;
}

.ast-days-checkboxes {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 10px;
	margin-top: 8px;
}

@media ( max-width: 480px ) {
	.ast-days-checkboxes {
		grid-template-columns: repeat( 2, 1fr );
	}
}

.ast-day-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}

.ast-day-checkbox input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: #0073aa;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.ast-day-checkbox:has( input:checked ) {
	border-color: #0073aa;
	background: #e8f4ff;
}

.ast-day-checkbox--sold-out {
	opacity: 0.5;
	cursor: not-allowed;
}

.ast-day-checkbox--sold-out input {
	cursor: not-allowed;
}

.ast-day-checkbox__label {
	font-size: 13px;
	line-height: 1.4;
}

.ast-day-checkbox__price {
	font-weight: 700;
	color: #0073aa;
}

.ast-earlybird-tag {
	font-style: normal;
	font-size: 11px;
	background: #fff3cd;
	color: #856404;
	padding: 1px 5px;
	border-radius: 3px;
	margin-left: 4px;
}

.ast-attendee-subtotal {
	margin-top: 10px;
	font-size: 14px;
	text-align: right;
	color: #50575e;
}

.ast-attendee-subtotal-amount {
	font-weight: 700;
	color: #1d2327;
}

/* ── Total global ─────────────────────────────────────────────────────────── */

.ast-total-wrap {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
}

.ast-total-label {
	font-size: 17px;
	font-weight: 600;
}

.ast-total-amount {
	font-size: 26px;
	font-weight: 700;
	color: #0073aa;
}

/* ── Avisos ───────────────────────────────────────────────────────────────── */

.ast-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.ast-notice--no-refund {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #664d03;
}

.ast-notice--error {
	background: #fde8e8;
	border: 1px solid #f87171;
	color: #7f1d1d;
}

.ast-notice--blocked {
	background: #f0f0f1;
	border: 1px solid #8c8f94;
	color: #1d2327;
	font-size: 16px;
	text-align: center;
	padding: 24px;
}

/* ── Botones ──────────────────────────────────────────────────────────────── */

.ast-btn {
	display: inline-block;
	padding: 11px 24px;
	border-radius: 5px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
	text-decoration: none;
}

.ast-btn--primary {
	background: #0073aa;
	color: #fff;
	width: 100%;
	text-align: center;
	padding: 14px 24px;
	font-size: 17px;
}

.ast-btn--primary:hover {
	background: #005a8b;
	color: #fff;
}

.ast-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ast-btn--secondary {
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #8c8f94;
}

.ast-btn--secondary:hover {
	background: #e0e0e1;
}

.ast-btn--link {
	background: none;
	border: none;
	color: #cc1818;
	font-size: 13px;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
}

.ast-btn--link:hover {
	color: #8c1111;
}

/* ── Grilla de cupos por día ─────────────────────────────────────────────── */

.ast-cupos-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 14px;
	margin-bottom: 36px;
}

.ast-cupos-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 16px 16px;
	border-radius: 12px;
	border: 2px solid;
	gap: 4px;
}

.ast-cupos-card--available {
	background: #e8f5e9;
	border-color: #4caf50;
}

.ast-cupos-card--sold-out {
	background: #fde8e8;
	border-color: #cc1818;
}

.ast-cupos-card__number {
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	color: #2e7d32;
}

.ast-cupos-card--sold-out .ast-cupos-card__number {
	font-size: 36px;
}

.ast-cupos-card__label {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ast-cupos-card--sold-out .ast-cupos-card__label {
	color: #cc1818;
}

.ast-cupos-card__day {
	font-size: 13px;
	color: #50575e;
	margin-top: 6px;
	line-height: 1.4;
	font-style: italic;
}

@media ( max-width: 480px ) {
	.ast-cupos-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Opciones de pago (dos botones) ──────────────────────────────────────── */

.ast-payment-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.ast-btn--pay {
	padding: 16px 24px;
	font-size: 16px;
	text-align: center;
	border-radius: 8px;
	width: 100%;
}

.ast-btn--cash {
	background: #f0f0f1;
	color: #1d2327;
	border: 2px solid #8c8f94;
}

.ast-btn--cash:hover {
	background: #e0e0e1;
	color: #1d2327;
}

.ast-btn--cash:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Espaciado inferior ──────────────────────────────────────────────────── */

.ast-bottom-spacer {
	height: 64px;
}

/* ── Página de resultado / éxito ─────────────────────────────────────────── */

.ast-payment-result {
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 20px 80px;
	text-align: center;
}

.ast-payment-result .ast-result-icon {
	font-size: 72px;
	display: block;
	margin-bottom: 16px;
	line-height: 1;
}

/* Título principal — verde */
.ast-payment-result h2 {
	font-size: clamp( 24px, 5vw, 32px );
	font-weight: 800;
	margin: 0 0 12px;
	color: #1a7a3e;
}

.ast-result-intro {
	color: #50575e;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 32px;
}

/* Tarjeta de instrucciones */
.ast-result-card {
	border-radius: 14px;
	padding: 28px 32px;
	margin: 0 0 24px;
	text-align: left;
	border: 2px solid;
}

/* Tarjeta transferencia — borde verde suave */
.ast-result-card--transfer {
	background: #f0faf4;
	border-color: #4caf50;
}

/* Tarjeta efectivo — borde amarillo */
.ast-result-card--cash {
	background: #fffbea;
	border-color: #f0c040;
}

.ast-result-card h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1d2327;
}

/* Monto — label + valor azul grande */
.ast-result-amount {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	padding: 14px 18px;
	background: #e8f4ff;
	border: 1px solid #90caf9;
	border-radius: 8px;
}

.ast-result-amount__label {
	font-size: 15px;
	color: #1d4e89;
	font-weight: 600;
}

.ast-result-amount__value {
	font-size: 36px;
	font-weight: 800;
	color: #0057a8;
	letter-spacing: -1px;
}

/* Datos bancarios — caja amarilla */
.ast-bank-data {
	background: #fffbe6;
	border: 2px solid #f0c040;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 15px;
	line-height: 2;
	margin-bottom: 16px;
	font-weight: 500;
	color: #1d2327;
}

/* Glosa destacada */
.ast-result-highlight {
	background: #fff8e1;
	border: 1px solid #f0c040;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.7;
	margin-top: 4px;
}

/* RUT grande para copiar */
.ast-result-rut {
	display: inline-block;
	margin-top: 8px;
	font-size: 28px;
	font-weight: 900;
	color: #0057a8;
	letter-spacing: 2px;
	background: #e8f4ff;
	padding: 4px 16px;
	border-radius: 6px;
}

.ast-result-note {
	font-size: 13px;
	color: #646970;
	margin: 16px 0 0;
	font-style: italic;
}

