/* ============================================
   BLANCA MORALES — NUTRICIÓN DEPORTIVA
   style.css — Producción
   ============================================ */

:root {
  --verde-p: #3a6060;
  --verde-c: #4d8282;
  --turquesa: #a8dadc;
  --crema: #fdfdfb;
  --franja-cta: #f0f5f5;
  --borde: #dce7e7;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #888;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius-card: 28px;
  --radius-btn: 14px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--crema);
  color: var(--text-dark);
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 17px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── LAYOUT ── */
.content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 8%;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--transition),
    transform 0.7s var(--transition);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 253, 251, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(168, 218, 220, 0.25);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(58, 96, 96, 0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  color: var(--verde-p);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-menu a:not(.nav-cta)::after {
  display: none;
}
.nav-menu a:not(.nav-cta):hover::after {
  width: 100%;
}
.nav-menu a.nav-cta {
  background: var(--verde-p);
  color: white;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.85rem;
  transition:
    background var(--transition),
    transform var(--transition);
}
.nav-menu a.nav-cta:hover {
  background: var(--verde-c);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--verde-p);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ── */
.hero-section {
  padding: 140px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 70px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--verde-c);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 22px;
  font-weight: 400;
}
.highlight {
  color: var(--verde-c);
  font-style: italic;
}
.subtitle {
  font-size: 1.15rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 480px;
}
.location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 20px;
  margin-bottom: 32px;
}
.location i {
  color: var(--verde-c);
  margin-top: 2px;
  flex-shrink: 0;
}
.hero-img img {
  width: 100%;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ── BOTÓN WHATSAPP ── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--verde-p);
  color: white;
  padding: 17px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  max-width: 420px;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  letter-spacing: 0.01em;
}
.btn-whatsapp:hover {
  background: var(--verde-c);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(58, 96, 96, 0.25);
}
.btn-whatsapp:active {
  transform: translateY(-1px);
}
.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--verde-p);
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  max-width: 420px;
  border: 2px solid var(--borde);
  margin-top: 14px;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}
.btn-instagram:hover {
  border-color: var(--verde-c);
  background: var(--franja-cta);
  color: var(--verde-c);
}
.btn-instagram i {
  font-size: 1.2rem;
}
.icon-chat {
  color: var(--turquesa);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── CREDENCIALES ── */
.credentials-bar {
  background: white;
  padding: 36px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}
.credentials-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}
.credentials-grid .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.8px;
  color: var(--verde-p);
  text-transform: uppercase;
}
.credentials-grid .item i {
  color: var(--verde-c);
  font-size: 1rem;
}

/* ── SERVICIOS ── */
.services-section {
  background: var(--verde-p);
  padding: 90px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: white;
  padding: 38px 30px;
  border-radius: var(--radius-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card .icon {
  color: var(--verde-p);
  font-size: 1.3rem;
  margin-bottom: 20px;
  background: var(--franja-cta);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.65;
}

/* ── SOBRE MÍ ── */
.about-section {
  padding: 100px 0;
}
.about-section .content-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 80px;
}
.about-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.about-text h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.2rem;
  color: var(--verde-p);
  margin-bottom: 20px;
  font-weight: 400;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.about-p2 {
  margin-top: 16px;
}
.certifications-box {
  background: var(--verde-p);
  color: white;
  padding: 36px 38px;
  border-radius: 22px;
  margin-top: 32px;
}
.certifications-box h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--turquesa);
}
.certifications-box ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.certifications-box li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(168, 218, 220, 0.2);
  font-size: 1rem;
  align-items: flex-start;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}
.certifications-box li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.certifications-box li i {
  color: var(--turquesa);
  margin-top: 4px;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.certifications-box li span {
  display: block;
}

/* ── CTA FINAL ── */
.cta-divider {
  background: var(--franja-cta);
  border-top: 1px solid var(--borde);
  padding: 90px 0;
  text-align: center;
}
.cta-divider h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 32px;
  font-weight: 400;
  color: var(--text-dark);
}
.cta-divider .btn-whatsapp {
  margin: 0 auto;
}

