/* ==========================================================================
   MUP — Movimiento por la Unidad de los Pueblos
   Rediseño 2026 · cartel de campaña popular
   Paleta: rojo institucional, verde, ocre andino
   ========================================================================== */

:root {
    --rojo:        #ce1126;
    --rojo-vivo:   #e2231a;
    --rojo-hondo:  #9c0d1c;
    --verde:       #009a49;
    --verde-hondo: #007a3d;
    --oro:         #f4a900;
    --tinta:       #1b1c22;
    --tinta-suave: #5b5c66;
    --hueso:       #ffffff;
    --banda:       #f3f4f6;
    --linea:       #e5e6ea;

    --fuente-titular: "Barlow Condensed", "Arial Narrow", sans-serif;
    --fuente-texto:   "Barlow", "Segoe UI", system-ui, sans-serif;

    --ancho: 1180px;
    --radio: 14px;
    --sombra: 0 18px 40px -22px rgba(32, 19, 20, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--fuente-texto);
    color: var(--tinta);
    background: var(--hueso);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: min(92%, var(--ancho));
    margin-inline: auto;
}

h1, h2, h3 {
    font-family: var(--fuente-titular);
    line-height: 1.02;
    letter-spacing: -.01em;
}

/* Encabezado de sección reutilizable */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fuente-titular);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rojo);
}
.eyebrow::before {
    content: "";
    width: 34px; height: 4px;
    background: var(--oro);
}
.section-title {
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 10px 0 26px;
    text-transform: uppercase;
}

