/* ============================================
   Farmacia Arce Bueno — Estilos principales
   ============================================ */

:root {
  --verde-principal: #7C9473;
  --verde-oscuro: #3E4F38;
  --verde-suave: #DCE5D6;
  --crema: #FAF7F0;
  --crema-oscuro: #F1ECE1;
  --terracota: #D9825F;
  --terracota-oscuro: #B9663F;
  --texto: #34362E;
  --texto-suave: #6B6F62;
  --blanco: #FFFFFF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radio: 14px;
  --radio-grande: 22px;
  --sombra: 0 8px 30px rgba(62, 79, 56, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--verde-oscuro);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracota-oscuro);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8em;
  background: rgba(217, 130, 95, 0.10);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 130, 95, 0.20);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracota);
  flex-shrink: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--texto-suave);
  max-width: 620px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--verde-oscuro);
  color: var(--crema);
}
.btn-primary:hover {
  background: var(--terracota-oscuro);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--verde-oscuro);
  border-color: var(--verde-oscuro);
}
.btn-secondary:hover {
  background: var(--verde-oscuro);
  color: var(--crema);
}

.btn-light {
  background: var(--crema);
  color: var(--verde-oscuro);
}
.btn-light:hover {
  background: var(--terracota);
  color: var(--crema);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */

.top-bar {
  background: var(--verde-oscuro);
  color: var(--crema);
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar a:hover { color: var(--terracota); }
.top-bar-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

header.site-header {
  background: var(--crema);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--crema-oscuro);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--verde-oscuro);
}
.logo img {
  height: 62px;
  width: auto;
  border-radius: 14px;
  padding: 5px;
  background: var(--blanco);
  box-shadow: 0 2px 12px rgba(62,79,56,0.10);
}
.logo span small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--terracota-oscuro);
  text-transform: uppercase;
}

nav.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  font-weight: 500;
  font-size: 0.96rem;
}
nav.main-nav a {
  position: relative;
  padding: 4px 0;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracota);
  border-radius: 2px;
  transition: width 0.2s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--terracota-oscuro);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--verde-oscuro);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--verde-suave) 0%, var(--crema) 60%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero-copy p.lead {
  margin: 18px 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 0.85rem;
  color: var(--texto-suave);
}
.hero-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terracota-oscuro);
  font-weight: 600;
}

.hero-media {
  position: relative;
  border-radius: var(--radio-grande);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4/5;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tag {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--crema);
  border-radius: var(--radio);
  padding: 14px 18px;
  box-shadow: var(--sombra);
  font-size: 0.85rem;
  max-width: 220px;
  border-left: 3px solid var(--terracota);
}
.hero-tag strong {
  display: block;
  font-family: var(--serif);
  color: var(--verde-oscuro);
  margin-bottom: 2px;
}

/* ---------- Sección genérica ---------- */

.section {
  padding: 84px 0;
}
.section-tight { padding: 56px 0; }
.section-alt {
  background: var(--blanco);
}
.section-dark {
  background: var(--verde-oscuro);
  color: var(--crema);
}
.section-dark h2,
.section-dark h3 { color: var(--crema); }
.section-dark .lead { color: var(--verde-suave); }

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grids de servicios ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--blanco);
  border: 1px solid var(--crema-oscuro);
  border-radius: var(--radio-grande);
  padding: 28px 26px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 3px solid transparent;
}
.service-card:hover {
  border-color: var(--crema-oscuro);
  border-top-color: var(--terracota);
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--verde-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-oscuro);
  transition: background 0.2s ease;
}
.service-card:hover .service-icon {
  background: rgba(217, 130, 95, 0.15);
  color: var(--terracota-oscuro);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 0; }
.service-card p {
  color: var(--texto-suave);
  font-size: 0.95rem;
  flex-grow: 1;
}
.service-card .card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--terracota-oscuro);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Punto de salud / about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  border-radius: var(--radio-grande);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.about-stat {
  border-left: 3px solid var(--terracota);
  padding-left: 14px;
}
.about-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--terracota-oscuro);
}
.about-stat span {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

/* ---------- Agenda / talleres (signature) ---------- */

.agenda {
  background: var(--crema-oscuro);
  border-radius: var(--radio-grande);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.agenda-item {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agenda-item .agenda-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--terracota-oscuro);
  background: rgba(217, 130, 95, 0.10);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
}
.agenda-item h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--verde-oscuro);
}
.agenda-item p {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* ---------- Mapa / contacto ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.location-card {
  background: var(--blanco);
  border-radius: var(--radio-grande);
  padding: 36px;
  box-shadow: var(--sombra);
}
.location-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 28px;
}
.location-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.location-list .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(217, 130, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracota-oscuro);
}
.location-list strong { display: block; }
.location-list span { color: var(--texto-suave); font-size: 0.92rem; }

