/* ============================================================
   style.css  –  FuelAR
   Diseño: “Creativo” + “Biomórfico”  ·  Animaciones dibujadas
   Tipografías: Oswald (títulos) · Nunito (texto)
   ============================================================ */

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

:root {
  /* Paleta principal */
  --clr-primary: #00c389;
  --clr-primary-dark: #00956a;
  --clr-secondary: #ffb703;
  --clr-secondary-dark: #d99200;
  --clr-accent: #ff477e;
  --clr-accent-dark: #c93663;
  --clr-bg: #f9f9fb;
  --clr-text: #333333;
  --clr-headings: #222222;
  --clr-light: #ffffff;

  /* Gradientes */
  --gradient-main: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #004f43 0%, #5e4300 100%);
  --gradient-light: linear-gradient(135deg, rgba(0,195,137,.12) 0%, rgba(255,183,3,.12) 100%);

  /* Sombras */
  --shadow-soft: 0 2px 6px rgba(0,0,0,.1);
  --shadow-card: 0 4px 14px rgba(0,0,0,.08);

  /* Tipografía */
  --ff-head: 'Oswald', sans-serif;
  --ff-body: 'Nunito', sans-serif;

  /* Medidas */
  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --radius: 12px;
  --radius-round: 50%;
  --transition: .35s cubic-bezier(.25,.8,.25,1);
}

/* -------------------- GLOBAL ------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--clr-primary-dark); transition: var(--transition); }
a:hover, a:focus { color: var(--clr-accent); }
h1,h2,h3,h4,h5 {
  font-family: var(--ff-head);
  color: var(--clr-headings);
  text-shadow: 1px 1px 3px rgba(0,0,0,.15);
  font-weight: 600;
}
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}
.section { padding: var(--sp-5) 0; }
.section-title { margin-bottom: var(--sp-4); text-align: center; }

/* -------------------- UTILS ------------------------------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.text-center { text-align: center; }
.text-light { color: var(--clr-light); }
.gradient-bg { background: var(--gradient-main); color: var(--clr-light); }
.gradient-bg-light { background: var(--gradient-light); }
.read-more {
  font-weight: 600;
  position: relative;
  padding-right: 24px;
}
.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: var(--transition);
}
.read-more:hover::after { transform: translateX(4px); }

/* -------------------- BUTTONS ----------------------------- */
.btn,
button,
input[type='submit'] {
  display: inline-block;
  font-family: var(--ff-head);
  padding: .75rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--clr-primary);
  background: var(--clr-primary);
  color: var(--clr-light);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn.primary { background: var(--clr-primary); border-color: var(--clr-primary); }
.btn.secondary {
  background: var(--clr-secondary); border-color: var(--clr-secondary);
}
button:hover,
.btn:hover,
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
button:active,
.btn:active,
input[type='submit']:active { transform: translateY(-1px); }

/* “Drawn” Animated outline (pseudo-hand-drawn) */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255,255,255,.6);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0;
  animation: scribble 6s linear infinite;
}
@keyframes scribble {
  0% { opacity: 0; }
  10% { opacity: .8; }
  40% { opacity: .8; }
  100% { opacity: 0; }
}

/* -------------------- HEADER ------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--gradient-dark);
  color: var(--clr-light);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}
.logo { font-family: var(--ff-head); font-size: 1.75rem; color: var(--clr-light); }
.nav { display: flex; }
.nav-list { list-style: none; display: flex; gap: var(--sp-3); }
.nav-list a { color: var(--clr-light); font-weight: 600; }
.nav-list a:hover { color: var(--clr-secondary); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; }
.burger span { display:block; width:25px; height:3px; background:#fff; transition:var(--transition); }

/* -------------------- HERO ------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--sp-5)*2) 0 var(--sp-5);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); color: #ffffff; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); color: #eaeaea; margin: var(--sp-2) 0 var(--sp-4); }

/* -------------------- STATS GRID ------------------------- */
.stats-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat-card {
  background: var(--clr-light);
  padding: var(--sp-3);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-number {
  font-size: 2rem;
  color: var(--clr-primary);
}

/* -------------------- CARDS ------------------------------ */
.card-wrapper,
.team-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.card,
.testimonial,
.resource-item {
  background: var(--clr-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}
.card:hover { transform: translateY(-5px); }

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--sp-2);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------- TESTIMONIOS ----------------------- */
.testimonial {
  position: relative;
  color: var(--clr-light);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.testimonial p { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.testimonial cite { font-style: normal; opacity: .8; }

/* -------------------- EVENTS ----------------------------- */
.events-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  color: var(--clr-light);
}
.events-list li { margin-bottom: var(--sp-2); }

/* -------------------- CONTACT FORM ---------------------- */
.contact-form {
  background: var(--clr-light);
  padding: var(--sp-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--sp-3);
}
.form-group { display: flex; flex-direction: column; }
label { margin-bottom: var(--sp-1); font-weight: 600; }
input, textarea {
  padding: var(--sp-2);
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--clr-primary); }

/* -------------------- FOOTER ----------------------------- */
.site-footer {
  background: var(--gradient-dark);
  color: var(--clr-light);
  padding: var(--sp-4) 0;
  text-align: center;
}
.footer-links, .social-links {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-2);
}
.footer-links a, .social-links a {
  color: var(--clr-light);
  font-weight: 600;
}
.footer-links a:hover, .social-links a:hover { color: var(--clr-secondary); }

/* -------------------- COOKIE POPUP ---------------------- */
#cookie-popup { font-size: .9rem; }

/* -------------------- SUCCESS PAGE ---------------------- */
.page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0;
}
.page-content .section { padding-top: 0; }

/* Offset for privacy, terms, about, contacts */
.page-content.static { padding-top: 140px; }

/* -------------------- MEDIA QUERIES --------------------- */
@media (max-width: 768px) {
  .nav { position: fixed; top: 70px; right: -100%; width: 220px; background: var(--gradient-dark); height: calc(100vh - 70px); flex-direction: column; transition: var(--transition); padding: var(--sp-3); }
  .nav.open { right: 0; }
  .nav-list { flex-direction: column; gap: var(--sp-2); }
  #burger { display: flex; }
}

/* -------------------- ANIMACIONES PARALLAX --------------- */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* -------------------- GLASS (opc.) ----------------------- */
.glass {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

/* -------------------- ACCESSIBILIDAD -------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}