* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #25313f;
    background: #f5f7fb;
}

a {
    color: inherit;
    text-decoration: none;
}

.cabecera {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 6vw;
    background: #ffffff;
    border-bottom: 1px solid #dfe5ee;
}

.marca {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #0f766e;
    white-space: nowrap;
}

.marca img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    font-weight: 700;
}

.menu a:hover,
.texto-apoyo a:hover,
.enlace:hover {
    color: #0f766e;
}

.acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.usuario-activo {
    color: #25313f;
    font-weight: 800;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.boton-principal {
    color: #ffffff;
    background: #0f766e;
}

.boton-secundario {
    color: #0f766e;
    background: #e0f2f1;
}

.hero {
    min-height: 420px;
    display: grid;
    align-items: center;
    padding: 64px 6vw;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(14, 49, 64, 0.88), rgba(14, 49, 64, 0.32)),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.hero-contenido {
    max-width: 690px;
}

.hero h1,
.formulario h1 {
    margin: 8px 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
}

.hero p {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.65;
}

.etiqueta {
    margin: 0;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .etiqueta {
    color: #99f6e4;
}

.seccion {
    padding: 64px 6vw;
}

.modalidad-hero {
    min-height: 300px;
    display: grid;
    align-items: center;
    padding: 56px 6vw;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(37, 49, 63, 0.9), rgba(15, 118, 110, 0.56)),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.modalidad-hero div {
    max-width: 760px;
}

.modalidad-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.modalidad-hero p {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.6;
}

.modalidad-hero .etiqueta {
    color: #99f6e4;
}

.detalle-hero {
    min-height: 360px;
    display: grid;
    align-items: center;
    padding: 64px 6vw;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(37, 49, 63, 0.48)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.detalle-hero div {
    max-width: 760px;
}

.detalle-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.detalle-hero p {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.6;
}

.detalle-hero .etiqueta {
    color: #ccfbf1;
}

.detalle-resumen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.detalle-resumen span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #0f766e;
    background: #ffffff;
    font-weight: 900;
}

.detalle-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.detalle-principal,
.detalle-lateral {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(33, 47, 63, 0.08);
}

.detalle-principal h2,
.detalle-lateral h2 {
    margin: 8px 0 14px;
    color: #25313f;
}

.detalle-principal h3 {
    margin: 26px 0 12px;
    color: #0f766e;
}

.detalle-principal p {
    line-height: 1.65;
}

.lista-detalle {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    line-height: 1.55;
}

.detalle-lateral .boton {
    width: 100%;
    margin-top: 24px;
}

.seccion-titulo {
    max-width: 720px;
    margin-bottom: 28px;
}

.seccion-titulo h2 {
    margin: 8px 0 0;
    font-size: 34px;
}

.grid-viajes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tarjeta-viaje {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(33, 47, 63, 0.08);
}

.tarjeta-viaje span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 900;
}

.tarjeta-viaje h3 {
    margin: 0;
    font-size: 24px;
}

.tarjeta-viaje p {
    margin: 0;
    line-height: 1.55;
}

.datos-viaje {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.enlace {
    color: #0f766e;
    font-weight: 900;
}

.formulario-pagina {
    min-height: calc(100vh - 143px);
    display: grid;
    place-items: center;
    padding: 56px 6vw;
}

.formulario {
    width: min(100%, 460px);
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(33, 47, 63, 0.08);
}

.panel-cuenta {
    width: min(100%, 560px);
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(33, 47, 63, 0.08);
}

.formulario h1 {
    color: #25313f;
    font-size: 36px;
}

.panel-cuenta h1 {
    margin: 8px 0 12px;
    color: #25313f;
    font-size: 36px;
}

.panel-cuenta p {
    line-height: 1.55;
}

.datos-cuenta {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.datos-cuenta div {
    padding-bottom: 12px;
    border-bottom: 1px solid #dde5ef;
}

.datos-cuenta dt {
    margin-bottom: 4px;
    color: #64748b;
    font-weight: 800;
}

.datos-cuenta dd {
    margin: 0;
    font-weight: 900;
}

.formulario label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 800;
}

.formulario input,
.formulario select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b8c4d3;
    border-radius: 6px;
    font: inherit;
}

.formulario button {
    width: 100%;
    margin-top: 22px;
}

.mensaje {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.4;
}

.mensaje-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.mensaje-exito {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.texto-apoyo {
    margin: 18px 0 0;
    text-align: center;
}

.texto-apoyo a {
    color: #0f766e;
    font-weight: 900;
}

.pie {
    padding: 24px 6vw;
    color: #ffffff;
    background: #25313f;
    text-align: center;
}

@media (max-width: 900px) {
    .cabecera {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu {
        justify-content: flex-start;
    }

    .detalle-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .marca {
        font-size: 20px;
    }

    .marca img {
        width: 54px;
        height: 54px;
    }

    .acciones,
    .boton {
        width: 100%;
    }

    .acciones {
        flex-direction: column;
    }

    .hero,
    .detalle-hero,
    .seccion,
    .formulario-pagina {
        padding-left: 20px;
        padding-right: 20px;
    }
}
