/* ===========================
   IRUÁ — Centro de Dinamización
   Style Sheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue-dark: #1a2b5e;
  --blue-mid: #2176ae;
  --blue-light: #4fc3f7;
  --green: #4caf50;
  --yellow: #ffc107;
  --orange: #ff7043;
  --red: #e53935;
  --purple: #9c27b0;
  --teal: #00bcd4;
  --white: #ffffff;
  --bg: #f8f9fc;
  --text: #333;
  --text-light: #666;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 43, 94, 0.97);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav-logo img {
  height: 42px;
  /* filter removed - show actual colored logo */
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--yellow);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
  padding: 0;
}

.hamburger:hover {
  background: rgba(255,255,255,0.15);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 3px 0;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('public/hero-ronda.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 40, 0.35) 0%,
    rgba(10, 5, 20, 0.15) 50%,
    rgba(5, 10, 50, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 860px;
}

.hero-credit {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  z-index: 1;
}
.hero-credit a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.hero-credit a:hover {
  color: white;
}

.hero-logo {
  width: 260px;
  max-width: 60vw;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.92);
}

.btn-cta {
  display: inline-block;
  padding: 0.9rem 2.6rem;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(255, 112, 67, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 112, 67, 0.6);
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
}

section:nth-child(even) {
  background: var(--bg);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 3rem;
}

.rainbow-bar {
  display: flex;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  width: 80px;
  margin-bottom: 1.5rem;
}

.rainbow-bar span {
  flex: 1;
}

/* ===== QUIÉNES SOMOS ===== */
.origenes-text {
  background: white;
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card.mision {
  border-top: 4px solid var(--blue-mid);
}

.card.vision {
  border-top: 4px solid var(--green);
}

/* ===== ACTIVIDADES ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.act-card {
  position: relative;
  border-radius: 20px;
  background: var(--card-color);
  overflow: hidden;
  height: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  grid-column: span 2;
}

.act-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

/* Center the last 2 cards in a 3-col row */
.act-card:nth-child(4) {
  grid-column: 1 / span 3;
}

.act-card:nth-child(5) {
  grid-column: 4 / span 3;
}

.act-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
  height: 100%;
}

.act-emoji {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.act-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.act-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.act-content ul li {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  padding: 0.15rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.act-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
}

/* Remove old rules */
.act-bg-emoji { display: none; }
.act-illus { display: none; }
.act-card--wide { grid-column: span 2; }

@media (max-width: 900px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .act-card {
    grid-column: span 1 !important;
    height: auto;
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .act-card {
    grid-column: span 1 !important;
    height: auto;
    min-height: 180px;
  }
  .act-emoji {
    font-size: 2.5rem;
  }
}

/* ===== PARTICIPANTES ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-box {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-mid);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 500;
}

.participants-intro {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 0.5rem;
}

/* ===== RECONOCIMIENTOS ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.award-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.2s;
}

.award-card:hover {
  transform: translateY(-3px);
}

.award-medal {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.award-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.3rem;
}

.award-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Award photos gallery */
.awards-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.award-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.award-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.award-photo img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}

.award-photo figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===== INTEGRADORA ===== */
.integradora-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 780px;
}

.integradora-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #2176ae;
  margin: 0 auto 1.5rem;
  display: block;
  flex-shrink: 0;
}

.integradora-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2b5e, #2176ae);
  border: 4px solid #2176ae;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  flex-shrink: 0;
}
.integradora-avatar span {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

#galeria { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #111;
}

.gallery-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.6);
  transform: scale(1.1);
  z-index: 0;
}

.gallery-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-item figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  background: white;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.integradora-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.3rem;
}

.integradora-card .role {
  font-size: 0.85rem;
  color: var(--blue-mid);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.integradora-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== COLABORA ===== */
.colabora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.colabora-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.colabora-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.colabora-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.colabora-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.8rem;
}

.colabora-card p, .colabora-card a {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.colabora-card a {
  color: var(--blue-mid);
  text-decoration: none;
}

.colabora-card a:hover {
  text-decoration: underline;
}

.iban-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--blue-dark);
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  color: white !important;
}

.btn-donar {
  background: linear-gradient(135deg, var(--green), #2e7d32);
  color: white;
}

.btn-paypal {
  background: #0070ba;
  margin-top: 0.5rem;
}
.btn-paypal:hover {
  background: #005ea6;
}

.btn-empresa {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: white;
}

.btn-compartir {
  background: linear-gradient(135deg, var(--purple), #6a1b9a);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  height: 64px;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.75;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footer-col p, .footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
    background-position: center center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 43, 94, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .integradora-card {
    flex-direction: column;
    text-align: center;
  }

  .awards-photos {
    grid-template-columns: 1fr;
  }

  .award-photo img {
    height: 220px;
  }

  section {
    padding: 3.5rem 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}