/* ============================================================
   Jackeline Cáceres — Centro de Bienestar & Estética Integral
   Hoja de estilos principal (mobile-first)
   ============================================================ */

:root {
  /* Paleta de marca */
  --green: #8CC63F;          /* verde lima del logo — acento y CTAs */
  --green-dark: #74a832;     /* hover de CTAs */
  --green-soft: #f0f7e4;     /* fondos suaves verdes */
  --ink: #20241d;            /* texto principal */
  --gray: #62685c;           /* texto secundario */
  --cream: #faf9f4;          /* fondo crema */
  --white: #ffffff;
  --wa: #25D366;             /* verde oficial WhatsApp (botón flotante) */

  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(32, 36, 29, .09);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 64px 0; }
.section--cream { background: var(--cream); }

.section__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 700;
}

.section__intro { color: var(--gray); max-width: 560px; }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(140, 198, 63, .35);
}
.btn--whatsapp:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(140, 198, 63, .45); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(32, 36, 29, .25);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); }

.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

.icon-wa { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 18px rgba(32, 36, 29, .08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

/* Logo tipográfico (temporal — ver [PLACEHOLDER LOGO] en index.html) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.logo__butterfly { width: 30px; height: 30px; color: var(--green); flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.logo__name em { font-style: normal; color: var(--green); font-weight: 700; }
.logo__surname {
  font-size: .62rem;
  letter-spacing: .52em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

.nav { display: none; }

.btn--header { padding: 10px 18px; font-size: .88rem; }
.btn--header span { display: none; }

@media (min-width: 480px) {
  .btn--header span { display: inline; }
}

@media (min-width: 860px) {
  .nav { display: flex; gap: 26px; }
  .nav__link {
    text-decoration: none;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 500;
    position: relative;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--green);
    transition: width .25s ease;
  }
  .nav__link:hover::after { width: 100%; }
}

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86svh;
  padding: 72px 0;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250, 249, 244, .94) 0%,
    rgba(250, 249, 244, .82) 45%,
    rgba(250, 249, 244, .94) 100%);
}

.hero__content { max-width: 700px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(140, 198, 63, .35);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__badge-leaf { width: 15px; height: 15px; }

.hero__title {
  font-size: clamp(1.75rem, 6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.015em;
}

.hero__title-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.06em;
}

.hero__subtitle {
  color: var(--gray);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  max-width: 540px;
  margin-bottom: 28px;
}

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

.hero__note { font-size: .82rem; color: var(--gray); margin-top: 14px; }

@media (min-width: 860px) {
  .hero__overlay {
    background: linear-gradient(90deg,
      rgba(250, 249, 244, .97) 0%,
      rgba(250, 249, 244, .9) 48%,
      rgba(250, 249, 244, .35) 100%);
  }
}

/* ============================================================
   2. Quiénes somos
   ============================================================ */
.about__grid { display: grid; gap: 40px; align-items: center; }

.about__media { position: relative; max-width: 460px; }
.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.about__media-card {
  position: absolute;
  bottom: -18px;
  right: -6px;
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.2;
}
.about__media-num { display: block; font-size: 1.9rem; font-weight: 700; }
.about__media-label { font-size: .78rem; font-weight: 500; }

.about__lead {
  font-family: var(--font-accent);
  font-size: 1.45rem;
  color: var(--green-dark);
  line-height: 1.4;
}

@media (min-width: 860px) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* ============================================================
   3. Servicios
   ============================================================ */
.services__grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(32, 36, 29, .06);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(32, 36, 29, .05);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card__title { font-size: 1.1rem; font-weight: 600; }
.service-card__desc { color: var(--gray); font-size: .93rem; flex-grow: 1; }

.service-card__link {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-dark);
}
.service-card__link:hover { text-decoration: underline; }

.services__hint {
  margin-top: 34px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gray);
  max-width: 620px;
}

@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   3b. Empresas (B2B) — bloque oscuro, visualmente distinto
   ============================================================ */