/* ── FOOTER ── */
.main-footer {
  background: #fffef6;
  padding: 70px 0 30px;
  border-top: 1px solid var(--borde);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-start;
}
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 28px;
}
.footer-address,
.footer-contact,
.footer-instagram {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-address i,
.footer-contact i,
.footer-instagram i {
  color: var(--verde-c);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-info p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.footer-info a {
  color: var(--verde-c);
  font-weight: 600;
  transition: opacity var(--transition);
}
.footer-info a:hover {
  opacity: 0.75;
}

.hours-card {
  background: white;
  padding: 32px 36px;
  border-radius: 22px;
  border: 1px solid var(--borde);
  min-width: 360px;
  box-shadow: var(--shadow-sm);
}
.hours-card h5 {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  color: var(--verde-p);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hr-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.hr-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.footer-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 18px;
  border-top: 1px solid var(--borde);
  padding-top: 16px;
  font-style: italic;
}
.copyright {
  text-align: center;
  margin-top: 50px;
  color: #ccc;
  font-size: 0.78rem;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-wrapper {
    padding: 0 5%;
  }
  .hero-grid {
    gap: 50px;
  }
  h1 {
    font-size: 2.6rem;
  }
  .about-grid {
    gap: 50px;
  }
  .hours-card {
    min-width: 280px;
  }
  .services-section {
    padding: 80px 0;
  }
  .about-section {
    padding: 85px 0;
  }
  .cta-divider {
    padding: 80px 0;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — MÓVIL (max 768px)
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 28px;
  }

  /* Navbar */
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #fffef6;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 80px 40px;
    z-index: 999;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    font-size: 1.6rem;
    font-family: "DM Serif Display", Georgia, serif;
    padding: 32px 0;
    width: 100%;
    text-align: center;
    color: var(--verde-p);
    font-weight: 400;
    border-bottom: none;
  }
  .nav-menu a:last-child {
    border-bottom: none;
  }
  .nav-menu a.nav-cta {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    background: var(--verde-p);
    color: white;
    margin-top: 16px;
    padding: 18px 48px;
    width: auto;
    border-radius: 14px;
    display: inline-flex;
  }

  /* Hero*/
  .hero-section {
    padding: 105px 0 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-img {
    order: 1;
  }
  .hero-img img {
    width: 220px;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
  }
  .subtitle {
    margin: 0 auto 22px;
  }
  .location {
    justify-content: center;
  }
  .btn-whatsapp {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Credenciales */
  .credentials-bar {
    padding: 40px 0;
  }
  .credentials-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  /* Servicios */
  .services-section {
    padding: 70px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* About */
  .about-section {
    padding: 80px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .about-img {
    display: flex;
    justify-content: center;
  }
  .about-img img {
    max-width: 80%;
  }
  .certifications-box {
    text-align: left;
  }
  .certifications-box li {
    font-size: 0.97rem;
  }

  /* CTA */
  .cta-divider {
    padding: 75px 0;
  }
  .cta-divider .btn-whatsapp {
    max-width: 100%;
  }

  /* Footer */
  .main-footer {
    padding: 60px 0 30px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 44px;
    align-items: center;
    text-align: center;
  }
  .footer-address,
  .footer-contact,
  .footer-instagram {
    justify-content: center;
  }
  .hours-card {
    min-width: unset;
    width: 100%;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — PEQUEÑO (max 420px)
   ══════════════════════════════════════ */
@media (max-width: 420px) {
  .content-wrapper {
    padding: 0 18px;
  }
  h1 {
    font-size: 1.85rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .btn-whatsapp {
    font-size: 0.9rem;
    padding: 16px 18px;
  }
  .certifications-box {
    padding: 28px 22px;
  }
  .certifications-box li {
    font-size: 0.93rem;
  }
  .hours-card {
    padding: 28px 22px;
  }
}

/* ── ACCESIBILIDAD ── */
:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
