/* =====================================================
   Farmacia Fuenteguinaldo · CSS principal
   ===================================================== */

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== TOKENS ========== */
:root {
  --green-900: #1a3a2c;
  --green-800: #23513e;
  --green-700: #2f6b53;
  --green-500: #4a8a70;
  --green-100: #dde8e1;
  --cream: #f5efe4;
  --cream-light: #faf6ee;
  --paper: #fffdf8;
  --ink: #1e2620;
  --ink-soft: #555a52;
  --terracotta: #c47a56;
  --terracotta-dark: #a56240;
  --gold: #b8925a;
  --line: #d9d0bd;
  --shadow-sm: 0 2px 8px rgba(26, 58, 44, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 58, 44, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 58, 44, 0.14);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--green-900);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-variation-settings: 'opsz' 120, 'SOFT' 30; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-variation-settings: 'opsz' 90, 'SOFT' 30; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
p { color: var(--ink-soft); }
p strong { color: var(--ink); font-weight: 600; }
.lead { font-size: 1.12rem; line-height: 1.6; }

/* ========== LAYOUT UTILS ========== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}
section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: var(--cream);
  padding: 0.8rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ========== FLASH MESSAGES ========== */
.flash {
  padding: 1rem 1.4rem;
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border-left: 4px solid;
}
.flash--success { background: #e6f4ec; color: #1a5e3a; border-left-color: #2c8056; }
.flash--error { background: #fbe8e6; color: #8b2620; border-left-color: #c14238; }
.flash--warning { background: #fcf3e0; color: #7a5b1a; border-left-color: #c79334; }
.flash--info { background: #e8eef7; color: #2a4a78; border-left-color: #4670a8; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .3s var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--green-800); color: var(--cream-light); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--green-800); color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--cream-light); }
.btn-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 58, 44, 0.08);
  transition: box-shadow .3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  transition: transform .3s var(--ease);
}
.logo:hover .logo-img { transform: scale(1.04); }
.logo-img--footer {
  width: 110px;
  height: 110px;
  filter: brightness(0) invert(1) opacity(.95);
}
.logo--footer { display: inline-flex; margin-bottom: 1rem; }
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--green-900);
  line-height: 1;
}
.logo-text small {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 4px;
}

.nav-main { display: flex; gap: 2.2rem; align-items: center; }
.nav-main a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.5rem;
  transition: color .3s var(--ease);
}
.nav-main a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .3s var(--ease);
}
.nav-main a:hover { color: var(--green-800); }
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }

.header-cta { display: flex; gap: 1rem; align-items: center; }

