/* =============================================================
   Aura Centro de Estética — hoja de estilos
   Estilo orgánico: azules y agua, olas, formas blandas.
   ============================================================= */

/* =============================================================
   1. Reset y variables
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #E9F7F9;
  --paper: #FFFFFF;
  --bg-deep: #00565E;
  --ink: #16343A;
  --ink-mute: #5C7378;
  --accent: #3FBFA8;
  --accent-2: #F5D97F;

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Brush Script MT", cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Base
   ============================================================= */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
a { color: var(--bg-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { list-style: none; }

/* =============================================================
   3. Skip link (accesibilidad)
   ============================================================= */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg-deep); color: #fff; padding: .8rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* =============================================================
   4. Navegación
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(233,247,249,0.9);
  backdrop-filter: blur(10px);
}
.nav-brand { font-family: var(--script); font-size: 1.75rem; color: var(--bg-deep); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: none; gap: 1.6rem; }
@media (min-width: 720px) { .nav-links { display: flex; } }
.nav-links a { color: var(--ink); font-size: .92rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* =============================================================
   5. Botones (muy redondeados)
   ============================================================= */
.btn {
  display: inline-block; border: 1.5px solid transparent; border-radius: 999px;
  padding: .85rem 1.8rem; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .3s var(--ease-out), background .3s, color .3s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 25px -14px rgba(0,86,94,0.7); }
.btn-primary:hover { background: var(--bg-deep); }
.btn-ghost { background: transparent; color: var(--bg-deep); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-small { padding: .55rem 1.3rem; font-size: .85rem; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { position: relative; padding: 6rem 1.5rem 8rem; text-align: center; overflow: hidden; }
/* La foto va por detrás de la ola (-1) con un velo claro encima: el texto
   oscuro del hero tiene que seguir leyéndose sin depender de la imagen. */
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to bottom, rgba(240,250,252,0.80), rgba(240,250,252,0.93)),
    var(--hero-photo, none) center / cover no-repeat;
}
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 240px; z-index: -1; }
.hero-content { max-width: 640px; margin: 0 auto; position: relative; }
.kicker { color: var(--bg-deep); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.3rem, 6.5vw, 3.6rem); margin-bottom: 1.2rem; color: var(--bg-deep); }
.hero-sub { color: var(--ink-mute); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.blob {
  position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
  background: var(--accent-2); opacity: .5;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation: blobFloat 8s ease-in-out infinite;
  z-index: -1;
}
@keyframes blobFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(18px) rotate(8deg); } }

/* =============================================================
   6. Secciones
   ============================================================= */
.section { max-width: 1100px; margin: 0 auto; padding: 4.5rem 1.5rem; position: relative; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.4rem); text-align: center; margin-bottom: 2.5rem; color: var(--bg-deep); }
.wave-top { background: var(--paper); border-radius: 60px 60px 0 0; max-width: none; }
.wave-top > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-more { text-align: center; margin-top: 2.2rem; }

/* =============================================================
   7. Rejilla de tarjetas (tratamientos / opiniones)
   ============================================================= */
.cards-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--paper); border-radius: 24px; overflow: hidden;
  box-shadow: 0 15px 40px -25px rgba(0,31,37,0.35);
  transition: transform .35s var(--ease-out);
}
.service-media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 1.6rem; }
.service-card:hover { transform: translateY(-6px); }
.service-card h3 { font-size: 1.1rem; color: var(--bg-deep); margin-bottom: .3rem; }
.service-price { color: var(--accent); font-weight: 600; margin: .3rem 0; }
.service-card p { color: var(--ink-mute); font-size: .9rem; }
.testimonial-card { background: var(--bg); border-radius: 24px; padding: 1.6rem; }
.testimonial-card p.quote { font-style: italic; margin-bottom: .8rem; }
.testimonial-card .author { color: var(--bg-deep); font-weight: 600; font-size: .9rem; }

/* =============================================================
   8. Pasos
   ============================================================= */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; padding: 1.5rem; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; color: var(--bg-deep); margin-bottom: .4rem; }
.step p { color: var(--ink-mute); font-size: .9rem; }

/* =============================================================
   9. Contacto / CTA
   ============================================================= */
.cta-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.cta-grid .section-title { text-align: left; margin-bottom: 1.4rem; }
.schedule-list { margin-bottom: 1.6rem; }
.schedule-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(0,86,94,0.12); font-size: .95rem;
}
.schedule-list li span:last-child { color: var(--ink-mute); }
.contact-line { color: var(--ink-mute); font-size: .95rem; margin-bottom: .3rem; }
.contact-form { display: grid; gap: 1rem; background: var(--paper); border-radius: 24px; padding: 1.8rem; box-shadow: 0 15px 40px -25px rgba(0,31,37,0.35); }
.contact-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; }
.contact-form input {
  font-family: var(--sans); font-size: .95rem; padding: .75rem .9rem;
  border: 1px solid rgba(0,86,94,0.18); border-radius: 12px; background: var(--bg); color: var(--ink);
}
.contact-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: .78rem; color: var(--ink-mute); }

/* =============================================================
   10. Cabecera de página interior
   ============================================================= */
.page-header { max-width: 900px; margin: 0 auto; padding: 4rem 1.5rem 1rem; text-align: center; }
.page-title { font-size: clamp(2rem, 5.5vw, 3.2rem); color: var(--bg-deep); margin-bottom: 1rem; }
.page-sub { color: var(--ink-mute); max-width: 560px; margin: 0 auto; }

/* =============================================================
   11. Pie
   ============================================================= */
.footer {
  text-align: center; padding: 3rem 1.5rem; font-size: .88rem; color: var(--ink-mute);
  background: var(--paper);
}

/* =============================================================
   12. Botón flotante de WhatsApp
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.35);
  transition: transform .3s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }

/* =============================================================
   13. Movimiento reducido
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .btn, .service-card { transition: none; }
  .btn:hover, .service-card:hover, .whatsapp-float:hover { transform: none; }
}

/* =============================================================
   Créditos fotográficos (Openverse / Creative Commons)
   ============================================================= */
.footer-credits { font-size: .78rem; opacity: .75; margin-top: .5rem; }
.footer-credits a { color: inherit; }
.credits-list { list-style: none; display: grid; gap: 1rem; padding: 0; }
@media (min-width: 720px) { .credits-list { grid-template-columns: repeat(2, 1fr); } }
.credits-list li { display: flex; gap: .9rem; align-items: flex-start; font-size: .85rem; }
.credit-thumb { width: 76px; height: 76px; object-fit: cover; flex: none; }
.credit-meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.credit-meta strong { font-weight: 600; }
.credit-meta span { opacity: .8; }
.credit-thumb { border-radius: 12px; }

/* =============================================================
   Transición suave entre páginas (multi-page)
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
