/* ============================================================
   Lady Style — estilo minimalista neutro (blanco / beige / negro)
   Mobile-first, sin frameworks externos (cero dependencias de red).
   ============================================================ */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-dark: #1a1a1a;
  --color-text: #262626;
  --color-muted: #767676;
  --color-accent: #a9793f;
  --color-accent-dark: #8a6230;
  --color-border: #e7e1d8;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --max-width: 1140px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin: 0 0 0.5em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

section { padding: 4rem 1.25rem; }

.section-heading {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading p { color: var(--color-muted); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn--primary {
  background: var(--color-dark);
  color: #fff;
}

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

.btn--ghost {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn--block { width: 100%; text-align: center; }

.btn--small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar__logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  order: 3;
}

.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-dark);
}

.navbar__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 1rem 1.25rem;
}

.navbar__menu.is-open { display: flex; }

.navbar__menu a {
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.navbar__menu a:last-child { border-bottom: none; }

.cart-fab {
  position: relative;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-weight: 600;
  order: 2;
}

.cart-fab__badge {
  display: inline-block;
  margin-left: 0.4rem;
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.8rem;
}

/* Boton flotante "Reservar cita": aparece al elegir un servicio */
.reservar-fab {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 45;
  animation: reservar-fab-in 0.2s ease-out;
}

.reservar-fab:hover { background: var(--color-accent-dark); }

.reservar-fab[hidden] { display: none; }

@keyframes reservar-fab-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Boton flotante del carrito: esquina inferior derecha, misma logica que
   reservar-fab (aparece/desaparece) pero es una opcion aparte de la cita. */
.cart-fab-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 45;
  animation: reservar-fab-in 0.2s ease-out;
}

.cart-fab-float:hover { background: var(--color-accent-dark); }

.cart-fab-float[hidden] { display: none; }

.cart-fab-float svg { width: 24px; height: 24px; }

.cart-fab-float__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #fff, var(--color-bg));
  text-align: center;
  padding: 5rem 1.25rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero h1 { font-size: 2.75rem; }

.hero__tagline {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Services --- */
.services, .shop { max-width: var(--max-width); margin: 0 auto; }

.services-grid, .products-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.services-grid { grid-template-columns: 1fr; }

/* Productos: 2 columnas desde un movil normal, sube a 3 en tablet y 4 en
   pantallas grandes (ver breakpoints mas abajo). Servicios no se toca. */
.products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.service-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-card.is-selected {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.service-card__thumb {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-dark);
}

.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.service-card__thumb:hover img,
.service-card__thumb:focus-visible img {
  transform: scale(1.1);
}

.service-card__body { flex: 1 1 160px; min-width: 140px; }

.service-card__body h4 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.service-card__body p { margin: 0; color: var(--color-muted); font-size: 0.85rem; }

.service-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.service-card__price {
  font-weight: 700;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-value {
  min-width: 1.2rem;
  text-align: center;
  font-weight: 700;
}

/* --- Booking form --- */
.booking-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }

.form-row--split {
  flex-direction: row;
  gap: 1rem;
}

.form-row--split > div { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }

.form-row label, fieldset.form-row legend { font-weight: 600; font-size: 0.9rem; }

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
}

fieldset.form-row {
  border: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.sinpe-box {
  background: var(--color-bg);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.sinpe-box label { display: block; margin-top: 0.6rem; font-weight: 600; font-size: 0.9rem; }

.sinpe-box input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.booking-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: 1.1rem;
  font-size: 1.1rem;
}

.form-error {
  color: #b3261e;
  background: #fdecea;
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* --- Products --- */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.product-card h4 { font-size: 1rem; margin: 0; }

.product-card__price { color: var(--color-accent-dark); font-weight: 700; }

/* --- Contact --- */
.contact__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact__grid h3 { font-size: 1rem; color: var(--color-accent); margin-bottom: 0.2rem; }
.contact__grid p { margin: 0 0 1rem; font-weight: 600; }

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

.footer p { margin: 0.25rem 0; }
.footer__muted { font-size: 0.85rem; }

/* --- Cart drawer --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 51;
  display: flex;
  flex-direction: column;
}

.drawer.is-open { transform: translateX(0); }

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}

.drawer__items {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.drawer__empty { color: var(--color-muted); text-align: center; margin-top: 2rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cart-item__info span { color: var(--color-muted); font-size: 0.85rem; }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item__qty button,
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-weight: 700;
}

.qty-btn:hover { border-color: var(--color-accent); }

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.drawer__footer {
  padding: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__content {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal__summary {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal__actions .btn { flex: 1; text-align: center; }

.modal__content--photo {
  max-width: 640px;
  padding: 1rem;
  position: relative;
  text-align: center;
}

.modal__content--photo img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  display: block;
}

.modal__content--photo h3 { margin: 0; }

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  z-index: 1;
}

/* ============================================================
   Responsive — tablet / desktop
   ============================================================ */
@media (min-width: 768px) {
  .navbar__toggle { display: none; }

  .navbar__menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 1.5rem;
    order: 1;
  }

  .navbar__menu a { border-bottom: none; padding: 0; }

  .hero h1 { font-size: 3.5rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tablet: maximo 3 productos por fila */
  .products-grid { grid-template-columns: repeat(3, 1fr); }

  .contact__grid { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 1200px) {
  /* Pantallas grandes (laptop/desktop, ~24") -- 4 productos por fila */
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