/* ============================ Barra superior ============================ */
.topbar {
    background: var(--tinta);
    color: #f3e9e2;
    font-size: .9rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    flex-wrap: wrap;
}
.topbar a { text-decoration: none; }
.topbar .top-contacto { display: inline-flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar .top-contacto a { display: inline-flex; gap: 7px; align-items: center; opacity: .9; }
.topbar .top-contacto a:hover { opacity: 1; color: var(--oro); }
.top-derecha { display: inline-flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-btn {
    border: none; cursor: pointer; background: transparent; color: #f3e9e2;
    font-family: var(--fuente-titular); font-weight: 600; font-size: .82rem;
    letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.activo { background: var(--oro); color: var(--tinta); }
.i18n-banner {
    background: var(--oro); color: var(--tinta);
    text-align: center; font-size: .9rem; font-weight: 500;
    padding: 7px 16px;
}
.top-social { display: inline-flex; gap: 6px; }
.top-social a {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    transition: background .2s, transform .2s;
}
.top-social a:hover { background: var(--oro); color: var(--tinta); transform: translateY(-2px); }

/* ============================ Navegación ============================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linea);
}
.nav .container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}
.marca {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}
.marca .marca-logo { height: 46px; width: auto; display: block; }
.marca-pie { display: inline-flex; }
.marca-pie .marca-logo {
    height: 58px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.menu a {
    font-family: var(--fuente-titular);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--tinta);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.menu a:hover, .menu a.activo { color: var(--rojo); background: var(--banda); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--fuente-titular);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn-primario { background: var(--rojo); color: #fff; }
.btn-primario:hover { background: var(--rojo-hondo); transform: translateY(-2px); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-hondo); transform: translateY(-2px); }
.btn-oro { background: var(--oro); color: var(--tinta); }
.btn-oro:hover { filter: brightness(.95); transform: translateY(-2px); }
.btn-linea { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-linea:hover { background: #fff; color: var(--tinta); }
.btn-fantasma { background: #fff; color: var(--tinta); border-color: var(--linea); }
.btn-fantasma:hover { border-color: var(--rojo); color: var(--rojo); }

.nav-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.6rem; color: var(--tinta); cursor: pointer;
}

/* ============================ Hero ============================ */
.hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero .hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, rgba(156,13,28,.94) 0%, rgba(206,17,38,.80) 42%, rgba(20,21,28,.45) 78%, rgba(20,21,28,.2) 100%);
}
.hero .container { padding: 90px 0; }
.hero-texto { max-width: 720px; }
.hero .kicker {
    display: inline-block;
    font-family: var(--fuente-titular);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1.1rem;
    background: var(--oro);
    color: var(--tinta);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.hero h1 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(3rem, 8.5vw, 6.4rem);
    text-shadow: 0 4px 24px rgba(0,0,0,.28);
}
.hero h1 .verde { color: #fff; -webkit-text-stroke: 0; }
.hero p.lead {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    max-width: 620px;
    margin: 18px 0 30px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-acciones { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-franja {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--rojo) 0 33%, #fff 33% 66%, var(--verde) 66% 100%);
    z-index: 1;
}

/* ============================ Secciones base ============================ */
section.bloque { padding: 84px 0; }
section.banda { background: var(--banda); }

/* Quiénes somos */
.somos { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.somos .foto {
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra);
    aspect-ratio: 4/3;
}
.somos .foto img { width: 100%; height: 100%; object-fit: cover; }
.somos p { font-size: 1.12rem; margin-bottom: 16px; color: var(--tinta); }
.somos p strong { color: var(--rojo); }

/* Nuestra lucha */
.lucha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 12px;
}
.lucha-item {
    background: #fff;
    border: 1px solid var(--linea);
    border-left: 5px solid var(--rojo);
    border-radius: 12px;
    padding: 26px 24px;
}
.lucha-item i { font-size: 1.7rem; color: var(--rojo); margin-bottom: 12px; }
.lucha-item h3 { font-weight: 600; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; }
.lucha-item p { color: var(--tinta-suave); }

/* Actividades */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.actividad {
    background: #fff;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--linea);
}
.actividad .tapa {
    background: linear-gradient(135deg, var(--rojo), var(--rojo-hondo));
    color: #fff;
    padding: 22px 24px;
    display: flex; align-items: center; gap: 14px;
}
.actividad .tapa i { font-size: 1.6rem; color: var(--oro); }
.actividad .tapa span { font-family: var(--fuente-titular); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.actividad .cuerpo { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.actividad .cuerpo h3 { font-weight: 600; font-size: 1.5rem; }
.actividad .cuerpo p { color: var(--tinta-suave); flex: 1; }

/* ============================ Redes sociales ============================ */
.redes-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}
.fb-caja {
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radio);
    padding: 18px;
    box-shadow: var(--sombra);
    min-height: 300px;
    overflow: hidden;
}
.fb-caja .fb-page, .fb-caja span, .fb-caja iframe { width: 100% !important; }
.redes-cards { display: grid; gap: 20px; }
.red-card {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #fff;
    border-radius: var(--radio);
    padding: 22px 24px;
    box-shadow: var(--sombra);
    transition: transform .18s;
}
.red-card:hover { transform: translateY(-3px); }
.red-card .ricon { font-size: 2.4rem; width: 54px; text-align: center; }
.red-card .rtexto b { font-family: var(--fuente-titular); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; display: block; line-height: 1.1; }
.red-card .rtexto span { font-size: .98rem; opacity: .92; }
.red-card .rflecha { margin-left: auto; font-size: 1.3rem; opacity: .85; }
.red-instagram { background: linear-gradient(120deg, #833ab4, #c13584 40%, #e1306c 65%, #fd1d1d 85%, #fcb045); }
.red-tiktok { background: linear-gradient(120deg, #010101, #25f4ee 120%); position: relative; }
.red-tiktok { background: #010101; }
.red-youtube { background: #ff0000; }
.red-x { background: #111; }
.red-facebook { background: #1877f2; }
.red-whatsapp { background: #25d366; color: #063d20; }
.red-card.pendiente { background: #efe9e2; color: var(--tinta-suave); }
.red-card.pendiente .rtexto span { opacity: 1; }

/* ============================ Afíliate ============================ */
.afiliate-cab { max-width: 720px; }
.pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin: 34px 0;
    counter-reset: paso;
}
.paso {
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 12px;
    padding: 30px 24px 26px;
    position: relative;
}
.paso::before {
    counter-increment: paso;
    content: counter(paso);
    position: absolute;
    top: -18px; left: 24px;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: var(--rojo);
    color: #fff;
    font-family: var(--fuente-titular);
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 10px;
    box-shadow: var(--sombra);
}
.paso h3 { font-weight: 600; font-size: 1.35rem; margin: 8px 0 10px; text-transform: uppercase; }
.paso p { color: var(--tinta-suave); margin-bottom: 14px; }
.paso a.btn { font-size: .95rem; padding: 9px 16px; }
.afiliate-cierre {
    background: linear-gradient(120deg, var(--verde), var(--verde-hondo));
    color: #fff;
    border-radius: var(--radio);
    padding: 30px 34px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.afiliate-cierre b { font-family: var(--fuente-titular); font-size: 1.5rem; text-transform: uppercase; }

/* ============================ Documentos ============================ */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.doc {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 12px;
    padding: 22px 24px;
    text-decoration: none;
    color: var(--tinta);
    transition: transform .18s, border-color .2s;
}
.doc:hover { transform: translateY(-3px); border-color: var(--rojo); }
.doc .dic {
    width: 52px; height: 52px; flex: none;
    display: grid; place-items: center;
    background: var(--banda);
    color: var(--rojo);
    border-radius: 10px;
    font-size: 1.5rem;
}
.doc b { display: block; font-family: var(--fuente-titular); text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
.doc span { font-size: .9rem; color: var(--tinta-suave); }

/* ============================ Galería ============================ */
.galeria-wrap { text-align: center; }
.galeria-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}
.galeria-container img {
    width: min(760px, 100%);
    aspect-ratio: 11/8;
    height: auto;
    border-radius: var(--radio);
    object-fit: cover;
    box-shadow: var(--sombra);
}
.flecha {
    flex: none;
    width: 48px; height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--rojo);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.flecha:hover { background: var(--rojo-hondo); transform: scale(1.05); }
.galeria-puntos { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.galeria-puntos button { width: 10px; height: 10px; border-radius: 999px; border: none; background: var(--linea); cursor: pointer; }
.galeria-puntos button.activo { background: var(--rojo); }


/* ============================ Compartir ============================ */
.compartir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.compartir span.et { font-family: var(--fuente-titular); text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-suave); }
.compartir a, .compartir button {
    width: 44px; height: 44px; border: none; cursor: pointer;
    display: grid; place-items: center; border-radius: 999px;
    color: #fff; font-size: 1.1rem; text-decoration: none;
    transition: transform .15s;
}
.compartir a:hover, .compartir button:hover { transform: translateY(-3px); }
.sh-wa { background: #25d366; } .sh-fb { background: #1877f2; }
.sh-x { background: #111; } .sh-tg { background: #29a9eb; }
.sh-copy { background: var(--tinta); }

/* ============================ Footer ============================ */
footer.pie {
    background: var(--tinta);
    color: #e9dcd6;
    padding: 60px 0 24px;
}
.pie-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pie h4 { font-family: var(--fuente-titular); text-transform: uppercase; font-size: 1.3rem; color: #fff; margin-bottom: 16px; letter-spacing: .03em; }
.pie a { color: #e9dcd6; text-decoration: none; opacity: .88; }
.pie a:hover { opacity: 1; color: var(--oro); }
.pie ul { list-style: none; display: grid; gap: 10px; }
.pie .lema { margin: 16px 0; max-width: 320px; opacity: .85; }
.pie-social { display: flex; gap: 10px; }
.pie-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.1); }
.pie-social a:hover { background: var(--oro); color: var(--tinta); }
.pie-abajo {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: .9rem; opacity: .8;
}

/* Botones flotantes (WhatsApp + Chat) */
.fabs {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 60;
    display: flex; flex-direction: column; gap: 14px;
}
.fabs a, .fabs button {
    width: 60px; height: 60px;
    border: none; cursor: pointer;
    border-radius: 999px;
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
    text-decoration: none;
    transition: transform .15s;
}
.fabs a:hover, .fabs button:hover { transform: translateY(-3px) scale(1.04); }
.fab-wa { background: #25d366; }
.fab-chat { background: var(--rojo); animation: latido 2.6s infinite; }
.fab-chat.chat-hide { display: none; }
@keyframes latido { 0%,100% { transform: scale(1);} 8% { transform: scale(1.08);} 16% { transform: scale(1);} }

/* Panel de chat */
.chat-panel {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 61;
    width: min(380px, calc(100vw - 40px));
    height: min(560px, calc(100vh - 40px));
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -18px rgba(0,0,0,.5);
    display: flex; flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--linea);
}
.chat-panel[hidden] { display: none; }
.chat-head {
    background: linear-gradient(120deg, var(--rojo), var(--rojo-hondo));
    color: #fff;
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.chat-ident { font-family: var(--fuente-titular); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; font-size: 1.15rem; display: inline-flex; gap: 9px; align-items: center; }
.chat-ident i { color: var(--oro); }
.chat-close { background: none; border: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--banda); }
.chat-log .msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .98rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.chat-log .msg.bot { background: #fff; border: 1px solid var(--linea); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-log .msg.me { background: var(--rojo); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-log .msg a { color: var(--verde-hondo); font-weight: 600; }
.chat-log .msg.me a { color: #fff; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat-suggest button {
    background: #fff; border: 1px solid var(--rojo); color: var(--rojo);
    border-radius: 999px; padding: 7px 12px; font-size: .85rem; cursor: pointer;
    font-family: var(--fuente-texto); transition: background .2s, color .2s;
}
.chat-suggest button:hover { background: var(--rojo); color: #fff; }
.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 1px; border-radius: 999px; background: var(--tinta-suave); opacity: .5; animation: parp 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes parp { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linea); background: #fff; }
.chat-input { flex: 1; border: 1px solid var(--linea); border-radius: 999px; padding: 10px 16px; font-family: var(--fuente-texto); font-size: .98rem; outline: none; }
.chat-input:focus { border-color: var(--rojo); }
.chat-send { flex: none; width: 44px; height: 44px; border: none; border-radius: 999px; background: var(--rojo); color: #fff; cursor: pointer; font-size: 1rem; }
.chat-send:hover { background: var(--rojo-hondo); }
.chat-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) {
    .chat-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: calc(100vh - 20px); }
}

/* ============================ Animación de entrada ============================ */
.hero-texto > * { opacity: 0; transform: translateY(16px); animation: subir .7s forwards; }
.hero-texto > *:nth-child(1) { animation-delay: .05s; }
.hero-texto > *:nth-child(2) { animation-delay: .18s; }
.hero-texto > *:nth-child(3) { animation-delay: .3s; }
.hero-texto > *:nth-child(4) { animation-delay: .42s; }
@keyframes subir { to { opacity: 1; transform: none; } }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
    .somos { grid-template-columns: 1fr; }
    .redes-layout { grid-template-columns: 1fr; }
    .pie-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
    .nav-toggle { display: block; }
    .menu {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--linea);
        padding: 10px 16px 18px; gap: 4px;
        display: none;
        box-shadow: var(--sombra);
    }
    .menu.abierto { display: flex; }
    .menu a { font-size: 1.2rem; padding: 12px 10px; }
    .nav .btn-nav { display: none; }
    .topbar .top-contacto .t-oculta { display: none; }
}
@media (max-width: 560px) {
    .pie-top { grid-template-columns: 1fr; }
    .afiliate-cierre { flex-direction: column; align-items: flex-start; }
    .hero .container { padding: 64px 0; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .hero-texto > * { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