.map-frame {
  border-radius: var(--radio-grande);
  overflow: hidden;
  box-shadow: var(--sombra);
  min-height: 420px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 420px;
}

/* ---------- CTA banda ---------- */

.cta-band {
  background: var(--terracota);
  color: var(--crema);
  border-radius: var(--radio-grande);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--crema); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .btn-light:hover { background: var(--verde-oscuro); color: var(--crema); }

/* ---------- Footer ---------- */

footer {
  background: var(--verde-oscuro);
  color: var(--verde-suave);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--crema);
  margin-bottom: 14px;
}
.footer-logo img { height: 40px; width: 40px; }
footer h4 {
  color: var(--crema);
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
footer ul a:hover { color: var(--terracota); }
footer p { font-size: 0.92rem; color: var(--verde-suave); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover { color: var(--terracota); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover {
  background: var(--terracota);
  border-color: var(--terracota);
}

/* ---------- Página interior: hero pequeño ---------- */

.page-hero {
  background: var(--verde-suave);
  padding: 64px 0 48px;
}
.page-hero .eyebrow { margin-bottom: 0.4em; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--terracota-oscuro); }

/* ---------- Listado servicios (página servicios) ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--crema-oscuro);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media {
  border-radius: var(--radio-grande);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.service-tags span {
  background: var(--verde-suave);
  color: var(--verde-oscuro);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--crema-oscuro);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--verde-oscuro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--terracota);
  font-family: var(--sans);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin-top: 12px;
  color: var(--texto-suave);
  max-width: 640px;
}

/* ---------- Equipo ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  text-align: center;
}
.team-card img {
  border-radius: var(--radio-grande);
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: var(--sombra);
}
.team-card span {
  display: block;
  color: var(--terracota-oscuro);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  background: var(--blanco);
  border-radius: var(--radio-grande);
  overflow: hidden;
  border: 1px solid var(--crema-oscuro);
  display: flex;
  flex-direction: column;
}
.blog-card img { aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.blog-card-body .eyebrow { margin-bottom: 0; }
.blog-card-body p { color: var(--texto-suave); font-size: 0.92rem; flex-grow: 1; }
.blog-card-body .card-link { font-weight: 600; color: var(--terracota-oscuro); font-size: 0.88rem; }

.blog-article {
  max-width: 720px;
  margin: 0 auto;
}
.blog-article img {
  border-radius: var(--radio-grande);
  margin: 24px 0 36px;
  box-shadow: var(--sombra);
}
.blog-article h2 { margin-top: 1.4em; }
.blog-article p { margin-bottom: 1.2em; color: var(--texto); }
.blog-article ul { margin: 0 0 1.2em 1.2em; color: var(--texto); }
.blog-article li { margin-bottom: 0.4em; }
.article-meta {
  color: var(--texto-suave);
  font-size: 0.9rem;
  margin-bottom: 1.5em;
}

/* ---------- Formulario contacto ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin-bottom: 6px;
  display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--crema-oscuro);
  border-radius: var(--radio);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--crema);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--verde-principal);
  background: var(--blanco);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #3E4F38;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crema);
  box-shadow: var(--sombra);
  z-index: 100;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--terracota); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero .container,
  .about-grid,
  .location-grid,
  .service-detail,
  .service-detail:nth-child(even) .service-detail-media {
    grid-template-columns: 1fr;
    order: initial;
  }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  .services-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .services-grid,
  .team-grid,
  .blog-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { flex-direction: column; text-align: center; }
  .top-bar-info { gap: 14px; }
  .top-bar .container { justify-content: center; text-align: center; }
}

/* ---------- Menú móvil ---------- */

.mobile-nav {
  display: none;
  background: var(--blanco);
  border-top: 1px solid var(--crema-oscuro);
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid var(--crema-oscuro);
  font-weight: 500;
}
.mobile-nav .nav-cta {
  padding: 16px 24px;
  flex-direction: column;
  align-items: stretch;
}
.mobile-nav .btn { justify-content: center; }
