/*
Theme Name: CQA Theme
Theme URI: https://fundacioncqa.cl
Author: Fundación Corazones que Acompañan
Author URI: https://fundacioncqa.cl
Description: Tema oficial de la Fundación Corazones que Acompañan
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cqa-theme
Tags: nonprofit, foundation, donations, Chile
*/

/* ── VARIABLES ── */
:root {
  --cyan:        #4ECDC4;
  --cyan-dark:   #2bb5ab;
  --cyan-light:  #e0f7f6;
  --cyan-xlight: #f0fbfa;
  --dark:        #1a2b2b;
  --dark2:       #111e1e;
  --text:        #2d3748;
  --muted:       #718096;
  --white:       #ffffff;
  --bg:          #f7fffe;
  --warm:        #FF6B6B;
  --yellow:      #FFD93D;
  --r:           16px;
  --r-sm:        10px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── TIPOGRAFÍA ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

h1, h2, h3, h4, h5, h6 { font-family: 'Nunito', sans-serif; }
.lora { font-family: 'Lora', serif; }

/* ── NAV ── */
#cqa-nav {
  background: var(--dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.cqa-nav-logo { display: flex; align-items: center; text-decoration: none; }
.cqa-nav-logo img { height: 44px; width: auto; display: block; }
.cqa-nav-links { display: flex; gap: 1.6rem; list-style: none; }
.cqa-nav-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 13px; font-weight: 700; transition: color .2s; }
.cqa-nav-links a:hover, .cqa-nav-links a.active { color: var(--cyan); }
.cqa-nav-right { display: flex; align-items: center; gap: .5rem; }
.cqa-nav-cta { background: var(--cyan); color: var(--dark); font-weight: 800; font-size: 13px; padding: 9px 20px; border-radius: 50px; text-decoration: none; transition: all .2s; white-space: nowrap; }
.cqa-nav-cta:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-1px); }

/* Lang switcher */
.cqa-lang { display: flex; align-items: center; border: 1.5px solid rgba(78,205,196,.35); border-radius: 50px; overflow: hidden; }
.cqa-lang-btn { background: transparent; border: none; color: rgba(255,255,255,.55); font-weight: 800; font-size: 11px; padding: 5px 11px; cursor: pointer; font-family: 'Nunito', sans-serif; letter-spacing: 1px; transition: all .2s; }
.cqa-lang-btn.active { background: var(--cyan); color: var(--dark); }
.cqa-lang-sep { width: 1px; height: 14px; background: rgba(78,205,196,.3); }

/* Burger */
.cqa-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.cqa-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all .3s; }

