/* ═══════════════════════════════════════════
   MESENIA CENTRO MÉDICO — Estilos principales
   Paleta: teal marca (#3ecfc8) · carbón · blanco
   ═══════════════════════════════════════════ */

:root {
  --primary:        #3ecfc8;   /* teal marca — rótulo */
  --primary-mid:    #2db8b1;   /* teal oscuro */
  --primary-dark:   #1c2020;   /* carbón rótulo */
  --primary-light:  #e0faf8;   /* teal muy suave */
  --primary-pale:   #f0fdfc;
  --accent:         #e0faf8;
  --text:           #1c2020;   /* carbón */
  --text-mid:       #3a4545;
  --text-light:     #7a9090;
  --white:          #ffffff;
  --bg:             #f5fbfb;   /* fondo ligeramente teñido de teal */
  --success:        #2e9e6b;
  --danger:         #d44f4f;
  --warning:        #e8960c;

  /* Service colors */
  --pod:   #3ecfc8;
  --fis:   #2e9e6b;
  --est:   #8b4fa0;
  --nut:   #d47e10;
  --psi:   #4a60a0;

  --radius:       20px;
  --radius-sm:    12px;
  --radius-pill:  50px;
  --shadow:       0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 40px rgba(0,0,0,0.10);
  --transition:   0.26s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Typography ─── */
em { font-style: italic; color: var(--primary); }
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 0.6rem;
}
h1, h2, h3 { line-height: 1.2; }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }

/* ─── Layout ─── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-desc { color: var(--text-mid); margin-top: 0.8rem; font-size: 0.95rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-dark);   /* texto oscuro sobre teal claro */
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62,207,200,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(28,32,32,0.25);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ─── Reveal animations ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══ HEADER ═══ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--primary-dark);   /* carbón del rótulo */
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark { width: 34px; height: 34px; color: var(--primary); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); }
.logo-sub { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.38); }

/* Nav — sobre fondo oscuro */
#nav { margin-left: auto; display: flex; align-items: center; gap: 0.3rem; }
#nav a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: var(--transition);
}
#nav a:hover { color: var(--primary); background: rgba(255,255,255,0.06); }
#nav a.active-link { color: var(--primary); }
#nav .nav-cta {
  background: var(--primary);
  color: var(--primary-dark);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-left: 0.4rem;
}
#nav .nav-cta:hover { background: var(--primary-mid); transform: translateY(-1px); }

/* Burger */
#burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
#burger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  gap: 2.5rem;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #edfdfb 0%, #f5fbfb 50%, #e8faf8 100%);
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 0.8rem;
}
.hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-mid);
  margin: 0.7rem 0;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid rgba(62,207,200,0.18);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  box-shadow: var(--shadow);
}
.hero-badge i { color: var(--primary); font-size: 0.95rem; }

/* ═══ MARQUEE ═══ */
.marquee-wrap {
  background: var(--primary-dark);   /* carbón del rótulo */
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);   /* teal del rótulo */
  white-space: nowrap;
}
.marquee-track .dot { color: rgba(62,207,200,0.35); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ═══ STRIP ═══ */
.strip { background: var(--white); border-bottom: 1px solid rgba(62,207,200,0.12); }
.strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}
.strip-item i { color: var(--primary); }
.strip-item a { color: var(--primary); font-weight: 600; }
.strip-item a:hover { text-decoration: underline; }

/* ═══ SERVICIOS ═══ */
.servicios { background: var(--white); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.card--podologia .card-icon   { background: rgba(62,207,200,0.13); color: var(--pod); }
.card--fisioterapia .card-icon{ background: rgba(46,158,107,0.1);  color: var(--fis); }
.card--estetica .card-icon    { background: rgba(139,79,160,0.1);  color: var(--est); }
.card--nutricion .card-icon   { background: rgba(212,126,16,0.1);  color: var(--nut); }
.card--psicologia .card-icon  { background: rgba(74,96,160,0.1);   color: var(--psi); }
.card h3 { color: var(--text); }
.card p { color: var(--text-mid); font-size: 0.88rem; flex-grow: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.2rem;
  transition: var(--transition);
}
.card-link:hover { gap: 0.7rem; }

/* ═══ VENTAJAS ═══ */
.ventajas { background: var(--bg); }
.ventajas-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.ventajas-intro {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.7;
}
.ventajas-list { display: flex; flex-direction: column; gap: 1.5rem; }
.ventaja-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.ventaja-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ventaja-item strong { display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }
.ventaja-item p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.5; }