.header-social {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding-right: 0.6rem;
  border-right: 1px solid var(--line);
  margin-right: 0.2rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid transparent;
  transition: all .25s var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  background: var(--green-800);
  color: var(--cream-light);
  transform: translateY(-2px);
}
.social-link--facebook:hover { background: #1877f2; }
.social-link--twitter:hover { background: #000; }
.social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link--linkedin:hover { background: #0a66c2; }
.social-link--youtube:hover { background: #ff0000; }
.social-link--tiktok:hover { background: #010101; }

.phone-quick {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color .3s var(--ease);
}
.phone-quick:hover { color: var(--green-800); }
.phone-quick strong { color: var(--green-900); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
}
.nav-mobile a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.05rem;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-phone { color: var(--green-800); font-weight: 600; }
.nav-mobile-social {
  display: flex;
  gap: 0.6rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.nav-mobile-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  padding: 0;
  border: none;
}
.nav-mobile-social a svg { width: 20px; height: 20px; }
.nav-mobile.is-open { display: flex; }

@media (max-width: 1180px) {
  .header-social { display: none; }
}
@media (max-width: 960px) {
  .nav-main, .phone-quick, .header-cta-btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ========== HERO ========== */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(5rem, 10vw, 9rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(196, 122, 86, 0.08), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 { margin-top: 1.5rem; }
.hero-text h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.hero-text .lead { margin-top: 1.8rem; max-width: 520px; }
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-item strong {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--green-800);
  line-height: 1;
}
.hero-meta-item span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 58, 44, 0.3));
}

.badge-years {
  position: absolute;
  bottom: -30px; left: -30px;
  width: 150px; height: 150px;
  background: var(--terracotta);
  color: var(--cream-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  transform: rotate(-8deg);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.badge-years strong {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  display: block;
}
.badge-years span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .badge-years { width: 120px; height: 120px; bottom: -20px; left: 10px; }
}

/* ========== MARQUEE ========== */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.6rem;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-800);
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-item::after {
  content: '✦';
  color: var(--terracotta);
  font-style: normal;
  font-size: 0.9rem;
}
@keyframes scroll { to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .marquee { display: none; }
}

/* ========== HISTORIA ========== */
.historia { background: var(--paper); position: relative; }
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.historia-visual { position: relative; }
.historia-visual img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.historia-visual::before {
  content: '';
  position: absolute;
  inset: -24px -24px 24px 24px;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--r-lg);
  z-index: -1;
}
.historia-text h2 { margin-top: 1.2rem; }
.historia-text p { margin-top: 1.2rem; }
.historia-quote {
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--green-100);
  border-left: 4px solid var(--green-800);
  border-radius: var(--r-md);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--green-900);
  line-height: 1.5;
}
.historia-quote::before {
  content: '“';
  font-size: 3.5rem;
  line-height: 0;
  position: relative;
  top: 18px;
  margin-right: 8px;
  color: var(--terracotta);
}
.historia-signature {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.historia-signature-line { width: 40px; height: 1px; background: var(--gold); }
.historia-signature-text {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.historia-signature-text strong {
  color: var(--green-900);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1rem;
  display: block;
  font-family: 'Fraunces', serif;
}

@media (max-width: 820px) {
  .historia-grid { grid-template-columns: 1fr; }
  .historia-visual::before { inset: -12px -12px 12px 12px; }
}

/* ========== SERVICIOS ========== */
.servicios { background: var(--cream); }
.servicios-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: end;
}
.servicios-head h2 { max-width: 520px; margin-top: 1rem; }
.servicios-head p { max-width: 480px; }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.servicio-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 2.2rem 2rem;
  border: 1px solid transparent;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}
.servicio-icon {
  width: 56px; height: 56px;
  margin-bottom: 1.4rem;
  color: var(--green-800);
}
.servicio-icon svg { width: 100%; height: 100%; }
.servicio-card h3 { margin-bottom: 0.8rem; }
.servicio-card p { flex-grow: 1; }
.servicio-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
}
.servicio-link::after { content: '→'; transition: transform .3s var(--ease); }
.servicio-card:hover .servicio-link::after { transform: translateX(4px); }

@media (max-width: 960px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-head { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .servicios-grid { grid-template-columns: 1fr; } }

/* ========== PUNTOS / BOTIQUINES ========== */
.puntos {
  background: var(--green-900);
  color: var(--cream-light);
  position: relative;
  overflow: hidden;
}
.puntos::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196, 122, 86, 0.12), transparent 70%);
  border-radius: 50%;
}
.puntos h2, .puntos .eyebrow { color: var(--cream-light); position: relative; z-index: 1; }
.puntos .eyebrow { color: var(--gold); }
.puntos-intro {
  max-width: 680px;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}
