/* ===========================================================
   Dra. Andrea Cecilia Garza Acosta — Landing
   Paleta oficial:
   #733d38  barra superior, texto, botones, footer
   #ecb7af  CTA / iconos redes
   #fafdf3  fondo de página / texto en botones
   #ece9e8  fondo de secciones / blobs FAQ / reviews
   =========================================================== */

@font-face {
  font-family: "Rushtick";
  src: url("../fonts/Rushtick.otf") format("opentype"),
       url("../fonts/Rushtick.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("../fonts/Questrial-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown: #733d38;
  --brown-soft: #8a5751;
  --pink: #ecb7af;
  --pink-soft: #f3d3ce;
  --cream: #fafdf3;
  --gray: #ece9e8;
  --white: #ffffff;
  --text: #4a2e2b;
  --shadow: 0 18px 40px -20px rgba(115, 61, 56, 0.35);
  --radius: 26px;
  --maxw: 1180px;
  --font-body: "Questrial", "Segoe UI", system-ui, sans-serif;
  --font-script: "Rushtick", "Questrial", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.05;
  color: var(--brown);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 400;
  margin: 0 0 14px;
}

/* ---------- Reveal-on-scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .22s; }
.reveal.d3 { transition-delay: .34s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 40px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 12px 24px -12px rgba(115,61,56,.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(115,61,56,.7); }
.btn-pink {
  background: var(--pink);
  color: var(--brown);
  box-shadow: 0 12px 24px -12px rgba(236,183,175,.9);
}
.btn-pink:hover { transform: translateY(-3px); background: #e7a79e; }
.btn-nav {
  background: var(--pink);
  color: var(--brown);
  padding: 11px 22px;
  font-size: 15px;
}
.btn-nav:hover { transform: translateY(-2px); background: #e7a79e; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  font-size: 13.5px;
  letter-spacing: .5px;
  padding: 9px 16px;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 253, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(115,61,56,.08);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 8px 24px -18px rgba(115,61,56,.6); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-size: 15.5px; color: var(--brown); transition: color .2s; position: relative; }
.nav-links a:not(.btn-nav)::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; background: var(--pink);
  transition: width .25s ease;
}
.nav-links a:not(.btn-nav):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--pink-soft) 0%, var(--cream) 55%, var(--pink) 120%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/header-gradient.png") center/cover no-repeat;
  opacity: .9;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 70px 24px 90px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-title { margin: 0 0 22px; }
.hero-title .script { font-size: clamp(46px, 6vw, 78px); display: block; }
.hero-title .bold {
  display: block;
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--brown);
  font-weight: 400;
  margin-top: 2px;
}
.hero p { max-width: 430px; color: var(--text); margin: 0 0 30px; font-size: 17px; }
.hero-photo {
  justify-self: end;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(115,61,56,.55);
  max-width: 430px;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* ---------- Section base ---------- */
.section { padding: 90px 0; }
.section-gray { background: var(--gray); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head .sh-title { margin: 0; font-weight: 400; font-size: inherit; }
.section-head .script { font-size: clamp(34px, 4.4vw, 54px); }
.section-head .bold {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--brown);
  font-weight: 400;
  margin-top: 4px;
}
.section-head .sub { margin-top: 18px; font-size: 17px; color: var(--text); }

/* ---------- Services cards ---------- */
.serv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 54px;
}
.serv-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
  cursor: default;
}
.serv-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.serv-card:hover img { transform: scale(1.07); }
.serv-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,46,43,.78) 0%, rgba(74,46,43,.15) 45%, transparent 70%);
}
.serv-card .label {
  position: absolute;
  left: 22px; bottom: 20px; right: 22px;
  z-index: 2;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}
.serv-card .desc {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(115,61,56,.92);
  color: var(--cream);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  transition: opacity .35s ease;
}
.serv-card .desc strong { font-size: 19px; display: block; margin-bottom: 10px; }
.serv-card:hover .desc { opacity: 1; }

.serv-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.serv-extra h3 { color: var(--brown); font-size: 22px; margin: 0 0 10px; font-weight: 400; }
.serv-extra p { margin: 0; font-size: 16px; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-body .script { font-size: clamp(36px, 4.4vw, 52px); margin: 4px 0 14px; }
.about-body h2 {
  color: var(--brown);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 27px);
  margin: 0 0 18px;
  line-height: 1.3;
}
.about-body p { margin: 0 0 22px; }
.about-ced {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brown-soft);
  text-transform: uppercase;
}
.about-logos {
  margin-top: 30px;
}
.about-logos img { width: 100%; max-width: 760px; opacity: .95; }

