/* Tema y componentes propios de la demo "Traslados Cielo Azul" (traslados del aeropuerto) */

body.demo {
    --d-primary: #0c4a6e;
    --d-accent:  #0ea5e9;
    --d-soft:    #f0f9ff;
    --d-line:    #dbe7ef;
}

/* Texto blanco sobre #0ea5e9 no alcanza a leerse bien: los botones usan un azul más oscuro */
.d-btn--primary { background: #0369a1; }

/* Portada */
.tras-hero {
    color: #fff;
    padding: 110px 0 100px;
    background:
        radial-gradient(circle at 85% 15%, rgba(125,211,252,0.35) 0, rgba(125,211,252,0) 40%),
        radial-gradient(circle at 75% 95%, rgba(14,165,233,0.40) 0, rgba(14,165,233,0) 45%),
        linear-gradient(120deg, #082f49 0%, #0c4a6e 55%, #075985 100%);
}
.tras-hero__kicker { color: #7dd3fc; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 14px; }
.tras-hero h1 { font-size: 2.8rem; line-height: 1.15; max-width: 640px; margin-bottom: 16px; }
.tras-hero p  { max-width: 560px; color: #e0f2fe; font-size: 1.1rem; margin-bottom: 28px; }
.tras-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tras-hero .d-btn--light { color: var(--d-primary); }

/* Cómo funciona */
.tras-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.tras-steps__item { text-align: center; padding: 10px; }
.tras-steps__num {
    width: 54px; height: 54px; margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--d-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
}
.tras-steps__item h3 { color: var(--d-primary); margin-bottom: 4px; }
.tras-steps__item p  { color: var(--d-muted); font-size: 0.95rem; }

/* Vehículos */
.tras-vehicles { max-width: 760px; margin: 0 auto; }
.tras-vehicle__pax {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--d-soft);
    color: var(--d-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Tabla de precios */
.tras-table-wrap { overflow-x: auto; max-width: 860px; margin: 0 auto; border: 1px solid var(--d-line); border-radius: var(--d-radius); background: #fff; }
.tras-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.tras-table th, .tras-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.tras-table th:first-child, .tras-table td:first-child { text-align: left; }
.tras-table thead th { background: var(--d-primary); color: #fff; font-weight: 600; }
.tras-table thead small { display: block; font-weight: 400; color: #bae6fd; font-size: 0.75rem; }
.tras-table tbody tr:last-child td { border-bottom: 0; }
.tras-table tbody tr:nth-child(even) { background: var(--d-soft); }
.tras-table td:first-child { font-weight: 600; color: var(--d-primary); }
.tras-note { text-align: center; color: var(--d-muted); font-size: 0.85rem; margin-top: 12px; }

/* Formulario */
.tras-form { max-width: 620px; }
.tras-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Tipo de traslado (tarjetas con radio, sin JS) */
.tras-tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-field .tras-tipo { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.d-field .tras-tipo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tras-tipo__box {
    display: block;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #cdd3dc;
    border-radius: 8px;
    background: #fff;
}
.tras-tipo__name { display: block; font-weight: 700; font-size: 0.95rem; }
.tras-tipo__ruta { display: block; font-size: 0.8rem; color: var(--d-muted); }
.tras-tipo:hover .tras-tipo__box { border-color: var(--d-accent); }
.tras-tipo input:checked + .tras-tipo__box { border: 2px solid var(--d-accent); background: var(--d-soft); padding: 9px 11px; }
.tras-tipo input:focus-visible + .tras-tipo__box { outline: 2px solid var(--d-primary); outline-offset: 2px; }

/* Regreso (solo viaje redondo; sin JS siempre visible) */
.tras-regreso { border: 1px dashed var(--d-line); border-radius: 10px; padding: 14px 14px 0; margin-bottom: 16px; background: var(--d-soft); }
.tras-regreso[hidden] { display: none; }
.tras-regreso__title { font-weight: 700; color: var(--d-primary); margin-bottom: 10px; }
.tras-regreso__title small { font-weight: 400; color: var(--d-muted); }

/* Precio estimado en vivo */
.tras-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 6px 0 18px;
    padding: 14px 18px;
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-left: 5px solid var(--d-accent);
    border-radius: 10px;
}
.tras-price[hidden] { display: none; }
.tras-price__label  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--d-muted); width: 100%; }
.tras-price__amount { font-size: 1.6rem; color: var(--d-primary); }
.tras-price__vehicle { color: var(--d-muted); font-weight: 600; }

/* Confirmación de la reserva */
.tras-confirm {
    max-width: 620px;
    margin: 0 auto 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 20px;
    background: #fff;
    border: 1px solid var(--d-line);
    border-left: 5px solid var(--d-accent);
    border-radius: var(--d-radius);
    padding: 20px 24px;
}
.tras-confirm span   { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--d-muted); }
.tras-confirm strong { color: var(--d-primary); }
.tras-confirm__folio { grid-column: 1 / -1; border-bottom: 1px dashed var(--d-line); padding-bottom: 10px; }
.tras-confirm__folio strong { font-size: 1.3rem; letter-spacing: 0.05em; }
.tras-confirm__precio strong { font-size: 1.15rem; }
.tras-email-btn { margin-top: 14px; }

/* Pie de la empresa */
.tras-footer { background: var(--d-primary); color: #bae6fd; text-align: center; padding: 26px 20px; font-size: 0.9rem; }

@media (max-width: 768px) {
    .tras-hero { padding: 70px 0 64px; }
    .tras-hero h1 { font-size: 2.1rem; }
    .tras-confirm { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .tras-hero h1 { font-size: 1.8rem; }
    .tras-tipos { grid-template-columns: 1fr; }
    .tras-row { grid-template-columns: 1fr; }
    .tras-confirm { grid-template-columns: 1fr; padding: 18px; }
}
