/* ============================================================
   Fundación Somos Agua — Static Site Styles
   ============================================================ */

:root {
  --teal: #1abc9c;
  --teal-dark: #16a085;
  --navy: #1a2048;
  --navy-mid: #243060;
  --purple: #833ca3;
  --blue: #4054b2;
  --light: #f0f8ff;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #ecf0f1;
  --border: #dce8f0;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: .95rem;
  opacity: .85;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
}
.btn-teal   { background: var(--teal);   color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark   { background: var(--navy);   color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

/* ── HEADER / NAV ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: background .3s, box-shadow .3s;
}
#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-logo img { height: 48px; width: auto; }
.nav-menu { display: flex; gap: 1.8rem; align-items: center; }
.nav-menu a {
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .2s;
}
.nav-menu a:hover, .nav-menu a.active { opacity: 1; color: var(--teal); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── VIDEO HERO ── */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: rgb(3, 52, 145);
}
.yt-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Cover the full viewport regardless of aspect ratio */
  width: 177.78vh;   /* 16/9 * 100vh */
  min-width: 100%;
  height: 56.25vw;   /* 9/16 * 100vw */
  min-height: 100%;
  pointer-events: none;
}
.yt-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(4, 84, 212);
  opacity: 0.72;
  z-index: 1;
}
.video-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 2rem 2rem;
  text-align: center;
}
.hero-logo-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 40px;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}
.btn-hero-cta {
  display: inline-block;
  background-color: rgb(20, 93, 167);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 6px;
  box-shadow: rgba(0,0,0,.5) 0 0 10px 0;
  padding: 20px 40px;
  text-decoration: none;
  transition: background .2s;
}
.btn-hero-cta:hover { background-color: rgb(15, 75, 135); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 100px 2rem 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2022/09/SOMOSAGUA-BANNER-1.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 2rem;
  line-height: 1.15;
}

/* ── SWIPER HERO SLIDER ── */
.hero-slider { width: 100%; min-height: 100vh; }
.swiper-slide-custom {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.5);
}
.slide-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
  margin-top: 70px;
}
.slide-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.slide-content p { font-size: .95rem; margin-bottom: 1.8rem; opacity: .9; }
.swiper-button-next, .swiper-button-prev { color: var(--white) !important; }
.swiper-pagination-bullet-active { background: var(--teal) !important; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-dark  { background: var(--navy);   color: var(--white); }
.section-teal  { background: var(--teal);   color: var(--white); }
.section-light { background: var(--light);  color: var(--text); }
.section-white { background: var(--white);  color: var(--text); }

/* ── PROPOSITO ── */
.proposito-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: .95rem;
  opacity: .9;
}
.proposito-text p + p { margin-top: 1.2rem; }

/* ── QUÉ HACEMOS CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 80px; height: 80px; margin: 0 auto 1rem; object-fit: contain; }
.card h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--navy); }
.card p  { font-size: .88rem; color: #666; }

/* ── AREAS DE TRABAJO ── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}
.area-item {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: var(--white);
  overflow: hidden;
}
.area-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
  transition: filter .3s;
}
.area-item:hover .area-bg { filter: brightness(.4); }
.area-body { position: relative; z-index: 1; }
.area-body h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.area-body p  { font-size: .85rem; opacity: .9; }

/* ── QUOTE ── */
.quote-section {
  padding: 4rem 2rem;
  background: var(--navy-mid);
  color: var(--white);
  text-align: center;
}
.quote-section blockquote {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: .04em;
}

/* ── SERVICIOS SECTION on home ── */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.servicio-item img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 1rem; }
.servicio-item h4 { font-size: .8rem; color: var(--navy); }

/* ── SERVICIOS TWO-COLUMN (homepage) ── */
.servicios-two-col {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.servicios-left {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.servicios-left .sinfondo-logo {
  width: 220px;
  height: auto;
}
.servicios-right {
  flex: 1;
}
.servicios-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.servicios-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, opacity .2s;
}
.servicios-icon-item:hover { transform: scale(1.08); opacity: .85; }
.servicios-icon-item img {
  width: 100%;
  max-width: 110px;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .servicios-two-col { flex-direction: column; gap: 2.5rem; }
  .servicios-left { flex: none; width: 100%; }
  .servicios-icons-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 500px) {
  .servicios-icons-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── DONACIONES ── */
.donaciones-section { text-align: center; }
.donaciones-section h2 { margin-bottom: 1rem; }
.donaciones-section p  { margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  text-align: center;
  padding: 1.5rem;
}
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--teal);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}
.team-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--teal);
}
.team-grid-4 { grid-template-columns: repeat(4, 1fr); }
.team-card h3 { font-size: .95rem; margin-bottom: .4rem; color: var(--navy); }
.team-card p  { font-size: .8rem; color: #666; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--teal); }
.contact-info p, .contact-info a { font-size: .9rem; margin-bottom: .5rem; display: block; }
.contact-info a:hover { color: var(--teal); }
.contact-social { display: flex; gap: 1rem; margin-top: 1rem; }
.contact-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background .2s;
}
.contact-social a:hover { background: var(--navy); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: inherit;
  font-size: .9rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { width: 100%; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 260px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 100px 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  opacity: .9;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content .tag {
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--teal);
  margin-bottom: .5rem;
}
.page-hero-content h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

/* ── SERVICIOS PAGE ── */
.servicios-list { max-width: 820px; margin: 0 auto; }
.servicio-block { margin-bottom: 3rem; }
.servicio-block h3 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.servicio-block ul {
  list-style: disc;
  padding-left: 1.4rem;
  font-size: .9rem;
}
.servicio-block ul li { margin-bottom: .35rem; }
.servicio-block p { font-size: .9rem; }

/* ── BLOG POSTS ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.post-card-body { padding: 1.5rem; }
.post-card-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.post-card-body h3 { font-size: 1rem; margin-bottom: .6rem; color: var(--navy); }
.post-card-body p  { font-size: .85rem; color: #666; margin-bottom: 1rem; }

/* ── POST SINGLE ── */
.post-content {
  max-width: 780px;
  margin: 0 auto;
}
.post-content p { margin-bottom: 1.2rem; font-size: .95rem; }
.post-content h2, .post-content h3 { margin: 2rem 0 .75rem; }

/* ── DONAR PAGE ── */
.donar-content { max-width: 680px; margin: 0 auto; }
.bank-card {
  background: var(--light);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--teal);
}
.bank-card h3 { margin-bottom: 1rem; color: var(--navy); font-size: 1rem; }
.bank-row { display: flex; gap: 1rem; margin-bottom: .6rem; font-size: .9rem; }
.bank-label { font-weight: 700; min-width: 140px; color: var(--navy); }
.bank-value { color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; opacity: .7; max-width: 280px; }
.footer-col h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: .85rem;
  opacity: .75;
  margin-bottom: .4rem;
  transition: opacity .2s;
}
.footer-col a:hover { opacity: 1; color: var(--teal); }
.footer-social { display: flex; gap: .75rem; margin-top: .5rem; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  opacity: .8;
  transition: background .2s, opacity .2s;
}
.footer-social a:hover { background: var(--teal); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .78rem;
  opacity: .5;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .team-grid-4  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; gap: 0; }
  .nav-menu.open {
    display: flex;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 0 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
  }
  .nav-menu.open a { padding: .8rem 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 1.5rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-item { min-height: 240px; }
  .team-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
