/* =========================================================
   FARMACIAS ANMI - LANDING FINAL
   Aquí puedes cambiar colores, tamaños y estilo general.
========================================================= */

:root {
  /* COLORES PRINCIPALES */
  --teal: #00a6b7;
  --teal-dark: #078091;
  --blue: #063b8d;
  --green: #11a650;

  /* COLORES BASE */
  --bg: #f7fbfc;
  --soft: #e9f7f9;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #d9eef2;

  /* SOMBRAS, RADIOS Y ANCHO */
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* ================= BOTONES ================= */
/* Cambia padding, radius o colores aquí para modificar todos los botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(0, 166, 183, 0.22);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal-dark);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--facebook {
  background: #1877f2;
  color: var(--white);
}

.btn--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: var(--white);
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 166, 183, 0.12);
}

.header__inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Tamaño del logo */
.logo img {
  width: 165px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--teal);
}

.menu-btn {
  display: none;
  background: var(--soft);
  color: var(--teal-dark);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.6rem;
}

/* ================= HERO ================= */
.hero {
  background: var(--white);
  padding: 76px 0 52px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.eyebrow,
.section-label {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  margin-bottom: 22px;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--teal);
}

.hero__text {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero__items {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.hero-item i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hero-item h3 {
  font-size: 1rem;
  color: var(--blue);
}

.hero-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

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

/* Imagen principal del hero */
.hero__visual {
  position: relative;
  min-height: 520px;
  border-radius: 0 0 0 120px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero__visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 235px;
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
}

.hero-card i {
  color: var(--teal);
  font-size: 1.7rem;
}

.hero-card h3 {
  color: var(--blue);
  line-height: 1.15;
  margin-bottom: 6px;
}

.hero-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.hero-card a {
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ================= BENEFICIOS ================= */
.benefits {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: var(--white);
}

.benefits__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefits article {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.benefits article:last-child {
  border-right: none;
}

.benefits i {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.benefits h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.benefits p {
  opacity: 0.82;
  font-size: 0.88rem;
}

/* ================= SECCIONES GENERALES ================= */
section {
  scroll-margin-top: 100px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2,
.clinic h2,
.hours h2,
.social h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-head p,
.clinic__copy p,
.social__copy p {
  color: var(--muted);
}

/* ================= SERVICIOS ================= */
.services {
  padding: 76px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
}

.service-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.panel-title>i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.panel-title h3 {
  color: var(--blue);
  font-size: 1.35rem;
}

.panel-title p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Controla las 2 columnas de servicios del consultorio */
.check-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.check-list i {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ================= CONSULTORIO ================= */
.clinic {
  padding: 76px 0;
  background: var(--white);
}

.clinic__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.clinic__copy p {
  margin-bottom: 24px;
}

.clinic__copy .check-list {
  margin-bottom: 28px;
}

.clinic__image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 120px 0 120px 0;
  box-shadow: var(--shadow);
}

/* ================= HORARIOS ================= */
.hours {
  padding: 76px 0;
}

.hours__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hour-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.hour-card i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.hour-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
}

.hour-card p {
  color: var(--muted);
  margin-bottom: 6px;
}

/* ================= REDES ================= */
.social {
  padding: 76px 0;
  background: var(--white);
}

.social__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.social__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.fb-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.fb-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.fb-card__head i {
  font-size: 2.5rem;
  color: #1877f2;
}

.fb-card__head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.fb-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.fb-posts img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ================= CONTACTO ================= */
.contact {
  padding: 76px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 14px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}

.info-card i {
  color: var(--teal);
  font-size: 1.8rem;
}

.info-card h3 {
  color: var(--blue);
  margin-bottom: 4px;
}

.info-card p {
  color: var(--muted);
}

.info-card a {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 800;
  margin-top: 8px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--blue);
  font-size: 1.5rem;
}

.contact-form p {
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 16px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 166, 183, 0.12);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--teal);
  color: var(--white);
  padding: 32px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.footer img {
  width: 150px;
  filter: none;
}

.footer__inner div:not(:first-child) {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer i {
  font-size: 1.6rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.92;
}

/* ================= BOTÓN FLOTANTE ================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: teal;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  box-shadow: 0 12px 30px rgba(37, 205, 211, 0.35);
  z-index: 80;
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ================= ANIMACIONES ================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .header__inner {
    height: auto;
    min-height: 76px;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .header__cta {
    display: none;
  }

  .hero__inner,
  .clinic__grid,
  .social__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .check-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero__visual {
    min-height: auto;
    border-radius: 28px;
  }

  .hero__visual img {
    height: 360px;
  }

  .benefits__inner,
  .hours__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinic__image img {
    height: 320px;
    border-radius: 28px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .logo img {
    width: 140px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero__actions,
  .social__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .benefits__inner,
  .hours__grid {
    grid-template-columns: 1fr;
  }

  .benefits article {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .fb-posts {
    grid-template-columns: 1fr;
  }

  .info-card {
    flex-direction: column;
  }

  .contact-form {
    padding: 24px 18px;
  }
}