/* 4ª Sesión de Consejo Directivo Nacional · Noche de Gala CMIC 2026
   Paleta tomada de la app CMIC y del programa oficial: rojo CMIC, azul pizarra y dorado solo para la Gala. */

:root {
    --red: #d7182a;
    --red-dark: #b01020;
    --red-soft: #fdecee;
    --slate-900: #1e2835;
    --slate: #2e3b4e;
    --slate-600: #4a5a70;
    --gold: #b8892b;
    --gold-light: #e2c172;
    --gold-soft: #faf4e6;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e6e8ec;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --script: "Great Vibes", "Brush Script MT", cursive;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body > * { max-width: 640px; margin-inline: auto; }

a { color: var(--red); }
img { max-width: 100%; display: block; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Portada ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .09) 0%, transparent 55%),
        linear-gradient(165deg, var(--slate-900) 0%, var(--slate) 100%);
    padding: calc(28px + var(--safe-top)) 24px 30px;
    border-bottom: 3px solid var(--red);
}

/* Trazos arquitectónicos muy sutiles, en guiño a la industria de la construcción. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 34px);
    mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
    pointer-events: none;
}

.hero__inner { position: relative; text-align: center; }

.hero__logo {
    margin: 0 auto 22px;
    width: 104px;
    height: auto;
}

.hero__kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 2px;
}

.hero__script {
    font-family: var(--script);
    font-size: 54px;
    line-height: 1.1;
    margin: 0;
    padding: 0 8px;
    background: linear-gradient(100deg, #c9973a 0%, #f3dc9b 45%, #c9973a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .32em;
    margin: 2px 0 18px;
    padding-left: .32em;
}

.hero__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.hero__meta .icon { width: 15px; height: 15px; color: var(--gold-light); }

.hero__count {
    margin: 18px 0 0;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.hero__count strong {
    font-size: 15px;
    color: var(--gold-light);
    letter-spacing: 0;
}

.home { padding: 18px 16px 8px; }

.notice {
    display: grid;
    gap: 2px;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--red);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.notice__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}

.notice__title { font-weight: 600; line-height: 1.35; }

.notice__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
}

.notice__more .icon { width: 15px; height: 15px; }

.menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 118px;
    padding: 18px 10px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--slate);
    background: var(--card);
    border: 1px solid #eceef2;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease;
}

.tile:active { transform: scale(.97); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }

.tile__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
}

.tile__icon .icon { width: 24px; height: 24px; }

.tile__label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }

.tile--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 14px 16px;
    text-align: left;
    background: linear-gradient(120deg, var(--slate-900), var(--slate));
    border-color: transparent;
    color: #fff;
}

.tile--wide .tile__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.tile__text { display: grid; flex: 1; }
.tile__hint { font-size: 12px; color: rgba(255, 255, 255, .7); }
.tile__chevron { color: rgba(255, 255, 255, .6); }

.social { text-align: center; padding: 26px 0 6px; }

.social__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.social__list { display: flex; justify-content: center; gap: 14px; }

.social__list a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--slate);
    box-shadow: var(--shadow);
}

.social__list a:active { color: var(--red); }

/* ---------- Encabezado de sección ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(10px + var(--safe-top)) 12px 10px;
    background: var(--slate-900);
    color: #fff;
    border-bottom: 3px solid var(--red);
}

.topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, .1);
}

.topbar__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page { display: grid; gap: 14px; padding: 18px 16px 8px; }

/* ---------- Componentes ---------- */

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--slate);
    line-height: 1.3;
}

