:root {
  /* Paleta tierra / dorado */
  --color-bg: #faf6ef;
  --color-bg-alt: #f2e9d8;
  --color-surface: #ffffff;
  --color-text: #3d2b1f;
  --color-text-soft: #6b5745;
  --color-brown: #4a3728;
  --color-gold: #c9a15a;
  --color-gold-dark: #a9823f;
  --color-terracotta: #b06a4c;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe5a;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Segoe UI", sans-serif;

  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(74, 55, 40, 0.08);
  --shadow-strong: 0 20px 50px rgba(74, 55, 40, 0.18);

  --max-width: 1160px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

body.no-scroll {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-brown);
  font-weight: 600;
  line-height: 1.2;
}

.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.section__lead {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

#servicios .section__lead {
  max-width: none;
  text-align: justify;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 55, 40, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-brown);
}

.logo span {
  color: var(--color-gold-dark);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.nav__list a:hover {
  color: var(--color-gold-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-brown);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Sobre mí ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about__text p {
  color: var(--color-text-soft);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about__text h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--color-gold) 0%, var(--color-terracotta) 100%);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 800px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .about__image {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

/* ---------- Qué es el péndulo hebreo ---------- */
.pendulo {
  max-width: none;
  margin-top: 1.5rem;
}

.pendulo > p {
  color: var(--color-text-soft);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.legal-note {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
}

.legal-note p {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-soft);
  margin-bottom: 0.8rem;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 620px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  text-align: left;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(74, 55, 40, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--color-gold);
  outline: none;
}

.service-card__title {
  font-size: 1.15rem;
}

.service-card__summary {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-card__cta {
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Testimonios ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.testimonial-card {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-brown);
  margin-bottom: 0.8rem;
}

.testimonial-card__author {
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Contacto ---------- */
.contact {
  text-align: center;
}

.contact__inner {
  max-width: 560px;
  margin-inline: auto;
}

.contact__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-brown);
  color: #f2e9d8;
  padding-block: 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(242, 233, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.footer__social a:hover {
  background-color: var(--color-gold);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: #f2e9d8;
}

.footer__copy {
  font-size: 0.85rem;
  color: rgba(242, 233, 216, 0.6);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  z-index: 50;
  transition: transform 0.2s ease;
}

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

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- Responsive: nav móvil ---------- */
@media (max-width: 760px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(74, 55, 40, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
