/* Huellas del Sur — landing estática del refugio felino. Mobile-first, sin frameworks. */

:root {
  --orange: #e07b1f;
  --orange-dark: #c2670f;
  --amber: #f4a23b;
  --brown: #3a2417;
  --brown-soft: #5a4334;
  --cream: #fbf5ec;
  --cream-alt: #f3e9da;
  --card: #ffffff;
  --text: #2c2017;
  --muted: #75665a;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(58, 36, 23, 0.10);
  --shadow-soft: 0 2px 10px rgba(58, 36, 23, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.center { text-align: center; }

/* ---- Topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-alt);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-soft); }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.2px; }

.nav { display: none; gap: 24px; align-items: center; }
.nav a { color: var(--brown-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--orange-dark); }
.nav .nav-ig {
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
}
.nav .nav-ig:hover { background: var(--orange-dark); color: #fff; }

@media (min-width: 760px) { .nav { display: flex; } }

/* ---- Hero ---- */
.hero {
  position: relative;
  color: #fff;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("img/hero.jpg") center 35% / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58, 36, 23, 0.30) 0%, rgba(58, 36, 23, 0.55) 55%, rgba(58, 36, 23, 0.82) 100%);
}

.hero-content { position: relative; padding: 90px 20px; max-width: 760px; }

.hero-kicker {
  display: inline-block;
  background: rgba(224, 123, 31, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 560px;
  margin: 0 0 30px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(224, 123, 31, 0.4); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.28); }

/* En secciones claras, el botón fantasma se invierte */
.section .btn-ghost { background: transparent; color: var(--orange-dark); border-color: var(--orange); }
.section .btn-ghost:hover { background: rgba(224, 123, 31, 0.1); }

/* ---- Secciones ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-alt); }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 10px;
  color: var(--brown);
  font-weight: 800;
}

.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 620px; font-size: 1.02rem; }

/* ---- Tarjetas ---- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid rgba(58, 36, 23, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(58, 36, 23, 0.14); }

.card-icon {
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--amber), var(--orange));
  margin-bottom: 14px;
}

.card-name { margin: 0 0 8px; font-size: 1.12rem; color: var(--brown); }
.card-desc { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---- Galería de gatos ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow-soft); }

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.06); }

/* ---- Pasos ---- */
.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.step-icon { font-size: 1.4rem; margin-left: 8px; }

/* ---- Contacto ---- */
.contact {
  background: linear-gradient(155deg, var(--brown) 0%, #2a1a10 100%);
  color: #fff;
  text-align: center;
}
.contact h2 { color: #fff; }
.contact .section-sub { color: rgba(255, 255, 255, 0.82); margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.contact-zone { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* ---- Footer ---- */
.site-footer {
  background: #2a1a10;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 28px 0;
  text-align: center;
}
.site-footer p { margin: 6px 0; }
.footer-note { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.footer-disclaimer { font-size: 0.8rem; opacity: 0.75; max-width: 560px; margin-left: auto; margin-right: auto; }
.version { opacity: 0.8; }

/* ---- Toast de actualización ---- */
.update-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--brown);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  z-index: 30;
}

/* ---- Responsive ---- */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 760px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