.b2b { background: var(--ink); color: #eef0ea; }

.b2b__inner { display: grid; gap: 36px; align-items: center; }

.b2b__media img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.b2b__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.b2b__title { font-size: clamp(1.5rem, 4vw, 2.1rem); color: #fff; }

.b2b__content p { color: #c9cec2; }

.b2b__list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.b2b__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #dfe3d8;
  font-size: .95rem;
}
.b2b__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

@media (min-width: 860px) {
  .b2b__inner { grid-template-columns: 5fr 6fr; gap: 60px; }
}

/* ============================================================
   4. Por qué elegirme
   ============================================================ */
.why__grid { display: grid; gap: 22px; margin-top: 36px; }

.why-item { display: flex; gap: 16px; align-items: flex-start; }

.why-item__check {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.why-item h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.why-item p { color: var(--gray); font-size: .93rem; margin: 0; }

@media (min-width: 720px) { .why__grid { grid-template-columns: 1fr 1fr; column-gap: 44px; } }

/* ============================================================
   5. Testimonios
   ============================================================ */
.testimonials__grid { display: grid; gap: 18px; margin-top: 36px; }

.testimonial {
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(32, 36, 29, .06);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(32, 36, 29, .05);
  display: flex;
  flex-direction: column;
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-size: .96rem;
  color: var(--ink);
  flex-grow: 1;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  line-height: 1.35;
}
.testimonial figcaption small { color: var(--gray); display: block; }

.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (min-width: 860px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final {
  background:
    radial-gradient(circle at 85% 20%, rgba(140, 198, 63, .18), transparent 45%),
    var(--green-soft);
  text-align: center;
}
.cta-final__title {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink);
}
.cta-final__text { color: var(--gray); margin-bottom: 26px; }

/* ============================================================
   6. Ubicación y contacto
   ============================================================ */
.contact__grid { display: grid; gap: 36px; }

.contact__address { font-style: normal; color: var(--gray); }
.contact__address strong { color: var(--ink); }
.contact__address a { font-weight: 600; }

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.social-group__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 8px;
}

.social-group__links { display: flex; gap: 10px; }

.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(32, 36, 29, .15);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }

.contact__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .contact__map iframe { height: 400px; }
}

/* ============================================================
   7. Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #b9bfb1;
  padding: 44px 0 90px; /* espacio inferior extra para no chocar con el botón flotante */
  text-align: center;
  font-size: .88rem;
}

.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.logo--footer { color: #fff; margin-bottom: 4px; }
.logo--footer .logo__surname { color: #b9bfb1; }

.footer__tagline { color: var(--green); font-weight: 500; margin-bottom: 12px; }
.footer__data a { color: #fff; }

.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.social-icon--footer { border-color: rgba(255, 255, 255, .22); color: #d5dacc; }
.social-icon--footer:hover { border-color: var(--green); color: var(--green); }

.footer__copy { margin-top: 16px; font-size: .78rem; color: #838a7a; }

/* Marca de agua del desarrollador — discreta */
.footer__credit { margin: 2px 0 0; font-size: .72rem; color: #6d745f; }
.footer__credit a {
  color: #8d9480;
  text-decoration: none;
  font-weight: 500;
}
.footer__credit a:hover { color: var(--green); }

/* ============================================================
   Botón flotante de WhatsApp
   ============================================================ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, .5); }
.wa-float svg { width: 26px; height: 26px; }

/* Pulso sutil para llamar la atención sin hacer ruido */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .45);
  animation: wa-pulse 2.6s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 480px) {
  .wa-float__label { display: none; }  /* en móvil, solo el ícono */
  .wa-float { padding: 14px; }
}

/* ============================================================
   Centrado en móvil / tablet
   (en pantallas pequeñas los bloques se apilan y el contenido
   centrado se ve más equilibrado; en escritorio vuelve a la
   alineación en columnas)
   ============================================================ */
@media (max-width: 859px) {
  /* Hero centrado */
  .hero__content { text-align: center; margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }

  /* Encabezados de sección centrados */
  .section__eyebrow, .section__title, .section__intro { text-align: center; }
  .section__eyebrow { display: block; }
  .section__intro { margin-inline: auto; }

  /* Quién soy: foto centrada, cita centrada */
  .about__media { margin-inline: auto; }
  .about__media-card { right: 8px; }
  .about__lead { text-align: center; }
  .about__text > .btn { display: flex; max-width: max-content; margin-inline: auto; }

  /* Servicios: frase final centrada */
  .services__hint { text-align: center; margin-inline: auto; }

  /* Empresas: título y botón centrados, lista alineada a la izquierda */
  .b2b__content { text-align: center; }
  .b2b__list { display: inline-block; text-align: left; margin-inline: auto; }

  /* Contacto: todo centrado */
  .contact__info { text-align: center; }
  .social-group__links { justify-content: center; }
}

/* ============================================================
   Animaciones de aparición al hacer scroll (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Respeto por usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  .btn, .service-card, .wa-float { transition: none; }
}