.puntos-intro p {
  color: rgba(245, 239, 228, 0.78);
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.puntos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.punto-card {
  background: rgba(255, 253, 248, 0.04);
  border: 1px solid rgba(245, 239, 228, 0.14);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.punto-card:hover {
  background: rgba(255, 253, 248, 0.08);
  transform: translateY(-4px);
}
.punto-img { aspect-ratio: 16/10; overflow: hidden; }
.punto-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.punto-card:hover .punto-img img { transform: scale(1.06); }
.punto-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.punto-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.punto-card h3 { color: var(--cream-light); margin-bottom: 1rem; }
.punto-info {
  font-size: 0.93rem;
  color: rgba(245, 239, 228, 0.72);
  line-height: 1.6;
  flex: 1;
}
.punto-info > div { display: flex; gap: 0.7rem; margin-bottom: 0.5rem; }
.punto-info svg {
  width: 16px; height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.punto-link {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.punto-link:hover { border-color: var(--gold); }

/* Variante clara para sección rural */
.puntos-grid--light .punto-card {
  background: var(--paper);
  border-color: var(--line);
}
.puntos-grid--light .punto-card h3 { color: var(--green-900); }
.puntos-grid--light .punto-tag { color: var(--terracotta); }
.puntos-grid--light .punto-info { color: var(--ink-soft); }
.puntos-grid--light .punto-info svg { color: var(--green-800); }
.puntos-grid--light .punto-link { color: var(--green-800); }
.puntos-grid--light .punto-link:hover { border-color: var(--green-800); }

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

/* ========== GUARDIA CTA ========== */
.guardia { background: var(--cream); }
.guardia-box {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.guardia-box::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: var(--green-100);
  border-radius: 50%;
  opacity: 0.5;
}
.guardia-icon {
  width: 90px; height: 90px;
  background: var(--terracotta);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--cream-light);
  position: relative;
  z-index: 1;
}
.guardia-icon svg { width: 44px; height: 44px; }
.guardia-text { position: relative; z-index: 1; }
.guardia-text h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.guardia-text p { color: var(--ink-soft); font-size: 1rem; }
.guardia-box .btn { position: relative; z-index: 1; white-space: nowrap; }

@media (max-width: 820px) {
  .guardia-box { grid-template-columns: 1fr; text-align: center; }
  .guardia-icon { margin: 0 auto; }
}

/* ========== PAGE HEADER (interiores) ========== */
.page-header {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  background: var(--paper);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 { margin-bottom: 1.4rem; max-width: 900px; }
.page-header .lead { max-width: 780px; }
.page-header--servicio { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--green-800); transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span:not([aria-current]) { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ========== SERVICIOS DETALLE (página /productos) ========== */
.servicios-detalle { background: var(--cream); padding-block: clamp(3rem, 7vw, 6rem); }
.servicio-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.servicio-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.servicio-block--alt { grid-template-columns: 1.3fr 1fr; }
.servicio-block--alt .servicio-block-visual { order: 2; }
.servicio-block--alt .servicio-block-text { order: 1; }

.servicio-block-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.servicio-block-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.servicio-block-icon {
  width: 35%; max-width: 140px;
  color: var(--green-800);
  opacity: 0.85;
}
.servicio-block-num {
  position: absolute;
  bottom: 1rem;
  right: 1.3rem;
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  background: var(--paper);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.servicio-block-text h2 { margin-bottom: 1rem; }
.servicio-block-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-700);
  margin-bottom: 1.5rem;
}
.servicio-block-content p { margin-bottom: 1rem; }
.servicio-block-content ul {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
}
.servicio-block-content li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.servicio-block-content li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.8rem;
  top: 4px;
}
.servicio-block-text .btn { margin-top: 1.5rem; }

@media (max-width: 820px) {
  .servicio-block, .servicio-block--alt { grid-template-columns: 1fr; }
  .servicio-block--alt .servicio-block-visual,
  .servicio-block--alt .servicio-block-text { order: unset; }
}

/* ========== SERVICIO DETALLE INDIVIDUAL ========== */
.servicio-detalle { padding-block: clamp(3rem, 7vw, 6rem); background: var(--cream); }
.servicio-detalle-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: 4rem;
}
.servicio-detalle-content { font-size: 1.05rem; }
.servicio-detalle-content p { margin-bottom: 1.2rem; line-height: 1.75; }
.servicio-detalle-content ul {
  list-style: none;
  margin: 1.5rem 0;
}
.servicio-detalle-content li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.servicio-detalle-content li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  top: 4px;
  font-size: 0.85rem;
}
.servicio-detalle-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--green-100);
  border-radius: var(--r-md);
  border-left: 4px solid var(--green-800);
}
.servicio-detalle-cta h3 { margin-bottom: 0.6rem; font-size: 1.3rem; }
.servicio-detalle-cta p { margin-bottom: 1.2rem; }

.servicio-detalle-aside { position: sticky; top: 100px; }
.servicio-detalle-icon {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  place-items: center;
  color: var(--green-800);
}
.servicio-detalle-icon svg { width: 100px; height: 100px; }
.servicio-detalle-img {
  margin-bottom: 1.5rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 4 / 3;
}
.servicio-detalle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.servicio-detalle-img:hover img { transform: scale(1.04); }
.servicio-detalle-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem;
}
.servicio-detalle-card h4 { margin-bottom: 1rem; color: var(--green-900); }
.servicio-detalle-card p { margin-bottom: 1rem; font-size: 0.95rem; }
.phone-large {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--green-800);
  font-weight: 500;
  display: inline-block;
  margin: 0.4rem 0;
}

