/* Movimientos Canarias — estilos */

:root {
    --bg: #1C1C1E;
    --bg-2: #262628;
    --card: #28282B;
    --card-2: #323236;
    --border: #38383C;
    --border-2: #4A4A4F;
    --text: #ededed;
    --text-strong: #ffffff;
    --muted: #a3a3a3;
    --yellow: #91CDFC;
    --yellow-2: #b5ddfd;
    --yellow-3: #5fb3f5;
    --cyan: #91CDFC;
    --cyan-2: #91CDFC;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, .12);
    --ok: #009538;
    --ok-bg: rgba(0, 149, 56, .16);
    --info-bg: rgba(145, 205, 252, .1);
    --warn-bg: rgba(255, 206, 53, .1);
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.15; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.02; color: var(--text-strong); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 1.05em; height: 1.05em; flex-shrink: 0; vertical-align: -.15em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 1.5rem; padding-bottom: 3rem; }

/* ---------- Cabecera ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 28, 30, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav-button {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .8rem; border-radius: var(--radius-sm);
    color: var(--text); font: inherit; font-size: .95rem;
}
.nav a:hover, .nav-button:hover { background: var(--bg-2); text-decoration: none; }
.nav a.active { color: var(--yellow); background: rgba(145, 205, 252, .08); }
.nav a.btn { color: #0A0A0A; margin-left: .4rem; }
.nav a.btn:hover { background: var(--yellow-2); }
.nav-button { background: none; border: 0; cursor: pointer; }
.nav-user span { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a, .nav-button { padding: .8rem .6rem; width: 100%; text-align: left; }
    .nav form { display: block; }
    .nav a.btn { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .65rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
    cursor: pointer; text-decoration: none; line-height: 1.2;
    transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: #0A0A0A; }
.btn-primary:hover { background: var(--yellow-2); }
.btn-secondary { background: var(--card-2); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: #2f3b4f; border-color: #6b7280; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-cyan { background: var(--yellow); color: #0A0A0A; }
.btn-cyan:hover { background: var(--yellow-2); }
.btn-danger { background: transparent; color: #fca5a5; border-color: rgba(239, 68, 68, .5); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Avisos ---------- */

