/* ============================================
   VARGAS RUIZ — Odontología y Estética Facial
   Sistema de diseño
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --stone-dark: #3A362E;
  --stone: #6B655A;
  --stone-light: #A69F91;
  --cream: #F1ECE1;
  --cream-soft: #E9E2D2;
  --bronze: #A9825A;
  --bronze-light: #C7A575;
  --wine: #6B2733;
  --wine-deep: #4A1B23;
  --wine-light: #9B5563;
  --ink: #221F19;
  --ink-soft: #504A3E;
  --white: #FFFFFF;
  --line: rgba(34, 31, 25, 0.14);
  --line-on-dark: rgba(241, 236, 225, 0.22);

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  /* Signature shape: the curved corner of the storefront */
  --arch: 140px 140px 8px 8px;
  --arch-sm: 90px 90px 6px 6px;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

/* Tema alternativo: recolorea el acento metálico a vino sin tocar cada regla */
.theme-wine { --bronze: var(--wine); --bronze-light: var(--wine-light); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Textura de grano sutil en toda la página, en vez de color plano */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(58, 54, 46, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--stone-dark);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

/* ---------- Utility ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--stone { background: var(--stone-dark); color: var(--cream); }
.section--stone h1, .section--stone h2, .section--stone h3 { color: var(--white); }
.section--soft {
  background:
    radial-gradient(ellipse at top right, rgba(169, 130, 90, 0.10), transparent 55%),
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bronze);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}

.divider {
  width: 56px;
  height: 1px;
  background: var(--bronze);
  border: none;
  margin: 22px 0;
}
.divider--center { margin-left: auto; margin-right: auto; }

.arch-frame {
  border-radius: var(--arch);
  overflow: hidden;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

.placeholder-visual {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--stone-light) 0%, var(--stone) 55%, var(--stone-dark) 100%);
  position: relative;
  overflow: hidden;
}
.placeholder-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241,236,225,0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
}
.placeholder-visual span {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: rgba(241, 236, 225, 0.92);
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--stone-dark); color: var(--white); }
.btn--primary:hover { background: var(--bronze); transform: translateY(-1px); }
.btn--outline { border-color: currentColor; color: var(--stone-dark); background: transparent; }
.btn--outline:hover { background: var(--stone-dark); color: var(--white); }
.btn--on-dark { border-color: var(--line-on-dark); color: var(--cream); }
.btn--on-dark:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--stone);
}
.tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--bronze);
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 236, 225, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--stone-dark);
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  color: var(--stone);
  margin-top: 5px;
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--stone-dark); }
.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--bronze);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: none; font-size: 0.85rem; font-weight: 600; color: var(--stone-dark); white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 24px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--stone-dark);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--gutter) 26px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 500;
}
.nav-mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
}
@media (min-width: 1280px) {
  .nav-phone { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 clamp(56px, 9vw, 100px);
  position: relative;
  overflow: hidden;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.glow-orb--bronze {
  width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(169, 130, 90, 0.35), transparent 70%);
}
.glow-orb--wine {
  width: 420px; height: 420px; bottom: -180px; left: -140px;
  background: radial-gradient(circle, rgba(107, 39, 51, 0.18), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .tag { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-visual { position: relative; }
.hero-visual .arch-frame { aspect-ratio: 4 / 5; }
.hero-visual .stat-card {
  position: absolute;
  left: -28px;
  bottom: -28px;
  background: var(--white);
  border-radius: var(--arch-sm);
  padding: 22px 26px;
  box-shadow: 0 20px 50px -20px rgba(58, 54, 46, 0.35);
  max-width: 230px;
}
.stat-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-card .stat-num { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--bronze); line-height: 1; }
.stat-card .stat-label { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual .stat-card { left: 16px; bottom: -22px; }
}

/* ---------- Especialidades (home cards) ---------- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.specialty-card {
  background: var(--white);
  border-radius: var(--arch);
  padding: 44px 36px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.specialty-card h3 { margin-bottom: 14px; }
.specialty-card p { flex-grow: 1; margin-bottom: 22px; }
.specialty-card .card-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bronze);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.specialty-card .card-link:hover { border-color: var(--bronze); }

.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.icon-badge--bronze { background: rgba(169, 130, 90, 0.14); }
.icon-badge--wine { background: var(--wine); }

.specialty-card--wine {
  background: linear-gradient(155deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-color: transparent;
}
.specialty-card--wine h3,
.specialty-card--wine p { color: var(--cream); }
.specialty-card--wine .card-link { color: var(--bronze-light); }
.specialty-card--wine .card-link:hover { border-color: var(--bronze-light); }

@media (max-width: 720px) {
  .specialties-grid { grid-template-columns: 1fr; }
}

/* ---------- Split section (imagen + texto alterno) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse .split-visual { order: 2; }
.split-visual .arch-frame { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .split, .split.reverse .split-visual { grid-template-columns: 1fr; order: initial; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Servicios list (páginas de servicio) ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 20px;
}
.service-item {
  background: var(--white);
  padding: 34px;
}
.service-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-item p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 720px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ---------- Proceso / pasos ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.process-step { position: relative; padding-top: 20px; border-top: 1px solid var(--line); }
.process-step .step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--bronze); display: block; margin-bottom: 14px; }
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Testimonios ---------- */
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line);
}
.testimonial-card p { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--stone-dark); margin-bottom: 20px; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.82rem; color: var(--stone); }
@media (max-width: 900px) {
  .testimonial-row { grid-template-columns: 1fr; }
}