.servicio-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.servicio-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.servicio-nav-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}
.servicio-nav-link--next { text-align: right; }
.servicio-nav-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.servicio-nav-titulo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--green-900);
}

@media (max-width: 820px) {
  .servicio-detalle-grid { grid-template-columns: 1fr; }
  .servicio-detalle-aside { position: static; }
  .servicio-nav { grid-template-columns: 1fr; }
  .servicio-nav-link--next { text-align: left; }
}

/* ========== RURAL (sección de botiquines) ========== */
.rural { background: var(--paper); padding-block: clamp(3rem, 7vw, 6rem); }
.rural-intro { max-width: 760px; margin-bottom: 3rem; }
.rural-intro h2 { margin-top: 1rem; margin-bottom: 1.5rem; }
.rural-intro p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.rural-lema { color: var(--green-800); font-size: 1.2rem; font-family: 'Fraunces', serif; font-style: italic; }

/* ========== CONTACTO ========== */
.contacto { padding-block: clamp(3rem, 7vw, 6rem); background: var(--cream); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contacto-form-wrap {
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.contacto-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.contacto-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.contacto-form .form-row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream-light);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-800);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}
.field--checkbox input { margin-top: 0.3rem; flex-shrink: 0; }
.field--checkbox label { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }
.field--checkbox a { color: var(--green-800); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.contacto-form .btn-block { margin-top: 0.5rem; }

@media (max-width: 620px) {
  .contacto-form .form-row--2 { grid-template-columns: 1fr; }
}

.contacto-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contacto-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem;
}
.contacto-info-card h3 { margin-bottom: 1.2rem; font-size: 1.2rem; }
.contacto-info-list { list-style: none; }
.contacto-info-list li {
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.contacto-info-list li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.contacto-info-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.contacto-info-value {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--green-900);
  font-weight: 500;
  transition: color .3s var(--ease);
}
.contacto-info-value:hover { color: var(--terracotta); }

.contacto-punto {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contacto-punto:last-child { border-bottom: none; }
.contacto-punto h4 { margin-bottom: 0.6rem; color: var(--green-800); }
.contacto-punto h4 small { color: var(--ink-soft); font-weight: 400; font-size: 0.78rem; }
.contacto-punto p { margin-bottom: 0.6rem; font-size: 0.92rem; }
.contacto-punto-horario { color: var(--green-800); font-style: italic; }
.contacto-punto-tels { color: var(--terracotta); font-weight: 600; }

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

/* ========== LEGAL ========== */
.legal { padding-block: clamp(3rem, 7vw, 6rem); background: var(--cream); }
.legal-content {
  max-width: 780px;
  background: var(--paper);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  color: var(--green-900);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1.2rem; line-height: 1.75; }
.legal-update { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* ========== ERROR PAGE ========== */
.error-page { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; background: var(--cream); }
.error-content { max-width: 560px; margin: 0 auto; }
.error-code {
  font-family: 'Fraunces', serif;
  font-size: clamp(5rem, 18vw, 10rem);
  color: var(--terracotta);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}
.error-content h2 { margin-bottom: 1rem; }
.error-content p { margin-bottom: 2rem; font-size: 1.1rem; }
.error-content .hero-actions { justify-content: center; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--green-900);
  color: rgba(245, 239, 228, 0.78);
  padding-block: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .logo-text, .footer-brand .logo-text small { color: var(--cream-light); }
.footer-brand p {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: rgba(245, 239, 228, 0.65);
  line-height: 1.6;
}
.footer h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(245, 239, 228, 0.12);
}
.footer ul { list-style: none; }
.footer-contact li, .footer-hours li {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.footer-contact a { transition: color .3s var(--ease); }
.footer-contact a:hover { color: var(--gold); }
.footer-contact strong, .footer-hours strong {
  color: var(--cream-light);
  font-weight: 500;
  display: block;
  margin-bottom: 0.15rem;
}
.footer-hours .hours-block { margin-bottom: 1.2rem; }
.footer-hours .hours-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 228, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(245, 239, 228, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { transition: color .3s var(--ease); }
.footer-legal a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.08);
  color: var(--cream-light);
  transition: all .3s var(--ease);
  border: 1px solid rgba(245, 239, 228, 0.12);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover {
  background: var(--gold);
  color: var(--green-900);
  transform: translateY(-2px);
  border-color: var(--gold);
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg { width: 30px; height: 30px; }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}