/* ═══ BENEFICIOS ═══ */
.beneficios { background: var(--white); }
.tags-cloud { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.tags-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}
.tags-cloud span i { font-size: 0.7rem; }

/* ═══ HORARIO ═══ */
.horario { background: var(--bg); }
.horario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.horario-text p { color: var(--text-mid); font-size: 0.95rem; }
.horario-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.horario-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.horario-table { width: 100%; border-collapse: collapse; }
.horario-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 0 0.8rem;
}
.horario-table td {
  padding: 0.7rem 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.horario-table td:first-child { font-weight: 600; color: var(--text); }
.horario-table td.open { color: var(--success); font-weight: 600; }
.horario-table td.closed { color: var(--text-light); }
.horario-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.82rem;
  color: var(--text-light);
}
.horario-note i { color: var(--primary-mid); flex-shrink: 0; margin-top: 2px; }

/* ═══ CONTACTO ═══ */
.contacto { background: var(--white); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
address { font-style: normal; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item i {
  width: 40px; height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.2rem; }
.contact-item span, .contact-item a { font-size: 0.92rem; color: var(--text-mid); line-height: 1.5; }
.contact-item a { color: var(--primary); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.google-business-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 0.75rem 1rem;
  background: #f5f0ff;
  border-radius: var(--radius-sm);
}
.google-business-note i { color: #4285f4; }
.contacto-map iframe {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  border: none;
  display: block;
}

/* ═══ FOOTER ═══ */
.footer { background: var(--text); color: rgba(255,255,255,0.65); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-logo .logo-mark { width: 30px; height: 30px; color: var(--primary-mid); }
.footer-logo .logo-brand { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.4); }
.footer p { font-size: 0.87rem; line-height: 1.65; }
.footer h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul li a { font-size: 0.87rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--white); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.87rem;
}
.footer-contact li i { color: var(--primary-mid); margin-top: 3px; flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,0.65); }
.footer-contact li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  font-size: 0.8rem;
  text-align: center;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
  .ventajas-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  .horario-grid, .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contacto-map iframe { height: 280px; }
}

@media (max-width: 768px) {
  /* Nav móvil */
  #nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1.5rem 1.2rem;
    gap: 0.2rem;
    z-index: 800;
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow-y: auto;
  }
  #nav.open { display: flex; }
  #nav a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.75);
  }
  #nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  #burger { display: flex; }

  /* Hero */
  .hero { padding: 7rem 1.2rem 3rem; gap: 1.8rem; min-height: auto; }
  .hero-bg { position: absolute; } /* evita salto en iOS */
  .hero-content h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-tagline { font-size: 1rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-badges { gap: 0.5rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.45rem 0.75rem; }

  /* Secciones */
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Horario */
  .horario-table-wrap { padding: 1.4rem; }

  /* Contacto */
  .contact-actions { flex-direction: column; }
  .contacto-map iframe { height: 240px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; padding: 3rem 1.2rem 2rem; }
}

@media (max-width: 500px) {
  /* Header */
  .header-inner { padding: 0 1rem; height: 60px; }
  .logo-brand { font-size: 0.9rem; }

  /* Hero */
  .hero { padding: 6.5rem 1rem 2.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-badges { flex-direction: column; gap: 0.4rem; }
  .hero-badge { width: 100%; }

  /* Servicios */
  .cards-grid { grid-template-columns: 1fr; }

  /* Strip */
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.9rem 1rem; }

  /* Ventajas */
  .ventajas-list { gap: 1.2rem; }

  /* Horario */
  .horario-ctas { flex-direction: column; }
  .horario-ctas .btn { width: 100%; justify-content: center; }

  /* Tags */
  .tags-cloud { gap: 0.4rem; }
  .tags-cloud span { font-size: 0.78rem; padding: 0.38rem 0.8rem; }

  /* Contacto */
  .contacto-grid { gap: 2rem; }
  .contact-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { padding: 2.5rem 1rem 2rem; }
  .footer-bottom { font-size: 0.72rem; padding: 1rem; }
}