.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid; }
.alert a { text-decoration: underline; }
.alert-success { background: var(--ok-bg); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert-error { background: var(--danger-bg); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.alert-info { background: var(--info-bg); border-color: rgba(145, 205, 252, .4); color: #dbeefe; }
.alert-warning { background: var(--warn-bg); border-color: rgba(255, 206, 53, .45); color: #ffe8a3; }

/* ---------- Estructura ---------- */

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head p { margin: 0; }
.section { margin-top: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head h2, .section-title { display: flex; align-items: center; gap: .5rem; color: var(--yellow); margin: 0 0 1rem; font-size: 1.35rem; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
.back-link:hover { color: var(--text); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.stack { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.stack-sm { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.narrow { max-width: 720px; }

.home-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 900px) { .home-columns { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.empty { color: var(--muted); padding: 1.5rem; border: 1px dashed var(--border-2); border-radius: var(--radius); text-align: center; }
.empty-page { text-align: center; padding: 4rem 1rem; }

/* ---------- Tarjetas ---------- */

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card-link { display: block; color: inherit; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.badge {
    display: inline-block; padding: .18rem .6rem; border-radius: 999px;
    font-size: .76rem; font-weight: 600; letter-spacing: .01em;
    background: #374151; color: #e5e7eb; white-space: nowrap;
}
.badge-isla { background: rgba(145, 205, 252, .14); color: var(--yellow); border: 1px solid rgba(145, 205, 252, .45); }
.badge-tipo { background: transparent; color: #e5e5e5; border: 1px solid #3a3a3a; }
.amb-vecinal { background: #1d4ed8; color: #dbeafe; }
.amb-salud { background: #b91c1c; color: #fee2e2; }
.amb-insercion { background: #15803d; color: #dcfce7; }
.amb-politico { background: #7e22ce; color: #f3e8ff; }
.amb-educacion { background: #a16207; color: #fef9c3; }
.amb-deportivo { background: #c2410c; color: #ffedd5; }
.amb-ecologia { background: #047857; color: #d1fae5; }
.amb-feminismo { background: #be185d; color: #fce7f3; }
.amb-institucional { background: #4338ca; color: #e0e7ff; }
.amb-intervencion { background: #0f766e; color: #ccfbf1; }
.estado-pendiente { background: rgba(255, 206, 53, .14); color: #ffd966; }
.estado-validado { background: var(--ok-bg); color: #86efac; }
.estado-rechazado { background: var(--danger-bg); color: #fca5a5; }

.meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: .15rem 0; }

.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--card-2); }
.avatar-inicial {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--yellow);
    color: #fff; font-weight: 700; font-size: 1.2rem;
}
.avatar-sm { width: 34px; height: 34px; font-size: .95rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 2.6rem; }

/* Evento */
.event-card { padding: 0; overflow: hidden; transition: border-color .15s, transform .15s; }
.event-card:hover { border-color: rgba(145, 205, 252, .55); transform: translateY(-2px); }
.event-card.is-past { opacity: .7; }
.event-img { width: 100%; height: 170px; object-fit: cover; }
.event-body { display: flex; gap: 1rem; padding: 1.1rem; }
.event-info { min-width: 0; }
.event-info h3 { margin-bottom: .2rem; overflow-wrap: anywhere; }
.event-info .muted { margin-bottom: .4rem; }
.date-block {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 56px; height: 62px; border-radius: 11px;
    background: var(--yellow); color: #0A0A0A;
}
.date-d { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.date-m { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* Publicación */
.pub-card { padding: 1.1rem 1.25rem; }
.pub-head time { white-space: nowrap; flex-shrink: 0; }
.pub-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.pub-author { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--yellow); min-width: 0; }
.pub-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-text { white-space: normal; overflow-wrap: anywhere; }
.pub-img { margin-top: .9rem; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); }

/* Colectivo */
.colectivo-card { transition: border-color .15s, transform .15s; }
.colectivo-card:hover { border-color: rgba(145, 205, 252, .55); transform: translateY(-2px); }
.colectivo-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .3rem; }
.colectivo-head h3 { margin: 0 0 .15rem; }
.colectivo-card p.small { margin: .5rem 0 0; }

.insta-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; color: var(--text); }
.insta-link:hover { border-color: rgba(145, 205, 252, .55); text-decoration: none; }
.insta-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-card { margin-top: 1.25rem; background: rgba(145, 205, 252, .08); border-color: rgba(145, 205, 252, .35); }

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

.hero {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 2rem;
    border-radius: 20px; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
    background: var(--bg-2); border: 1px solid var(--border);
}
.hero-title { font-size: clamp(2.6rem, 8vw, 5rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 1.25rem; color: #fff; }
.hero-title .t1 { display: block; font-weight: 400; }
.hero-title .t2 { display: block; font-weight: 800; color: var(--yellow); }
.hero-symbol { width: 100%; max-width: 300px; justify-self: center; }
@media (max-width: 700px) {
    .hero { grid-template-columns: 1fr; }
    .hero-symbol { max-width: 150px; justify-self: start; grid-row: 1; }
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #d4d4d4; margin: 0; max-width: 34ch; }

.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 640px) { .home-cards { grid-template-columns: 1fr; } }
.home-card {
    display: block; padding: 1.75rem; border-radius: var(--radius); color: #fff;
    transition: transform .15s, box-shadow .15s;
}
.home-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.home-card-cal { background: var(--yellow); color: #0A0A0A; }
.home-card-col { background: var(--card); color: var(--text-strong); border: 1px solid var(--yellow); }
.home-card h2 { color: inherit; font-size: 1.8rem; font-weight: 800; margin: .9rem 0 .2rem; letter-spacing: -.01em; }
.home-card p { margin: 0 0 .9rem; opacity: .92; }
.home-card-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 10, 10, .12); display: flex; align-items: center; justify-content: center; }
.home-card-icon .icon { width: 26px; height: 26px; }
.home-card-stat { display: inline-block; font-size: .85rem; font-weight: 700; background: rgba(10, 10, 10, .14); padding: .25rem .7rem; border-radius: 999px; }

/* ---------- Filtros ---------- */

.island-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.island-filter a {
    padding: .45rem .95rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
    color: var(--text); background: var(--card); border: 1px solid var(--border-2);
}
.island-filter a:hover { border-color: var(--yellow); text-decoration: none; }
.island-filter a.active { background: var(--yellow); border-color: var(--yellow); color: #0A0A0A; }

.toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-form { display: flex; gap: .75rem; flex-wrap: wrap; flex: 1; align-items: center; }
.filter-form select { width: auto; min-width: 190px; }
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input[type="search"] { padding-left: 2.4rem; }
.filter-note { margin-top: -.25rem; }

.segmented { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.segmented a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 7px; color: var(--text); font-size: .92rem; }
.segmented a:hover { text-decoration: none; background: rgba(255, 255, 255, .05); }
.segmented a.active { background: var(--yellow); color: #0A0A0A; }

@media (max-width: 640px) {
    .filter-form select { flex: 1; min-width: 0; }
    .segmented { width: 100%; }
    .segmented a { flex: 1; justify-content: center; }
}

/* ---------- Calendario mensual ---------- */

.month-nav { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.month-nav h2 { margin: 0 .4rem; min-width: 9ch; text-align: center; color: var(--text-strong); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: .3rem 0; text-transform: uppercase; }
.cal-day {
    min-height: 112px; background: var(--card); border: 1px solid var(--border); border-radius: 8px;
    padding: .35rem; display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.cal-day.is-other { opacity: .4; }
.cal-day.is-today { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.cal-num { font-size: .85rem; font-weight: 700; color: var(--muted); }
.is-today .cal-num { color: var(--yellow); }
.cal-event {
    display: flex; gap: .3rem; font-size: .75rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 5px;
    background: rgba(145, 205, 252, .14); color: #dbeefe; border-left: 3px solid var(--yellow); min-width: 0;
}
.cal-event:hover { background: rgba(145, 205, 252, .28); text-decoration: none; }
.cal-event.tipo-manifestacion { background: rgba(239, 68, 68, .16); color: #fecaca; border-color: #ef4444; }
.cal-event.tipo-charla, .cal-event.tipo-formacion { background: rgba(255, 206, 53, .12); color: #ffe8a3; border-color: #FFCE35; }
.cal-event.tipo-encuentro { background: rgba(0, 149, 56, .18); color: #c9f2d8; border-color: #009538; }
.cal-event.tipo-concierto { background: rgba(192, 132, 252, .16); color: #f3e8ff; border-color: #c084fc; }
.cal-time { font-weight: 700; flex-shrink: 0; }
.cal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: .72rem; color: var(--muted); padding-left: .3rem; }
.cal-dots { display: none; }

@media (max-width: 760px) {
    .cal { gap: 2px; }
    .cal-day { min-height: 54px; align-items: center; padding: .3rem .1rem; border-radius: 6px; }
    .cal-event, .cal-more { display: none; }
    .cal-dots { display: flex; gap: 3px; margin-top: auto; }
    .cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
    .cal-dow { font-size: .7rem; }
}

.past-events summary { cursor: pointer; list-style: none; }
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary::before { content: "▸"; margin-right: .2rem; transition: transform .15s; display: inline-block; }
.past-events[open] summary::before { transform: rotate(90deg); }

/* ---------- Detalle de evento y ficha ---------- */

.detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 860px; }
.detail-img { width: 100%; max-height: 460px; object-fit: cover; }
.detail-body { padding: clamp(1.25rem, 4vw, 2.25rem); }
.detail h1 { margin: .4rem 0 1rem; color: var(--text-strong); }
.organizer { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); margin-bottom: 1.25rem; }
.organizer strong { color: var(--yellow); }
.facts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.facts li { display: flex; gap: .6rem; align-items: flex-start; }
.facts .icon { margin-top: .2rem; color: var(--yellow); }
.prose { overflow-wrap: anywhere; margin-bottom: 1.5rem; color: #d4d4d4; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.owner-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.profile { padding: clamp(1.25rem, 4vw, 2rem); }
.profile-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.profile-head h1 { margin-bottom: .3rem; }
.profile-head h2 { margin-bottom: .4rem; }
.contact-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-list a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem;
    background: var(--card-2); border: 1px solid var(--border-2); border-radius: 999px; color: var(--text); font-size: .92rem;
}
.contact-list a:hover { border-color: var(--yellow); text-decoration: none; }

@media (max-width: 560px) {
    .profile-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Formularios ---------- */

.form-page { max-width: 860px; }
.form-page.narrow { max-width: 680px; }
.form { padding: clamp(1.25rem, 4vw, 2rem); }
.form h2 { margin-bottom: 1rem; }
.form + .form { margin-top: 1.25rem; }
.form-section { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.form-section legend { font-size: 1.15rem; font-weight: 700; color: var(--yellow); margin-bottom: .75rem; padding: 0; }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
label, .label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"],
input[type="datetime-local"], input:not([type]), select, textarea {
    width: 100%; padding: .65rem .8rem; font: inherit; font-size: 1rem;
    color: var(--text-strong); background: #1F1F22; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(145, 205, 252, .2); }
input::placeholder, textarea::placeholder { color: #6b7280; }
input[type="datetime-local"] { color-scheme: dark; }
select { color-scheme: dark; }
textarea { resize: vertical; }
input[type="file"] { font: inherit; font-size: .9rem; color: var(--muted); max-width: 100%; }
input[type="file"]::file-selector-button {
    font: inherit; font-weight: 600; margin-right: .75rem; padding: .5rem .9rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-2); background: var(--card-2); color: var(--text); cursor: pointer;
}
.check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; margin: .45rem 0 0; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--yellow-2); flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .1rem 1rem; }
.help { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.help.is-over { color: #fca5a5; }
.field-error { color: #fca5a5; font-size: .88rem; margin: .35rem 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.image-field { display: flex; gap: 1rem; align-items: flex-start; }
.image-field > div { min-width: 0; flex: 1; }
.image-field input[type="file"] { width: 100%; }
.image-preview { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-2); }

.auth-page { max-width: 440px; margin: 2rem auto; }
.auth-page h1 { font-size: 1.6rem; }
.auth-links { margin: 1.25rem 0 0; text-align: center; font-size: .92rem; color: var(--muted); line-height: 1.9; }

.danger-zone { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px dashed rgba(239, 68, 68, .45); border-radius: var(--radius); }
.danger-card { border-color: rgba(239, 68, 68, .35); }

/* ---------- Panel y administración ---------- */

.panel-colectivo .alert { margin-bottom: 1.25rem; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.empty-card { text-align: center; padding: 2.5rem 1.5rem; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--yellow); color: #0A0A0A; font-size: .78rem; text-align: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: rgba(0, 0, 0, .15); }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-past td { opacity: .65; }
.row-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }

.review-card .prose { margin-bottom: 1rem; }
.review-data { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .92rem; margin: 0 0 1.25rem; }
.review-data dt { color: var(--muted); }
.review-data dd { margin: 0; overflow-wrap: anywhere; }
.review-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-start; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject-form { margin-top: .75rem; display: grid; gap: .5rem; min-width: min(420px, 80vw); }
.reject-form label { margin: 0; }

.demo-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; border-style: dashed; }
.demo-box p { margin: 0; }

.mail { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; margin: 0; overflow-wrap: anywhere; }

.prose-page h2 { margin-top: 2rem; color: var(--yellow); }
.prose-page ul { padding-left: 1.2rem; }
.prose-page li { margin-bottom: .5rem; }

/* ---------- Pie ---------- */

.site-footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, .2); padding: 1.75rem 0; }
.footer-inner p { margin: .2rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Reclamar gestión ---------- */

.claim-note {
    display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
    margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--border-2);
    font-size: .85rem; color: var(--muted);
}
.claim-note a { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.review-card.is-resolved { opacity: .7; }

/* ---------- Instagram ---------- */

.title-link { color: inherit; display: inline-flex; align-items: center; gap: .5rem; }
.title-link:hover { color: var(--yellow-2); text-decoration: none; }
.grid-ig { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.ig-card { padding: 0; overflow: hidden; transition: border-color .15s, transform .15s; }
.ig-card:hover { border-color: rgba(145, 205, 252, .55); transform: translateY(-2px); }
.ig-img-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--card-2); }
.ig-img { width: 100%; height: 100%; object-fit: cover; }
.ig-badge { position: absolute; top: .5rem; right: .5rem; background: rgba(0, 0, 0, .65); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.ig-body { padding: .8rem .95rem .95rem; }
.ig-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; min-width: 0; }
.ig-name { flex: 1; min-width: 0; font-weight: 700; color: var(--yellow); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-head time { white-space: nowrap; flex-shrink: 0; }
.ig-text { margin: 0; font-size: .88rem; color: #d4d4d4; overflow-wrap: anywhere; }
.ig-compact .card-link { display: flex; gap: 0; }
.ig-compact .ig-img-wrap { width: 92px; flex-shrink: 0; aspect-ratio: auto; }
.ig-compact .ig-badge { display: none; }
.ig-compact .ig-body { padding: .6rem .75rem; min-width: 0; }
.ig-compact .ig-text { font-size: .82rem; }
.ig-more { display: inline-block; margin-top: .75rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }

.home-card-col .home-card-icon { background: rgba(145, 205, 252, .15); color: var(--yellow); }

/* ---------- Feed de colectivos ---------- */

.grid-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 900px) { .grid-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-feed { grid-template-columns: minmax(0, 1fr); } }
.grid-feed .ig-img-wrap { aspect-ratio: 4 / 5; }
.grid-feed .ig-text { font-size: .9rem; }

.ig-modal {
    width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
    background: var(--card); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--radius);
    overflow: hidden;
}
.ig-modal::backdrop { background: rgba(0, 0, 0, .8); }
.ig-modal-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: min(820px, calc(100vh - 34px)); }
.ig-modal-media { background: #000; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.ig-modal-media img { width: 100%; height: 100%; object-fit: contain; }
.ig-modal-media[hidden] { display: none; }
.ig-modal-body { padding: 1.25rem 1.25rem 1.25rem; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .6rem; }
.ig-modal-body .muted { margin: 0; }
.ig-modal-texto { white-space: normal; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.55; flex: 0 0 auto; }
.ig-modal-link { align-self: flex-start; }
.ig-modal-close {
    position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: rgba(10, 10, 10, .75); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ig-modal-close:hover { background: var(--yellow); color: #0A0A0A; }
@media (max-width: 760px) {
    .ig-modal-inner { display: block; height: auto; max-height: calc(100vh - 34px); overflow-y: auto; overscroll-behavior: contain; }
    .ig-modal-media { height: auto; }
    .ig-modal-media img { height: auto; max-height: 60vh; }
    .ig-modal-body { height: auto; overflow: visible; }
}

.ig-detail { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); max-width: 1000px; }
.ig-detail-media { background: #000; display: flex; align-items: center; }
.ig-detail-media img { width: 100%; }
.ig-detail-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.ig-detail-text { overflow-wrap: anywhere; margin-bottom: .75rem; }
@media (max-width: 760px) { .ig-detail { grid-template-columns: 1fr; } }

/* ---------- Eventos detectados ---------- */

.det-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.1rem; }
.det-img img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius-sm); }
.det-body h3 { margin: .2rem 0 .4rem; font-size: 1.2rem; }
.det-datos { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .3rem; font-size: .92rem; }
.det-datos li { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.det-datos .icon { color: var(--yellow); }
.det-texto { margin-bottom: .8rem; }
.det-texto summary { cursor: pointer; color: var(--muted); }
.det-texto div { margin-top: .5rem; padding: .75rem; background: var(--bg); border-radius: var(--radius-sm); max-height: 240px; overflow-y: auto; }
@media (max-width: 600px) { .det-card { grid-template-columns: 1fr; } .det-img img { width: 100%; height: 200px; } }
.det-aviso { display: flex; gap: .75rem; align-items: center; }
.det-aviso img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

/* ---------- Compartir calendario ---------- */

.head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.share-modal {
    width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 1.5rem;
    background: var(--card); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--radius);
}
.share-modal::backdrop { background: rgba(0, 0, 0, .7); }
.share-modal h2 { margin: 0 2.5rem .4rem 0; }
.share-modal h3 { font-size: 1rem; margin: 1.25rem 0 .3rem; }
.share-modal p { margin-bottom: .6rem; }
.share-grid { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-small { margin-top: .6rem; }
.copy-field { display: flex; gap: .5rem; align-items: center; }
.copy-field input { flex: 1; min-width: 0; font-size: .85rem; padding: .5rem .65rem; }
.share-modal .alert { margin: 1.25rem 0 0; }