/* ---------- Equipo (quiénes somos) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.team-card .arch-frame { aspect-ratio: 4 / 5; margin-bottom: 24px; }
.team-card .team-role { color: var(--bronze); font-weight: 600; font-size: 0.88rem; margin-bottom: 12px; }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Valores ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- CTA banda final ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-radius: 40px;
  padding: clamp(40px, 6vw, 72px);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 165, 117, 0.25), transparent 70%);
  right: -100px; bottom: -140px;
  pointer-events: none;
}
.cta-band h2 { color: var(--white); max-width: 20ch; position: relative; }
.cta-band p { position: relative; }
.cta-band .hero-actions { position: relative; }
.cta-band .btn--primary { background: var(--white); color: var(--wine-deep); }
.cta-band .btn--primary:hover { background: var(--bronze-light); color: var(--wine-deep); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.contact-info-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info-item .label { font-size: 0.8rem; color: var(--stone); font-weight: 600; margin-bottom: 8px; }
.contact-info-item .value { font-family: var(--font-display); font-size: 1.3rem; color: var(--stone-dark); }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--stone-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(169, 130, 90, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.map-frame {
  border-radius: var(--arch);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.post-card { display: flex; flex-direction: column; }
.post-card .arch-frame { aspect-ratio: 4/3; margin-bottom: 22px; }
.post-card .post-meta { font-size: 0.8rem; color: var(--stone); font-weight: 600; margin-bottom: 10px; }
.post-card h3 { margin-bottom: 12px; }
.post-card p { font-size: 0.94rem; color: var(--ink-soft); }
.post-card .card-link { margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--bronze); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.post-hero {
  padding: 48px 0 0;
}
.post-hero .post-meta { color: var(--bronze); font-weight: 600; font-size: 0.85rem; margin-bottom: 18px; }
.post-hero h1 { max-width: 18ch; }
.post-hero .arch-frame { margin-top: 40px; aspect-ratio: 21/9; }

.post-body {
  max-width: 74ch;
  margin: 0 auto;
}
.post-body h2 { font-size: 1.6rem; margin-top: 44px; margin-bottom: 16px; }
.post-body p { max-width: none; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 20px; }
.post-body ul { margin: 0 0 20px; padding-left: 22px; list-style: disc; color: var(--ink-soft); }
.post-body li { margin-bottom: 10px; }
.post-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--stone-dark);
  border-left: 3px solid var(--bronze);
  padding-left: 24px;
  margin: 36px 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--stone-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--bronze);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 16px; color: var(--ink-soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--stone);
  padding: 22px 0 0;
}
.breadcrumb a:hover { color: var(--bronze); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stone-dark);
  color: var(--cream);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: var(--stone-light); font-size: 0.92rem; margin-top: 18px; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--stone-light); font-size: 0.92rem; }
.footer-col a:hover { color: var(--bronze-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--stone-light);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--stone-light); }
.footer-social a:hover { color: var(--bronze-light); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Page header (páginas internas) ---------- */
.page-header {
  padding: 40px 0 56px;
}
.page-header h1 { max-width: 16ch; }
.page-header .lede { margin-top: 20px; max-width: 58ch; }
