/* =====================================================
   Asociación Cultural de Pentes — Estilos globales
   ===================================================== */

:root {
    --verde:      #2d6a4f;
    --verde-mid:  #40916c;
    --verde-clr:  #74c69d;
    --verde-bg:   #d8f3dc;
    --crema:      #f8f5f0;
    --blanco:     #ffffff;
    --gris:       #4a4a4a;
    --gris-clr:   #e0ddd8;
    --negro:      #1a1a1a;
    --radio:      10px;
    --sombra:     0 2px 12px rgba(0,0,0,.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gris);
    background: var(--crema);
}

a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.contenedor {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HEADER / NAV ── */
.site-header {
    background: var(--verde);
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.site-logo .icono {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-menu a {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background .2s;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.activo {
    background: rgba(255,255,255,.15);
    color: white;
}

.nav-menu .btn-socio {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 600;
}

.nav-menu .btn-socio:hover {
    background: white;
    color: var(--verde);
}

/* Hamburguesa */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 550px;
    margin: 0 auto 28px;
}

.hero .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BOTONES ── */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.btn-primario {
    background: var(--verde);
    color: white;
}

.btn-primario:hover { background: #1b4332; color: white; text-decoration: none; }

.btn-secundario {
    background: rgba(255,255,255,.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,.5);
}

.btn-secundario:hover { background: white; color: var(--verde); text-decoration: none; }

.btn-outline {
    background: transparent;
    color: var(--verde);
    border: 1.5px solid var(--verde);
}

.btn-outline:hover { background: var(--verde); color: white; text-decoration: none; }

/* ── TARJETAS ── */
.tarjeta {
    background: white;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 28px;
    transition: transform .2s, box-shadow .2s;
}

.tarjeta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

/* ── GRID ── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── SECCIÓN ── */
.seccion {
    padding: 60px 0;
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 40px;
}

.seccion-titulo h2 {
    font-size: 1.8rem;
    color: var(--negro);
    font-weight: 700;
}

.seccion-titulo p {
    color: #777;
    margin-top: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.linea-verde {
    width: 48px; height: 4px;
    background: var(--verde-clr);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ── FOOTER ── */
.site-footer {
    background: #1b4332;
    color: rgba(255,255,255,.7);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: white;
    font-size: .9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-col ul a:hover { color: white; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 16px;
    text-align: center;
    font-size: .8rem;
}

/* ── ALERTAS ── */
.alerta { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alerta-error   { background: #fff0f0; border-left: 3px solid #e63946; color: #c1121f; }
.alerta-ok      { background: #d8f3dc; border-left: 3px solid #2d6a4f; color: #1b4332; }
.alerta-info    { background: #e0f4ff; border-left: 3px solid #0096c7; color: #005f73; }

/* ── FORMULARIOS ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--verde-mid);
    box-shadow: 0 0 0 3px rgba(64,145,108,.12);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--verde);
        flex-direction: column;
        padding: 12px 16px;
        gap: 2px;
    }

    .nav-menu.abierto { display: flex; }
    .nav-toggle { display: block; }

    .hero { padding: 50px 0 40px; }
    .seccion { padding: 40px 0; }
}