/* ---------- Philosophy / reviews ---------- */
.philo-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.philo-head h2 {
  color: var(--brown);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 8px 0 18px;
  line-height: 1.35;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review {
  background: var(--gray);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.review .q { width: 32px; margin-bottom: 16px; }
.review p { font-size: 15px; flex: 1; margin: 0 0 20px; }
.review .name {
  color: var(--brown);
  font-size: 18px;
  border-top: 1px solid rgba(115,61,56,.15);
  padding-top: 16px;
}
.review .stars { color: var(--pink); font-size: 15px; letter-spacing: 2px; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--gray);
  border-radius: 40px;
  overflow: hidden;
  transition: border-radius .3s ease, background .3s ease;
}
.section-gray .faq-item { background: var(--cream); }
.faq-item.open { border-radius: 26px; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--brown);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-q .chev { flex: 0 0 auto; transition: transform .3s ease; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a p { margin: 0; padding: 0 30px 24px; font-size: 16px; color: var(--text); }

/* ---------- Gallery ---------- */
.gallery { padding: 40px 0 90px; }
.gallery-wrap {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-track { display: flex; transition: transform .6s cubic-bezier(.6,0,.2,1); }
.gallery-track img { min-width: 100%; aspect-ratio: 1489/771; object-fit: cover; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(115,61,56,.25);
  border: none; cursor: pointer; padding: 0;
  transition: background .25s, transform .25s;
}
.dot.active { background: var(--brown); transform: scale(1.25); }

/* ---------- Location ---------- */
.loc-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.loc-body .script { font-size: clamp(34px, 4.2vw, 50px); margin: 4px 0 10px; }
.loc-body h2 { color: var(--brown); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 18px; }
.loc-body p { margin: 0 0 24px; max-width: 420px; }
.loc-address .eyebrow { margin-bottom: 6px; }
.loc-address strong { color: var(--brown); font-weight: 400; font-size: 18px; }
.loc-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.loc-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #eec1ba 0%, var(--pink) 55%, #e6a99f 100%);
  text-align: center;
  padding: 70px 24px;
}
.cta-band .script { font-size: clamp(38px, 5vw, 62px); color: var(--brown); }
.cta-band .bold { display: block; color: var(--brown); font-size: clamp(22px, 2.6vw, 30px); margin: 2px 0 26px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer h4 { color: #fff; font-weight: 400; font-size: 18px; margin: 0 0 8px; }
.footer p { font-size: 14px; color: rgba(250,253,243,.82); margin: 0 0 14px; }
.footer-brand img.fbrand { width: 150px; margin-bottom: 16px; }
.footer-brand .fscript { font-family: var(--font-script); font-size: 26px; color: var(--pink); }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pink);
  display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.footer-social a:hover { transform: translateY(-3px); background: #f3d3ce; }
.footer-social img { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(250,253,243,.16);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(250,253,243,.7);
}
.footer-bottom a:hover { color: var(--pink); }

/* ---------- WhatsApp float ---------- */
.wpp-float {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 80;
  width: 64px; height: 64px;
  transition: transform .3s ease;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
  animation: pulse 2.6s infinite;
}
.wpp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(115,61,56,.35); }
  70% { box-shadow: 0 0 0 18px rgba(115,61,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(115,61,56,0); }
}
.wpp-float img { width: 100%; border-radius: 50%; }

/* ---------- Modal / appointment form ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74,46,43,.55);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-card {
  background: var(--cream);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  padding: 38px 36px 34px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  max-height: 92vh;
  overflow-y: auto;
  animation: pop .35s ease;
}
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card h3 { font-family: var(--font-script); color: var(--brown); font-size: 40px; margin: 0 0 4px; }
.modal-card .lead { font-size: 15px; margin: 0 0 22px; color: var(--text); }
.modal-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; font-size: 26px; color: var(--brown); cursor: pointer; line-height: 1;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--brown-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(115,61,56,.2);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236,183,175,.3);
}
.field textarea { resize: vertical; min-height: 88px; }
.field .err { color: #b3453b; font-size: 12.5px; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #cf6a60; }
.field.invalid .err { display: block; }
/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}
.form-msg { font-size: 14.5px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; display: none; }
.form-msg.ok { display: block; background: #e3efe0; color: #3a6b34; }
.form-msg.bad { display: block; background: #f6ded9; color: #a5443a; }
.modal .btn { width: 100%; justify-content: center; margin-top: 6px; }
.modal .privacy { font-size: 12px; color: var(--brown-soft); text-align: center; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-photo { justify-self: center; order: -1; max-width: 340px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .loc-inner { grid-template-columns: 1fr; }
  .serv-extra { max-width: 560px; }
}
@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 16px 24px 24px;
    box-shadow: 0 20px 30px -20px rgba(115,61,56,.5);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 8px 0; font-size: 17px; }
  .nav-links .btn-nav { margin-top: 8px; }
  .nav-toggle { display: block; }
  .serv-cards { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .serv-card .desc { opacity: 1; background: linear-gradient(to top, rgba(115,61,56,.94) 30%, rgba(115,61,56,.5)); justify-content: flex-end; }
  .serv-card .label { display: none; }
  .serv-extra { grid-template-columns: 1fr; gap: 26px; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .modal-card { padding: 30px 22px; }
}