.icon--accent { color: var(--gold); }

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.eyebrow--light { color: var(--gold-light); }
.lead { font-size: 15.5px; font-weight: 500; color: var(--slate); }
.intro { color: var(--slate-600); margin: 2px 2px 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.prose p { color: #374151; }
.prose a { word-break: break-all; }

.updated {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}

.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { background: var(--card); color: var(--slate); border-color: #d6dae1; }
.btn--ghost { background: transparent; color: var(--slate-600); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn--block { width: 100%; }
.btn--small { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.btn--danger { background: #fff; color: var(--red); border-color: #f2c4c9; }
.btn .icon { width: 18px; height: 18px; }

.actions { display: grid; gap: 10px; margin-top: 4px; }

.checklist, .bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }

.checklist .icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    stroke-width: 2.4;
}

.bullets li {
    position: relative;
    padding-left: 18px;
    color: #374151;
    font-size: 14px;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.badge--gold { background: var(--gold-soft); color: #8a6417; }

.empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
}

.empty > .icon { width: 44px; height: 44px; color: #c3c8d0; stroke-width: 1.2; }
.empty__title { font-size: 20px; font-weight: 700; color: var(--slate); margin: 0; }
.empty--soon .empty__title { font-family: var(--script); font-weight: 400; font-size: 42px; color: var(--gold); }

/* Noticias */
.news__date { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.news--featured { border-top: 4px solid var(--red); }
.news .btn { margin-top: 14px; }

/* Precios */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.price {
    display: grid;
    gap: 2px;
    padding: 18px 14px;
    text-align: center;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price:first-child { border-top: 4px solid var(--red); }
.price:last-child { border-top: 4px solid var(--slate); }
.price__label { font-size: 12.5px; font-weight: 600; color: var(--slate-600); }
.price__amount { font-size: 28px; font-weight: 700; color: var(--slate); letter-spacing: -.01em; }
.price__note { font-size: 11.5px; color: var(--muted); }

/* Información */
.facts { display: grid; gap: 10px; }

.fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.fact .icon { width: 22px; height: 22px; color: var(--red); }
.fact span { display: grid; font-size: 13px; color: var(--muted); line-height: 1.35; }
.fact strong { font-size: 14.5px; color: var(--slate); }

.gala-card {
    padding: 20px 22px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(140deg, #8f6618 0%, #b8892b 55%, #d4ab57 100%);
    box-shadow: var(--shadow);
}

.gala-card__script { font-family: var(--script); font-size: 40px; line-height: 1; margin-bottom: 10px; }
.gala-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }

/* Programa */
.program-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.program-head__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--slate); }
.program-head__intro { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.day {
    overflow: hidden;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.day__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(100deg, var(--slate-900), var(--slate) 60%, var(--slate-600));
}

.day--rojo .day__head { background: linear-gradient(100deg, var(--red-dark), var(--red) 60%, #e5505d); }
.day--gris .day__head { background: linear-gradient(100deg, #4b5563, #6b7280); }
.day--gala .day__head { background: linear-gradient(120deg, #7d5813 0%, #b8892b 55%, #d4ab57 100%); align-items: center; }

.day__label { font-size: 16px; font-weight: 700; }
.day__script { font-family: var(--script); font-size: 34px; line-height: 1; white-space: nowrap; }
.day__date { font-size: 13px; font-weight: 500; opacity: .9; text-align: right; }

.timeline { list-style: none; margin: 0; padding: 4px 18px; }

.timeline__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.timeline__item:last-child { border-bottom: 0; }

.timeline__time {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-600);
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

.day--rojo .timeline__time { color: var(--red); }
.day--gala .timeline__time { color: #8a6417; }

.timeline__body { display: grid; gap: 2px; }
.timeline__title { font-weight: 600; color: var(--slate); line-height: 1.35; }
.timeline__detail { font-size: 13px; color: var(--muted); }

.timeline__place {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

.timeline__place .icon { width: 13px; height: 13px; }

.day__notes {
    list-style: none;
    margin: 0;
    padding: 12px 18px;
    display: grid;
    gap: 6px;
    background: #f8f9fb;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--slate-600);
}

.day--gala .day__notes { background: var(--gold-soft); color: #6f5212; }
.day__notes li { display: flex; gap: 8px; align-items: flex-start; }
.day__notes .icon { width: 15px; height: 15px; margin-top: 2px; opacity: .8; }

/* Sede y hospedaje */
.venue {
    padding: 22px 20px;
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(100% 80% at 100% 0%, rgba(255, 255, 255, .1), transparent 60%),
        linear-gradient(160deg, var(--slate-900), var(--slate));
    box-shadow: var(--shadow);
}

.venue__name { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; }
.venue__city { color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.venue__address { display: flex; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.venue__address .icon { color: var(--gold-light); width: 18px; height: 18px; margin-top: 2px; }
.venue__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.contact-row .icon { color: var(--red); }
.contact-row span { display: grid; line-height: 1.3; }
.contact-row strong { font-size: 16px; color: var(--slate); }

.code {
    display: grid;
    gap: 2px;
    margin: 10px 0;
    padding: 10px 14px;
    border: 1px dashed #e0b7bc;
    border-radius: 12px;
    background: #fff8f8;
}

.code__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.code__label .icon { width: 14px; height: 14px; }
.code__value { font-weight: 700; color: var(--red-dark); letter-spacing: .03em; }

.person + .person { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.person__name { font-weight: 600; color: var(--slate); margin: 0; }
.person__name span { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.person .contact-row { padding: 6px 0; font-size: 13.5px; }

.hotel--venue { border-top: 4px solid var(--gold); }
.hotel__address { display: flex; gap: 8px; font-size: 13.5px; color: var(--slate-600); }
.hotel__address .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.hotel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fafbfc;
    color: var(--slate);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.chip .icon { width: 15px; height: 15px; color: var(--red); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery__item { aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #e5e7eb; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(10, 14, 20, .96);
    color: #fff;
}

.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(10, 14, 20, .96); }
.lightbox img { max-width: 100%; max-height: 82dvh; object-fit: contain; align-self: center; }
.lightbox__caption { padding: 10px 20px calc(18px + var(--safe-bottom)); text-align: center; font-size: 14px; }

.lightbox__close {
    position: absolute;
    top: calc(12px + var(--safe-top));
    right: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* Patrocinadores */
.sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.sponsor {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sponsor img { max-height: 100%; width: auto; object-fit: contain; }

/* Formularios */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--slate); }

.field input, .field textarea, .field select {
    width: 100%;
    font: inherit;
    font-size: 16px; /* evita el zoom automático de iOS */
    color: var(--text);
    padding: 11px 13px;
    border: 1px solid #d6dae1;
    border-radius: 10px;
    background: #fff;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--slate-600);
    box-shadow: 0 0 0 3px rgba(46, 59, 78, .12);
}

.field textarea { resize: vertical; min-height: 120px; }
.field .input-validation-error { border-color: var(--red); }
.field__error { font-size: 12.5px; color: var(--red); }
.field__error:empty { display: none; }
.field__hint { font-size: 12px; color: var(--muted); }

.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px;
    border-radius: 12px;
    background: #eef0f3;
}

.segmented__option { position: relative; }
.segmented__option input { position: absolute; opacity: 0; inset: 0; }

.segmented__option span {
    display: block;
    padding: 8px 4px;
    border-radius: 9px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
}

.segmented__option input:checked + span { background: #fff; color: var(--red); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.segmented__option input:focus-visible + span { outline: 2px solid var(--slate-600); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 32px 22px; }

.success__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #e8f6ee;
    color: #18864b;
}

.success__icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.success .btn { margin-top: 12px; }

/* Pie */
.footer {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 26px 16px calc(26px + var(--safe-bottom));
    color: var(--muted);
    font-size: 11.5px;
    text-align: center;
}

.footer__logo { width: 64px; height: auto; opacity: .85; }

@media (min-width: 560px) {
    .menu { grid-template-columns: repeat(4, 1fr); }
    .tile--wide { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
