/* ========================================
   MOBILE-FIRST LANDING PAGE
   Fundacion Huellas de Esperanza
   ======================================== */

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #E8602C;
    --primary-dark: #c94d1f;
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --white: #ffffff;
    --gray: #f4f4f6;
    --text: #222;
    --text-light: #666;
    --success: #27ae60;
    --error: #e74c3c;
    --radius: 14px;
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(26,26,46,0.95); backdrop-filter: blur(8px);
    padding: 10px 16px;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 960px; margin: 0 auto;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--white);
    font-weight: 700; font-size: 0.9rem;
}
.logo i { color: var(--primary); font-size: 1.2rem; }
.btn-dona-header {
    background: var(--primary); color: var(--white);
    padding: 8px 20px; border-radius: 20px;
    text-decoration: none; font-weight: 600; font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-dona-header:active { background: var(--primary-dark); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 80px 20px 40px;
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=800&h=1200&fit=crop') center/cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.88) 0%, rgba(26,58,42,0.80) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    text-align: center; max-width: 480px; width: 100%;
}
.hero-badge {
    display: inline-block;
    background: rgba(232,96,44,0.2); border: 1px solid rgba(232,96,44,0.4);
    color: var(--primary); padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.hero-badge i { margin-right: 4px; }
.hero h1 {
    color: var(--white); font-size: 2rem; font-weight: 800;
    line-height: 1.15; margin-bottom: 14px;
}
.hero p {
    color: rgba(255,255,255,0.75); font-size: 0.95rem;
    margin-bottom: 24px; line-height: 1.6;
}

/* Progreso inline en hero */
.hero-progreso {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 16px;
    margin-bottom: 24px;
}
.progreso-cifras {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
}
.cifra-recaudado { color: var(--primary); font-size: 1.3rem; font-weight: 700; }
.cifra-meta { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.progreso-barra {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.12); border-radius: 4px;
    overflow: hidden; margin-bottom: 8px;
}
.progreso-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), #f4845f);
    transition: width 1.2s ease-out;
}
.progreso-donantes {
    color: rgba(255,255,255,0.45); font-size: 0.75rem; text-align: center;
}

.btn-hero {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--primary); color: var(--white);
    padding: 16px 36px; border-radius: 28px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 24px rgba(232,96,44,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%; justify-content: center;
}
.btn-hero:active {
    transform: scale(0.97);
    box-shadow: 0 3px 12px rgba(232,96,44,0.3);
}

/* ===== CIUDADES - SCROLL HORIZONTAL ===== */
.ciudades {
    padding: 40px 0 30px;
    background: var(--white);
}
.ciudades h2 {
    font-size: 1.2rem; font-weight: 700;
    text-align: center; margin-bottom: 20px; color: var(--dark);
}
.ciudades-scroll {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 20px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ciudades-scroll::-webkit-scrollbar { display: none; }
.ciudad-chip {
    flex: 0 0 auto; scroll-snap-align: start;
    text-align: center;
}
.ciudad-img {
    width: 72px; height: 72px; border-radius: 50%;
    background-size: cover; background-position: center;
    border: 3px solid var(--primary);
    margin: 0 auto 6px;
}
.ciudad-chip span {
    font-size: 0.75rem; font-weight: 600; color: var(--dark);
}

/* ===== IMPACTO - LISTA COMPACTA ===== */
.impacto {
    padding: 40px 20px;
    background: var(--gray);
}
.impacto h2 {
    font-size: 1.2rem; font-weight: 700;
    text-align: center; margin-bottom: 24px; color: var(--dark);
}
.impacto-list {
    display: flex; flex-direction: column; gap: 14px;
    max-width: 480px; margin: 0 auto;
}
.impacto-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border-radius: var(--radius);
    padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.impacto-icon {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #f4845f);
    display: flex; align-items: center; justify-content: center;
}
.impacto-icon i { color: var(--white); font-size: 1.1rem; }
.impacto-item strong { font-size: 0.9rem; color: var(--dark); display: block; }
.impacto-item p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

/* ===== DONAR FORM ===== */
.donar {
    padding: 50px 20px;
    background: var(--dark);
}
.donar h2 {
    font-size: 1.4rem; font-weight: 700;
    text-align: center; color: var(--white); margin-bottom: 6px;
}
.donar-sub {
    text-align: center; color: rgba(255,255,255,0.5);
    font-size: 0.85rem; margin-bottom: 28px;
}

.donacion-form {
    max-width: 440px; margin: 0 auto;
}
.montos-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 16px;
}
.monto-btn {
    padding: 14px 4px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px; background: transparent;
    color: var(--white); font-family: 'Poppins', sans-serif;
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.monto-btn:active, .monto-btn.active {
    background: var(--primary); border-color: var(--primary);
}
.input-monto-custom {
    width: 100%; padding: 14px; margin-bottom: 12px;
    border: 2px solid rgba(255,255,255,0.15); border-radius: 10px;
    background: rgba(255,255,255,0.05); color: var(--white);
    font-family: 'Poppins', sans-serif; font-size: 1rem;
    outline: none;
}
.input-monto-custom:focus { border-color: var(--primary); }
.input-monto-custom::placeholder { color: rgba(255,255,255,0.3); }

.donacion-form input[type="text"],
.donacion-form input[type="email"],
.donacion-form input[type="tel"],
.donacion-form textarea {
    width: 100%; padding: 14px 16px; margin-bottom: 10px;
    border: 2px solid rgba(255,255,255,0.1); border-radius: 10px;
    background: rgba(255,255,255,0.05); color: var(--white);
    font-family: 'Poppins', sans-serif; font-size: 0.9rem;
    outline: none; transition: border-color 0.2s;
    -webkit-appearance: none;
}
.donacion-form input:focus,
.donacion-form textarea:focus { border-color: var(--primary); }
.donacion-form input::placeholder,
.donacion-form textarea::placeholder { color: rgba(255,255,255,0.3); }

.btn-donar {
    width: 100%; padding: 16px;
    background: var(--primary); color: var(--white); border: none;
    border-radius: 12px; font-family: 'Poppins', sans-serif;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    margin-top: 6px;
}
.btn-donar:active { transform: scale(0.97); }
.btn-donar:disabled { opacity: 0.6; }

.bold-badge {
    text-align: center; color: rgba(255,255,255,0.4);
    font-size: 0.75rem; margin-top: 14px;
}
.bold-badge i { margin-right: 3px; }
.bold-badge strong { color: rgba(255,255,255,0.6); }

.form-message {
    text-align: center; padding: 12px; border-radius: 10px;
    margin-top: 12px; font-size: 0.85rem; font-weight: 500;
}
.form-message.success {
    background: rgba(39,174,96,0.15); color: var(--success);
    border: 1px solid rgba(39,174,96,0.25);
}
.form-message.error {
    background: rgba(231,76,60,0.15); color: var(--error);
    border: 1px solid rgba(231,76,60,0.25);
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 50px 20px;
    background: var(--gray);
}
.contacto h2 {
    font-size: 1.2rem; font-weight: 700;
    text-align: center; color: var(--dark); margin-bottom: 20px;
}
.contacto-links {
    display: flex; gap: 10px; justify-content: center;
    margin-bottom: 24px;
}
.contacto-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px;
    background: var(--dark); color: var(--white);
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    transition: background 0.2s;
}
.contacto-btn:active { background: var(--dark-soft); }
.contacto-btn i { font-size: 1rem; }

