/* =============================================================
   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.mobile-open {
  display: flex; flex-direction: column; gap: 1rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); padding: 1.2rem 1.5rem 1.5rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,0.2);
}
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: 0; padding: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--bg-deep); border-radius: 2px; }
@media (min-width: 720px) { .nav-toggle { display: none; } }
.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; }
.map-link { margin-top: .8rem; }
.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, .contact-form textarea {
  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);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea: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; }

/* =============================================================
   Widget de reserva
   ============================================================= */
.booking-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.booking-grid select, .booking-grid input[type="date"] { padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); font: inherit; width: 100%; }
.bk-slots { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.bk-hint { color: var(--ink-mute); font-size: .88rem; }
.bk-slot { padding: .5rem .9rem; border-radius: 100px; border: 1px solid var(--line); background: var(--paper); font: inherit; cursor: pointer; }
.bk-slot:hover { border-color: var(--accent); }
.bk-slot.selected { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.booking-contact-form { display: grid; gap: .8rem; background: var(--bg); padding: 1.4rem; border-radius: 20px; }
.booking-contact-form label { display: grid; gap: .3rem; font-size: .85rem; color: var(--ink-mute); }
.booking-contact-form input, .booking-contact-form textarea { padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
.bk-selected { font-size: .92rem; }
.bk-msg { font-size: .85rem; color: var(--bg-deep); min-height: 1.2em; margin-top: .6rem; }
.bk-success { background: var(--bg); border-radius: 20px; padding: 1.6rem; font-size: 1.05rem; }

/* =============================================================
   Placeholder de foto (cuando un elemento no tiene imagen asignada)
   ============================================================= */
.media-placeholder {
  background: repeating-linear-gradient(135deg, var(--bg-deep) 0, var(--bg-deep) 1.5px, transparent 1.5px, transparent 14px), var(--bg);
  opacity: .55;
}

/* =============================================================
   Contenido legal (aviso legal, privacidad)
   ============================================================= */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.15rem; margin: 2rem 0 .8rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; color: var(--ink-mute); }
.legal-content ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-mute); }
.legal-content li { margin-bottom: .3rem; }
.legal-content a { color: var(--accent); }
.legal-updated { font-size: .82rem; font-style: italic; margin-top: 2rem; }
.footer-legal { font-size: .78rem; opacity: .6; margin-top: .3rem; }
.footer-legal a { color: inherit; }

/* =============================================================
   Redes sociales (pie) — se activan desde el panel
   ============================================================= */
.social-links { display: flex; justify-content: center; gap: .7rem; margin-bottom: 1.2rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: color .25s, border-color .25s, transform .25s;
}
.social-links a:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-2px); text-decoration: none;
}

/* Consentimiento RGPD en formularios. La etiqueta tiene exactamente dos celdas:
   la casilla y un <span> con el texto (si el texto fuera suelto, el enlace sería otra celda). */
.contact-form .consent-check, .booking-contact-form .consent-check {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .6rem;
  font-weight: 400; text-transform: none; letter-spacing: normal; line-height: 1.45; cursor: pointer;
}
.consent-check input[type="checkbox"] {
  width: 18px; height: 18px; margin: .1rem 0 0; padding: 0; border-radius: 0; flex: none;
  accent-color: var(--accent); box-shadow: none;
}
.consent-check a, .form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-check.is-error { color: #B03A2E; }
.form-legal { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--ink-mute, inherit); }
.form-legal strong { font-weight: 600; }
