/* ===========================================================
   FRIENDLY HANDS — Estilos
   Paleta cálida (crema/terracota) + azul de marca.
   =========================================================== */

:root{
  /* Paleta */
  --cream: #F7F1E4;
  --cream-soft: #FBF7ED;
  --paper: #FFFDF8;
  --card: #F1E4C9;
  --ink: #223047;
  --ink-soft: #57647C;
  --blue: #2F5FA8;
  --blue-deep: #1F4477;
  --terra: #E1793E;
  --terra-deep: #C85F27;
  --gold: #E7B155;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 45px -20px rgba(34,48,71,0.25);
  --shadow-card: 0 14px 30px -14px rgba(34,48,71,0.28);

  --header-h: 108px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3{ font-family: var(--font-display); color: var(--blue-deep); margin:0 0 .4em; line-height:1.15; }
p{ margin:0 0 1em; }

.container{ max-width: var(--container); margin:0 auto; padding:0 50px; }

.eyebrow{
  font-weight:800; text-transform:uppercase; letter-spacing:.14em;
  color: var(--terra-deep); font-size:.8rem; margin-bottom:.6em;
}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding: .85em 1.7em; border-radius: 999px; font-weight:700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  font-size: .98rem; white-space:nowrap;
}
.btn-primary{ background: #14179a; color:#fff; box-shadow: none; }
.btn-primary:hover{ background: #d33440; transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--paper); border:2px solid rgba(255,253,248,.8); }
.btn-ghost:hover{ background: rgba(255,253,248,.15); transform: translateY(-2px); }
.btn-cta{
  background: var(--paper); color: #d33440; border:2px solid #d33440;
  padding:.6em 1.4em; font-size:.9rem;
}
.btn-cta:hover{ background: #d33440; color:#fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header{
  position: fixed; inset:0 0 auto 0; z-index: 500;
  height: var(--header-h);
  display:flex; align-items:center;
  background: rgba(247,241,228,0); 
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.scrolled{
  background: rgba(247,241,228,.92);
  box-shadow: 0 8px 24px -12px rgba(34,48,71,.25);
  height: 120px;
  
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; padding-top:24px; padding-bottom:20px; }}
.brand{ display:flex; align-items:center; gap:.6em; }
.brand-logo{ width:86px; height:86px; border-radius:50%; }
.brand-name{
  font-family: var(--font-display); font-weight:700; color: var(--blue-deep);
  font-size: .82rem; line-height:1.1; text-transform:uppercase; letter-spacing:.06em;
}
.main-nav{ display:flex; align-items:center; gap:2.2em; }
.main-nav ul{ display:flex; gap:1.8em; }
.nav-link{ font-weight:700; color: #ffffff; position:relative; padding:.3em 0; }

.nav-link:hover, .nav-link.active{
  color: #14179a;
}
.nav-social{ display:flex; gap:.6em; }
.social-btn{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: #14179a; color:#fff; transition: transform .25s ease, background .25s ease;
}
.social-btn svg{ width:18px; height:18px; fill:currentColor; }
.social-btn:hover{ background:#d33440; transform: translateY(-2px) scale(1.05); }

.hamburger{
  display:none; flex-direction:column; gap:5px; width:42px; height:42px;
  align-items:center; justify-content:center; border-radius:12px;
}
.hamburger span{ width:24px; height:3px; background: var(--blue-deep); border-radius:3px; transition: all .3s ease; }
.hamburger.active{ background:#d33440; border-radius:50%; z-index:600; }
.hamburger.active span{ background:#fff; }
.hamburger.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height: 92vh; display:flex; align-items:flex-start;
  padding-top: var(--header-h); overflow:hidden;
  background: url("../assets/images/hero-foto.jpg") center center / cover no-repeat;
}
.hero{
  position:relative; min-height: 92vh; display:flex; align-items:flex-start;
  padding-top: var(--header-h); overflow:hidden;
  background: url("../assets/images/hero-foto.jpg") center center / cover no-repeat;
}
.hero-bg{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(31,68,119,0) 0%, rgba(20,26,38,.65) 100%);
}
.hero-inner{
  position:relative; z-index:2;
  max-width: 1160px;
  width:100%;
  margin:0 auto;
  padding-top: 2.2em;
  padding-bottom: 5em;
}
.eyebrow.reveal{ color:#fff; opacity:.9; }
.hero-title{ color:#fff; font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 8px 30px rgba(0,0,0,.18); }
.hero-text{ color:#fffaf2; font-size:1.15rem; max-width:520px; }
.hero-actions{ display:flex; gap:1em; flex-wrap:wrap; margin-top:1.4em; }


/* ---------- Secciones genéricas ---------- */
.section{ padding: 6.5em 0; }
.section-head{ max-width:680px; margin:0 auto 3em; text-align:center; }
.section-head h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ayudar .section-head h2{ color: #14179a; }
.section-head p{ color: var(--ink-soft); font-size:1.05rem; }
.ayudar .section-head p{ color: #000000; }

/* ---------- Nosotros ---------- */
.nosotros{
  background: #f7f7f7;
  position:relative;
  overflow:hidden;
  padding-bottom: 0;
}

.split{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:2.5em; max-width:950px; margin:0 auto; position:relative; z-index:1; }
.split-text{ width:100%; }
.split-text h2{ font-size: clamp(1.7rem,3vw,2.3rem); color: #14179a; }
.split-text p{ color: #000000; font-size:1.05rem; max-width:620px; margin-left:auto; margin-right:auto; line-height:1.7; }
.stat-row{ display:flex; gap:2.4em; margin-top:1.6em; }
.stat strong{ display:block; font-family:var(--font-display); font-size:1.7rem; color:var(--terra-deep); }
.stat span{ font-size:.85rem; color: var(--ink-soft); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }

.split-media{ display:flex; justify-content:center; }
.blob-frame{
  width: min(800px, 172%);
}
.blob-frame img{
  width:100%; height:auto; display:block;
}

/* ---------- QR Donación ---------- */
.qr-donar{
  display:flex; flex-direction:column; align-items:center; gap:.9em;
  width:100%; margin:1.4em auto 0;
}
.qr-donar-img{
  width:250px; height:250px; border-radius: var(--radius-md);
  border:6px solid var(--paper); box-shadow: var(--shadow-card);
}
.split-text .qr-donar-text{
  color:#14179a; font-weight:500; font-size:1.15rem; max-width:480px; line-height:1.6; margin:0 auto;
}
.qr-highlight{ font-weight:800; }

@media (max-width: 760px){
  .qr-donar-img{ width:130px; height:130px; }
  .qr-donar-text{ font-size:1.05rem; max-width:340px; }
}

/* ---------- Apadrinar ---------- */
.apadrinar{ background: var(--cream); position:relative; }
.apadrinar .section-head h2{ color: #14179a; }
.apadrinar .section-head p{ color: #000000; }
.dogs-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 2em;
}
.dog-card{
  background: var(--paper); border-radius: var(--radius-md); padding: 1.6em 1.6em 1.9em;
  text-align:center; box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dog-card:hover{ transform: translateY(-8px); box-shadow: 0 26px 40px -18px rgba(34,48,71,.32); }
.dog-photo{
  width:min(280px, 100%); aspect-ratio:1/1; margin:0 auto 1em; border-radius:50%; overflow:hidden;
  border:5px solid var(--card); box-shadow: none;
}
.dog-photo img{ width:100%; height:100%; object-fit:cover; }
.dog-card h3{ font-size:1.25rem;color: #14179a }
.dog-card p{ color: #000000; font-size:.94rem; min-height:4.4em; }

/* ---------- Banner ---------- */
.banner{ position:relative; overflow:hidden; }
.banner-img{ width:100%; height: clamp(260px, 40vw, 520px); object-fit:cover; object-position: center; }
.banner-caption{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.banner-caption span{
  font-family: var(--font-display); color:#fff; font-weight:600;
  font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing:.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- Como ayudar ---------- */
.ayudar{ background: background: #ffffff; }
.help-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:2em; }
.help-card{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  background: var(--paper); border-radius: var(--radius-md); padding: 2.4em 1.8em;
  box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease;
}
.help-card:hover{ transform: translateY(-8px); box-shadow: 0 26px 40px -18px rgba(34,48,71,.32); }
.help-icon{ width:110px; height:110px; margin-bottom:1.1em; }
.help-card h3{ font-size:1.2rem; color:#14179a; }
.help-card p{ color: #000000; font-size:.94rem; }
.help-more{ margin-top:.6em; font-weight:800; color: #d33440; font-size:.88rem; }

/* ---------- Footer ---------- */
.site-footer{ background: #1b1c42; color:#EFE6D2; text-align:center; padding: 4.5em 0 2.6em; }
.footer-logo{ width:200px; height:200px; margin:0 auto 1em;  }
.footer-brand{ font-family: var(--font-display); letter-spacing:.12em; font-size:1.2rem; font-weight:700; margin:0; color:#fff; }
.footer-tag{ color: var(--gold); font-weight:700; margin-bottom:1.4em; }
.footer-contact a{ color:#fff; font-weight:700; border-bottom:2px solid var(--terra); }
.footer-social{ display:flex; justify-content:center; gap:.8em; margin:1.6em 0; }
.footer-copy{ font-size:.82rem; opacity:.65; margin-top:1.4em; }

/* ---------- Modales ---------- */
.modal-overlay{
  position:fixed; inset:0; background: rgba(31,68,119,.55); backdrop-filter: blur(3px);
  display:flex; align-items:center; justify-content:center; padding:1.4em;
  opacity:0; visibility:hidden; transition: opacity .3s ease, visibility .3s ease; z-index:1000;
}
.modal-overlay.open{ opacity:1; visibility:visible; }
.modal-box{
  background: var(--paper); border-radius: var(--radius-lg); max-width:560px; width:100%;
  overflow:hidden; position:relative; box-shadow: 0 40px 70px -20px rgba(0,0,0,.4);
  transform: translateY(24px) scale(.97); opacity:0; transition: all .35s cubic-bezier(.2,.8,.3,1.2);
  max-height:88vh; overflow-y:auto;
}
.modal-box{ scrollbar-width: none; -ms-overflow-style: none; }
.modal-box::-webkit-scrollbar{ display:none; }
.modal-overlay.open .modal-box{ transform: translateY(0) scale(1); opacity:1; }
.modal-photo{ width:100%; aspect-ratio: 2.2/1; height:auto; object-fit:cover; background: var(--card); }
.modal-body{ padding: 1.1em 2.2em 1.6em; text-align:center; }
.modal-body p{ margin-bottom:.7em; }
.modal-box--simple .modal-body{ padding-top:2.6em; }
.modal-body h3{ font-size:1.5rem; color: #000f9f; }
.modal-body p{ color: #000000; }
.modal-contact{ color: #000; font-weight:400; margin-bottom:1.4em; }
.contact-label{ color: #000f9f; }

.modal-close{
  position:absolute; top:16px; right:16px;
  width:38px; height:38px; min-width:38px; min-height:38px; max-width:38px; max-height:38px;
  aspect-ratio:1/1; padding:0; margin:0; border-radius:50%;
  background: #d33440; color:#fff; font-size:1.4rem; line-height:1; z-index:5;
  display:flex; align-items:center; justify-content:center; transition: transform .2s ease, background .2s ease;
}
.modal-close:hover{ background: #b52530; transform: rotate(90deg); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px){
  .split{ grid-template-columns:1fr; }
  .dogs-grid{ grid-template-columns: repeat(2,1fr); }
  .help-grid{ grid-template-columns: 1fr; max-width:440px; margin:0 auto; }
}

@media (max-width: 760px){
  :root{ --header-h: 94px; }
  .container{ padding:0 20px; }

  .main-nav{
    position:fixed; top:0; left:0; right:0; bottom:0;
    background: #1b1c42; flex-direction:column; align-items:center; justify-content:center;
    padding: 2em 1.6em; gap:2em; transform: translateX(100%); transition: transform .35s ease;
    overflow-y:auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; gap:1.6em; width:100%; align-items:center; text-align:center; }
  .nav-link{ font-size:1.3rem; display:block; color:#fff; }
  .nav-social{ gap:1em; width:100%; justify-content:center; margin-top:.6em; }
  .hamburger{ display:flex; }

  .hero{ min-height:auto; padding-bottom:3em; }
  .hero-inner{ padding-top:2em; padding-bottom:3.4em; }
  .hero-actions .btn{ width:100%; }
  .hero-actions{ flex-direction:column; }

  .dogs-grid{ grid-template-columns:1fr; max-width:400px; margin:0 auto; }
  .stat-row{ gap:1.4em; }
  .section{ padding: 4em 0; }
  .nosotros{ padding-bottom: 0; }
}
/* ---------- WhatsApp flotante ---------- */
.whatsapp-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float svg{ width:32px; height:32px; fill:#fff; }
.whatsapp-float:hover{ transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 26px -6px rgba(0,0,0,.45); }

@media (max-width: 760px){
  .whatsapp-float{ width:52px; height:52px; bottom:16px; right:16px; }
  .whatsapp-float svg{ width:28px; height:28px; }
}