/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f0f3;
    color: #1a1a1a;
    min-height: 100vh;
    line-height: 1.5;
}

/* ── LAYOUT ── */
.container { width: 95%; max-width: 1600px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 460px; margin: 0 auto; padding: 0 16px; }
.page-wrap { padding: 32px 0 60px; }

/* ── HEADER PÚBLICO ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .inner {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-logo {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -.02em;
}
.site-logo img { max-height: 40px; max-width: 160px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { font-size: 14px; color: #555; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #1a1a1a; }
.nav-links .btn-sm { background: #1a1a1a; color: #fff !important; padding: 7px 16px; border-radius: 8px; font-size: 13px; }

/* ── TARJETAS ── */
.card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e4e4e8;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    margin-bottom: 16px;
}
.card-title {
    font-size: 11px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

/* ── FORMULARIOS ── */
.field { margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: #777; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=password],
.field input[type=number],
.field input[type=date],
.field select,
.field textarea {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,.07);
}
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 11px; color: #aaa; margin-top: 4px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* ── BOTONES ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    letter-spacing: -.01em;
    font-family: inherit;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-outline {
    background: transparent;
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #c0392b; }
.btn-success { background: #1a7a3a; }

/* ── ALERTAS ── */
.alert {
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-error { background: #fff1f0; border: 1.5px solid #fcc; color: #c0392b; }
.alert-success { background: #e6f9ee; border: 1.5px solid #b7e4c7; color: #1a7a3a; }
.alert-info { background: #f0f4ff; border: 1.5px solid #c5d3f0; color: #1a3a7a; }
.alert-warning { background: #fffbeb; border: 1.5px solid #f0d98a; color: #8a6a00; }

/* ── BADGES ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green { background: #e6f9ee; color: #1a7a3a; }
.badge-orange { background: #fffbeb; color: #8a5a00; }
.badge-red { background: #fff1f0; color: #c0392b; }
.badge-gray { background: #f0f0f0; color: #666; }
.badge-blue { background: #f0f4ff; color: #1a3a7a; }

/* ── EVENTOS GRID ── */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.evento-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e4e4e8;
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.evento-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-2px); }
.evento-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.evento-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.evento-card-nombre { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.evento-card-meta { font-size: 13px; color: #888; margin-bottom: 12px; }
.evento-card-meta span { margin-right: 12px; }
.evento-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.evento-precio { font-size: 18px; font-weight: 800; color: #1a1a1a; letter-spacing: -.02em; }
.evento-precio-gratis { color: #1a7a3a; }

/* ── INSCRIPCIÓN FORM ── */
.asistente-block {
    border: 1.5px solid #e4e4e8;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
}
.asistente-block .asistente-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.asistente-block.titular { border-color: #1a1a1a; background: #fafafa; }
.asistente-block.titular .asistente-label { color: #1a1a1a; }

/* ── MÉTODOS DE PAGO ── */
.metodo-pago-list { display: flex; flex-direction: column; gap: 10px; }
.metodo-pago-opt {
    border: 1.5px solid #e4e4e8;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .15s, background .15s;
}
.metodo-pago-opt:hover { border-color: #aaa; background: #fafafa; }
.metodo-pago-opt.selected { border-color: #1a1a1a; background: #fafafa; box-shadow: 0 0 0 1px #1a1a1a; }
.metodo-pago-opt input[type=radio] { display: none; }
.metodo-pago-icon { font-size: 22px; width: 32px; text-align: center; }
.metodo-pago-info .nombre { font-size: 14px; font-weight: 600; }
.metodo-pago-info .desc { font-size: 12px; color: #888; margin-top: 2px; }

/* ── MI CUENTA ── */
.inscripcion-row {
    border: 1px solid #e4e4e8;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.inscripcion-info { flex: 1; min-width: 200px; }
.inscripcion-evento { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.inscripcion-meta { font-size: 13px; color: #888; }
.inscripcion-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-fade { animation: fadeUp .3s ease both; }

/* ── PÁGINA DE EVENTO (a página completa) ── */
.evento-hero {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.evento-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.evento-detail-sidebar { position: sticky; top: 88px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .evento-detail-grid { grid-template-columns: 1fr; }
    .evento-detail-sidebar { position: static; }
}
@media (max-width: 600px) {
    .field-row { flex-direction: column; }
    .eventos-grid { grid-template-columns: 1fr; }
    .inscripcion-row { flex-direction: column; align-items: flex-start; }
    .evento-hero { height: 220px; }
}
