/* Mezuzah Club - landing publica */
:root {
    --yellow: #f6c915;
    --yellow-dark: #e0b400;
    --black: #111111;
    --ink: #1c1c1c;
    --muted: #6b6b6b;
    --bg: #ffffff;
    --bg-alt: #fdf7e3;
    --radius: 12px;
    --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--black); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Hero ---------------- */
/* La imagen (con overlay oscuro) se inyecta por style inline desde index.php,
   asi el url() se resuelve relativo al documento y no al CSS. */
.hero {
    position: relative;
    background-color: var(--yellow);
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
}
/* Si no hay imagen (sin atributo style) -> texto oscuro sobre el amarillo */
.hero:not([style]) { color: var(--black); }
.hero:not([style]) .nav a,
.hero:not([style]) .brand { color: var(--black); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding: 18px 20px;
}
.nav .brand { font-weight: 800; font-size: 1.25rem; letter-spacing: .3px; color: #fff; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: #fff; text-decoration: none; font-weight: 600; opacity: .92; }
.nav ul a:hover { opacity: 1; text-decoration: underline; }

.hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 70px;
}
.hero-inner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 12px; line-height: 1.1; }
.hero-inner .subtitle { font-size: clamp(1rem, 2vw, 1.3rem); max-width: 640px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Botones ---------------- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    transition: transform .08s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero:not([style]) .btn-ghost { color: var(--black); border-color: var(--black); }
/* En el hero amarillo (sin imagen) el botón primario va en negro para que resalte */
.hero:not([style]) .btn-primary { background: var(--black); color: var(--yellow); border-color: var(--black); }
.hero:not([style]) .btn-primary:hover { background: #000; border-color: #000; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ---------------- Secciones ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 18px;
    position: relative;
    padding-left: 16px;
}
.section h2::before {
    content: "";
    position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 6px; border-radius: 3px; background: var(--yellow);
}
.lead { font-size: 1.1rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------------- Formulario ---------------- */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form input, .form textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1.5px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    width: 100%;
}
.form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--yellow-dark);
    box-shadow: 0 0 0 3px rgba(246,201,21,.25);
}
.form .hp { position: absolute; left: -9999px; }
.form button { align-self: flex-start; }

/* ---------------- Alertas ---------------- */
.alert { padding: 14px 16px; border-radius: 10px; margin: 18px 0; font-weight: 600; }
.alert-ok { background: #e6f6e6; color: #1c6b1c; border: 1px solid #b6e2b6; }
.alert-error { background: #fbe6e6; color: #9b1c1c; border: 1px solid #f0b6b6; }

/* ---------------- Footer ---------------- */
.footer {
    background: var(--black);
    color: #eee;
    padding: 48px 0 36px;
    text-align: center;
}
.footer .brand { font-weight: 800; font-size: 1.2rem; color: var(--yellow); margin: 0 0 10px; }
.footer p { margin: 4px 0; }
.footer a { color: var(--yellow); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .copy { color: #888; margin-top: 18px; font-size: .9rem; }

/* ---------------- Instagram ---------------- */
.ig-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 26px;
}
.ig-grid .instagram-media {
    margin: 0 !important;
    min-width: 300px !important;
    max-width: 340px !important;
    flex: 0 1 340px;
}

/* ---------------- Modal de donación ---------------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-box {
    position: relative;
    max-width: 440px;
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 16px;
    border-top: 6px solid var(--yellow);
    padding: 34px 30px 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    text-align: center;
    animation: modal-pop .18s ease-out;
}
@keyframes modal-pop {
    from { transform: translateY(12px) scale(.97); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.modal-box h3 { margin: 0 0 10px; font-size: 1.5rem; }
.modal-box p { margin: 0 0 14px; color: var(--ink); }
.modal-close {
    position: absolute; top: 8px; right: 14px;
    background: none; border: none;
    font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.modal-close:hover { color: var(--black); }
.paypal-info {
    background: var(--bg-alt);
    border: 1px solid #f0e2b0;
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0 20px;
}
.paypal-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 4px; }
.paypal-info strong { font-size: 1.1rem; word-break: break-all; }

@media (max-width: 640px) {
    .nav ul { gap: 14px; }
    .section { padding: 52px 0; }
    .modal-box { margin: 8vh 16px 0; }
}