.contacto-form {
    max-width: 440px; margin: 0 auto;
}
.contacto-form input,
.contacto-form textarea {
    width: 100%; padding: 14px 16px; margin-bottom: 10px;
    border: 2px solid #ddd; border-radius: 10px;
    background: var(--white); color: var(--text);
    font-family: 'Poppins', sans-serif; font-size: 0.9rem;
    outline: none; transition: border-color 0.2s;
    -webkit-appearance: none;
}
.contacto-form input:focus,
.contacto-form textarea:focus { border-color: var(--primary); }
.contacto-form input::placeholder,
.contacto-form textarea::placeholder { color: #aaa; }

.btn-contacto {
    width: 100%; padding: 14px;
    background: var(--primary); color: var(--white); border: none;
    border-radius: 10px; font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform 0.15s;
}
.btn-contacto:active { transform: scale(0.97); }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark); padding: 40px 20px;
    text-align: center; color: rgba(255,255,255,0.6);
}
.footer > i { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.footer p { font-size: 0.9rem; }
.footer strong { color: var(--white); }
.tagline { font-style: italic; font-size: 0.85rem !important; margin: 6px 0 16px; }
.footer-redes { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.footer-redes a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 0.95rem;
    transition: background 0.2s;
}
.footer-redes a:active { background: var(--primary); }
.copyright { font-size: 0.75rem !important; color: rgba(255,255,255,0.3); }

/* ===== FAB DONAR FLOTANTE ===== */
.fab-donar {
    position: fixed; bottom: 24px; right: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; text-decoration: none;
    box-shadow: 0 4px 16px rgba(232,96,44,0.5);
    transition: transform 0.2s, opacity 0.3s;
    opacity: 0; pointer-events: none;
}
.fab-donar.visible { opacity: 1; pointer-events: auto; }
.fab-donar:active { transform: scale(0.9); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   DESKTOP ENHANCEMENTS (768px+)
   ======================================== */
@media (min-width: 768px) {
    .header { padding: 12px 24px; }
    .logo { font-size: 1rem; }

    .hero { padding: 100px 40px 60px; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .hero-inner { max-width: 600px; }
    .btn-hero { width: auto; padding: 18px 50px; }

    .hero-progreso { max-width: 400px; margin: 0 auto 30px; }
    .cifra-recaudado { font-size: 1.6rem; }

    .ciudades h2 { font-size: 1.5rem; }
    .ciudades-scroll { justify-content: center; padding: 0 40px 10px; }
    .ciudad-img { width: 90px; height: 90px; }
    .ciudad-chip span { font-size: 0.85rem; }

    .impacto { padding: 60px 40px; }
    .impacto h2 { font-size: 1.5rem; }
    .impacto-list {
        display: grid; grid-template-columns: 1fr 1fr;
        max-width: 700px; gap: 16px;
    }

    .donar { padding: 70px 40px; }
    .donar h2 { font-size: 1.8rem; }
    .donacion-form { max-width: 500px; }

    .contacto { padding: 60px 40px; }
    .contacto-form { max-width: 500px; }

    .fab-donar { bottom: 32px; right: 32px; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .impacto-list { grid-template-columns: repeat(4, 1fr); max-width: 960px; }
    .impacto-item { flex-direction: column; text-align: center; padding: 24px 16px; }
}