/* ── HERO ── */
.cqa-hero {
  background: var(--dark);
  padding: 5rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cqa-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(78,205,196,.22) 0%, transparent 70%);
  pointer-events: none;
}
.cqa-hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.cqa-hero-eyebrow { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.cqa-hero h1 { font-family: 'Lora', serif; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 1.2rem; font-weight: 600; }
.cqa-hero h1 em { color: var(--cyan); font-style: italic; }
.cqa-hero-sub { color: rgba(255,255,255,.62); font-size: 1rem; line-height: 1.8; margin-bottom: 2.5rem; }
.cqa-hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BOTONES ── */
.btn-primary { display: inline-block; background: var(--cyan); color: var(--dark); font-weight: 800; padding: 14px 30px; border-radius: 50px; text-decoration: none; font-size: 15px; transition: all .2s; font-family: 'Nunito', sans-serif; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { display: inline-block; border: 2px solid rgba(255,255,255,.28); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 50px; text-decoration: none; font-size: 15px; transition: all .2s; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-secondary { display: inline-block; background: transparent; border: 2px solid var(--cyan); color: var(--cyan-dark); font-weight: 800; font-size: 14px; padding: 11px 26px; border-radius: 50px; text-decoration: none; transition: all .2s; }
.btn-secondary:hover { background: var(--cyan); color: var(--dark); }

/* ── STATS ── */
.cqa-stats { background: var(--cyan); padding: 1.4rem 2rem; display: flex; justify-content: center; gap: clamp(1.5rem, 4vw, 4rem); flex-wrap: wrap; }
.cqa-stat { text-align: center; }
.cqa-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--dark); line-height: 1; }
.cqa-stat-label { font-size: 11px; font-weight: 700; color: var(--dark); opacity: .7; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* ── SECCIONES ── */
.cqa-section { padding: 4.5rem 2rem; max-width: 980px; margin: 0 auto; }
.cqa-section-full { padding: 4.5rem 2rem; }
.section-tag { color: var(--cyan-dark); font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin-bottom: .5rem; }
.section-title { font-family: 'Lora', serif; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--dark); font-weight: 600; line-height: 1.25; margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: .95rem; line-height: 1.8; max-width: 620px; }
.cqa-divider { height: 1px; background: rgba(78,205,196,.18); margin: 0 2rem; }

/* ── ABOUT ── */
.cqa-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2.5rem; }
.cqa-about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem; }
.cqa-about-quote { font-family: 'Lora', serif; font-style: italic; color: var(--cyan); font-size: 1rem; font-weight: 600; line-height: 1.7; margin-top: .5rem; display: block; }
.cqa-value-card { background: var(--white); border: 1px solid rgba(78,205,196,.25); border-radius: var(--r-sm); padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.cqa-value-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--cyan-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.cqa-value-title { font-weight: 800; font-size: .85rem; color: var(--dark); margin-bottom: 2px; }
.cqa-value-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ── CAMPAÑAS ── */
.cqa-campaigns-section { background: var(--cyan-xlight); padding: 4.5rem 2rem; }
.cqa-campaigns-inner { max-width: 980px; margin: 0 auto; }
.cqa-campaigns-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.cqa-campaigns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.cqa-campaign-card { background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid rgba(78,205,196,.2); transition: transform .2s, box-shadow .2s; }
.cqa-campaign-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(78,205,196,.18); }
.cqa-campaign-img { height: 155px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.cqa-campaign-badge { position: absolute; top: 10px; right: 10px; background: var(--yellow); color: var(--dark); font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; }
.cqa-campaign-body { padding: 1.3rem; }
.cqa-campaign-category { font-size: 10px; font-weight: 800; color: var(--cyan-dark); text-transform: uppercase; letter-spacing: 2px; margin-bottom: .4rem; }
.cqa-campaign-title { font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: .5rem; line-height: 1.3; }
.cqa-campaign-desc { font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.cqa-progress-wrap { margin-bottom: .9rem; }
.cqa-progress-info { display: flex; justify-content: space-between; margin-bottom: 5px; }
.cqa-progress-raised { font-size: .85rem; font-weight: 800; color: var(--dark); }
.cqa-progress-pct { font-size: .8rem; font-weight: 700; color: var(--cyan-dark); }
.cqa-progress-bar-bg { height: 7px; background: #d0f0ee; border-radius: 99px; }
.cqa-progress-bar { height: 7px; border-radius: 99px; background: var(--cyan); }
.cqa-progress-goal { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.cqa-campaign-footer { display: flex; gap: 8px; }
.cqa-btn-donate { flex: 1; background: var(--cyan); color: var(--dark); font-weight: 800; font-size: 13px; padding: 10px 12px; border-radius: 50px; border: none; cursor: pointer; font-family: 'Nunito', sans-serif; transition: all .2s; }
.cqa-btn-donate:hover { background: var(--cyan-dark); color: #fff; }
.cqa-btn-share { background: transparent; border: 1.5px solid rgba(78,205,196,.4); color: var(--cyan-dark); font-weight: 700; font-size: 12px; padding: 10px 14px; border-radius: 50px; cursor: pointer; font-family: 'Nunito', sans-serif; transition: all .2s; }
.cqa-btn-share:hover { border-color: var(--cyan); background: var(--cyan-light); }

/* ── DONACIÓN GENERAL ── */
.cqa-donate-general { background: var(--dark); border-radius: var(--r); padding: 2rem; margin-top: 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cqa-donate-general h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: .3rem; }
.cqa-donate-general p { color: rgba(255,255,255,.55); font-size: .83rem; }
.cqa-donate-amounts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cqa-amount-btn { background: rgba(78,205,196,.12); border: 1.5px solid rgba(78,205,196,.35); color: var(--cyan); font-weight: 800; font-size: 14px; padding: 8px 16px; border-radius: 50px; cursor: pointer; font-family: 'Nunito', sans-serif; transition: all .2s; }
.cqa-amount-btn:hover, .cqa-amount-btn.active { background: var(--cyan); color: var(--dark); border-color: var(--cyan); }
.cqa-amount-custom { background: transparent; border: 1.5px solid rgba(78,205,196,.35); color: var(--cyan); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 50px; font-family: 'Nunito', sans-serif; width: 110px; outline: none; }
.cqa-amount-custom::placeholder { color: rgba(78,205,196,.5); font-size: 12px; }
.cqa-btn-donate-main { background: var(--cyan); color: var(--dark); font-weight: 800; font-size: 14px; padding: 11px 24px; border-radius: 50px; border: none; cursor: pointer; font-family: 'Nunito', sans-serif; transition: all .2s; }
.cqa-btn-donate-main:hover { background: var(--cyan-dark); color: #fff; }

/* ── BRANDS CARRUSEL ── */
.cqa-brands { background: var(--white); padding: 1.4rem 0; border-top: 1px solid rgba(78,205,196,.1); border-bottom: 1px solid rgba(78,205,196,.1); }
.cqa-brands-label { text-align: center; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; }
.cqa-brands-wrap { overflow: hidden; position: relative; }
.cqa-brands-wrap::before, .cqa-brands-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.cqa-brands-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.cqa-brands-wrap::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.cqa-brands-track { display: flex; width: max-content; animation: scrollBrands 28s linear infinite; }
.cqa-brands-track:hover { animation-play-state: paused; }
@keyframes scrollBrands { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cqa-brand-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 2.2rem; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; border-right: 1px solid rgba(78,205,196,.12); min-width: 140px; }

/* ── HOW TO DONATE ── */
.cqa-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.cqa-how-step { text-align: center; padding: 1.5rem 1rem; }
.cqa-how-num { width: 46px; height: 46px; border-radius: 50%; background: var(--cyan); color: var(--dark); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .9rem; }
.cqa-how-title { font-weight: 800; font-size: .9rem; color: var(--dark); margin-bottom: .3rem; }
.cqa-how-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ── ALIANZAS ── */
.cqa-alianzas { background: var(--cyan-xlight); padding: 4rem 2rem; }
.cqa-alianzas-inner { max-width: 980px; margin: 0 auto; }
.cqa-alianzas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.cqa-alianza-card { background: var(--white); border: 1px solid rgba(78,205,196,.2); border-radius: var(--r); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; transition: transform .2s, box-shadow .2s; }
.cqa-alianza-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(78,205,196,.15); }
.cqa-alianza-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--cyan-light); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.cqa-alianza-tipo { font-size: 10px; font-weight: 800; color: var(--cyan-dark); text-transform: uppercase; letter-spacing: 2px; }
.cqa-alianza-nombre { font-weight: 800; font-size: .92rem; color: var(--dark); }
.cqa-alianza-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ── CONTACTO ── */
.cqa-contact { background: var(--dark); padding: 4.5rem 2rem; }
.cqa-contact-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.cqa-contact-info .section-title { color: #fff; }
.cqa-contact-info .section-lead { color: rgba(255,255,255,.5); }
.cqa-contact-detail { display: flex; align-items: center; gap: 10px; margin-top: 1.2rem; color: rgba(255,255,255,.65); font-size: .88rem; }
.cqa-contact-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(78,205,196,.15); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.cqa-contact-detail a { color: var(--cyan); text-decoration: none; }
.cqa-contact-form { display: flex; flex-direction: column; gap: .85rem; }
.cqa-form-input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-sm); padding: 12px 14px; color: #fff; font-family: 'Nunito', sans-serif; font-size: 14px; outline: none; transition: border .2s; width: 100%; }
.cqa-form-input::placeholder { color: rgba(255,255,255,.3); }
.cqa-form-input:focus { border-color: var(--cyan); }
textarea.cqa-form-input { resize: vertical; min-height: 90px; }
.cqa-btn-form { background: var(--cyan); color: var(--dark); font-weight: 800; font-size: 14px; padding: 13px; border-radius: var(--r-sm); border: none; cursor: pointer; font-family: 'Nunito', sans-serif; transition: all .2s; width: 100%; }
.cqa-btn-form:hover { background: var(--cyan-dark); color: #fff; }

/* ── FOOTER ── */
#cqa-footer { background: var(--dark2); padding: 1.8rem 2rem; text-align: center; border-top: 1px solid rgba(78,205,196,.1); }
.cqa-footer-inner { max-width: 980px; margin: 0 auto; }
.cqa-footer-top { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cqa-footer-top a { color: rgba(255,255,255,.45); font-size: 12px; text-decoration: none; transition: color .2s; }
.cqa-footer-top a:hover { color: var(--cyan); }
#cqa-footer p { color: rgba(255,255,255,.3); font-size: 12px; line-height: 1.7; }
#cqa-footer span { color: var(--cyan); }

/* ── PAGE HERO ── */
.cqa-page-hero { background: var(--dark); padding: 4rem 2rem; position: relative; overflow: hidden; }
.cqa-page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(78,205,196,.2) 0%, transparent 70%); pointer-events: none; }
.cqa-page-hero-inner { max-width: 980px; margin: 0 auto; position: relative; }
.cqa-breadcrumb { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.cqa-breadcrumb a { color: rgba(255,255,255,.45); font-size: 12px; text-decoration: none; font-weight: 600; }
.cqa-breadcrumb a:hover { color: var(--cyan); }
.cqa-breadcrumb span { color: rgba(255,255,255,.25); font-size: 12px; }
.cqa-breadcrumb strong { color: var(--cyan); font-size: 12px; font-weight: 700; }
.cqa-page-hero h1 { font-family: 'Lora', serif; color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
.cqa-page-hero h1 em { color: var(--cyan); font-style: italic; }
.cqa-page-hero-lead { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.8; max-width: 580px; }

/* ── FAQ ── */
.cqa-faq-item { border: 1px solid rgba(78,205,196,.18); border-radius: var(--r-sm); margin-bottom: .6rem; overflow: hidden; background: var(--white); }
.cqa-faq-item.open { box-shadow: 0 4px 20px rgba(78,205,196,.12); border-color: rgba(78,205,196,.35); }
.cqa-faq-q { width: 100%; background: transparent; border: none; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-family: 'Nunito', sans-serif; font-size: .92rem; font-weight: 700; color: var(--dark); text-align: left; }
.cqa-faq-q:hover { color: var(--cyan-dark); }
.cqa-faq-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: transform .3s; }
.cqa-faq-item.open .cqa-faq-arrow { transform: rotate(180deg); color: var(--cyan-dark); }
.cqa-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.cqa-faq-item.open .cqa-faq-a { max-height: 600px; }
.cqa-faq-a-inner { padding: .2rem 1.3rem 1.3rem; color: var(--muted); font-size: .88rem; line-height: 1.8; }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  #cqa-nav { padding: 0 1rem; }
  .cqa-nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark); padding: 1rem 0; }
  .cqa-nav-links.open { display: flex; }
  .cqa-nav-links li a { padding: 12px 1.5rem; border-bottom: 1px solid rgba(255,255,255,.05); display: block; }
  .cqa-burger { display: block; }
  .cqa-about-grid, .cqa-contact-inner { grid-template-columns: 1fr; }
}
