:root {
  --primary: #55305f;
  --secondary: #2a1032;
  --text: #1f1f1f;
  --muted: #333;
  --accent: #38babc;
  --accent-hover: #38babcc0;
  --whatsapp: #25d366;
  --cream: #fffaf7;
  --star: #f2ce1b;
  --white: #fff;
  --gallery-bg: rgb(56 186 188 / 0.2);
  --card-tint: rgb(85 48 95 / 0.1);
  --header-bg: rgb(255 255 255 / 0.9);
  --font: "Poppins", sans-serif;
  --font-display: "Alata", sans-serif;
  --radius-pill: 32px;
  --wrap: 1140px;
  --header-h: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 500;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 64px);
  line-height: 1;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 48px);
  text-align: center;
}

h3 {
  font-size: 32px;
}

.img-title{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.img-title h3{
  margin-bottom: 0!important;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section{
  scroll-margin-top: 90px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.lead {
  text-align: center;
 /* max-width: 720px;*/
  margin: 0 auto 2.5rem;
}

.sub{
  text-align: center;
  margin: 2.5rem auto;
}

.center {
  text-align: center;
  margin: 2rem 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: var(--accent);
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

.btn-sm {
  padding: 8px;
  font-weight: 600;
}

.btn-outline{
  background: var(--cream);
}

.btn-cream {
  background: var(--cream);
}

.btn-cream:hover {
  background: #fffaf7db;
}

.btn-whatsapp {
  background: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-radius: 50px;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  width: min(100% - 32px, 88%);
  margin-inline: auto;
  gap: 16px;
}

.logo img {
  width: 116px;
  height: auto;
  border-radius: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.nav-right {
  justify-content: flex-end;
}

.nav a.btn-whatsapp:hover{
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  /*background: var(--header-bg);*/
}

.nav-mobile a {
  padding: 12px 8px;
  font-weight: 500;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile .btn{
  display: flex;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  background: url("../img/hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  padding: 64px 72px;
}

.hero h2 {
  text-align: left;
  font-size: clamp(1.25rem, 3vw, 36px);
  margin: 12px 0 16px;
}

.hero p {
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Reviews */
.reviews {
  background: var(--primary);
  color: var(--white);
  padding: 72px 0 56px;
}

.reviews .lead {
  color: var(--white);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  color: var(--muted);
  border-radius: 16px;
  padding: 24px 28px;
  border-left: 6px solid var(--accent);
  min-height: 210px;
}

.review-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card p {
  font-size: 16px;
  margin-bottom: 12px;
}

.review-card strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.review-title{
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1.4;
}

/* Services table */
/*.services {
  background: var(--cream);
  padding: 72px 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 16px 8px 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.4px;
  text-align: center;
}

thead th {
  font-weight: 600;
  padding: 16px 12px 20px;
  vertical-align: top;
}

thead th span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

tbody th {
  font-weight: 400;
  text-align: left;
  padding: 18px 16px;
}

tbody td {
  padding: 18px 12px;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}*/

/* Base CSS */
.services {
  background: var(--cream);
  padding: 72px 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 16px 8px 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.4px;
  text-align: center;
}

thead th {
  font-weight: 600;
  padding: 16px 12px 20px;
  vertical-align: top;
}

thead th span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

tbody th {
  font-weight: 600;
  text-align: left;
  padding: 18px 16px;
}

tbody td {
  padding: 18px 12px;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

@media (max-width: 767px) {
  
}

/* Specials */
.specials {
  padding: 72px 0;
}

.special-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.special-grid li {
  background: var(--card-tint);
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.special-grid h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.special-grid h3 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.special-grid p {
  font-size: 16px;
  flex: 1;
}

.from {
  align-self: flex-end;
  font-size: 14px;
  font-weight: 500;
}

/* Gallery */
.gallery {
  background: var(--gallery-bg);
  padding: 72px 0 56px;
}

.gallery .carousel-track li {
  padding: 0;
}

/* 2. Ajuste visual de las imágenes */
.gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Indicadores / Dots */
.gallery .carousel-dots button {
  background: rgb(85 48 95 / 0.25);
}

.gallery .carousel-dots button[aria-current="true"] {
  background: var(--primary);
}

/* Carousels */
.carousel-viewport {
  overflow: hidden;
}

.carousel {
  padding-top: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  --gap: 24px; /* Espacio predeterminado en Desktop */
  gap: var(--gap);
}

.carousel-track > * {
  /* Restamos la parte proporcional del gap al 100% / número de tarjetas */
  flex: 0 0 calc((100% - (var(--gap) * (var(--visible, 1) - 1))) / var(--visible, 1));
  min-width: 0;
  box-sizing: border-box;
}

.reviews .carousel-track > * {
  width: auto; 
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.45);
  cursor: pointer;
}

.gallery .carousel-dots button {
  background: rgb(85 48 95 / 0.25);
}

.carousel-dots button[aria-current="true"] {
  background: var(--white);
}

.gallery .carousel-dots button[aria-current="true"] {
  background: var(--primary);
}

/* Contact + map */
.contact {
  padding: 72px 0 48px;
  text-align: center;
}

.contact .lead {
  margin-bottom: 2rem;
}

.contact h3 {
  margin-bottom: 12px;
}

.contact p {
  margin-bottom: 0.35em;
}

.note {
  font-size: 13px;
  color: #666;
  margin: 12px 0 24px;
}

.contact-actions {
  justify-content: center;
  margin-top: 24px;
}

.map iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 24px;
}

.footer-inner {
  /*width: min(100%, 1200px);*/
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 24px;
}

.footer-left{
  display: flex;
  flex-flow: column;
  width: 100%;
  gap: 16px;
}

.footer-logo img {
  width: 180px;
  border-radius: 50px;
}

.footer-name {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}
.footer-copy{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy p {
  margin: 0;
}

.footer-copy a {
  color: var(--accent);
  font-weight: 500;
}

.footer-copy a:hover {
  color: var(--accent-hover);
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 1024px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    justify-self: center;
  }

  .menu-toggle {
    display: flex;
  }

  .carousel-track {
    --gap: 16px;
  }

  .services {
    padding: 48px 0;
  }

  .table-wrap {
    padding: 12px 4px 4px;
    border-radius: 16px;
    /* Suaviza el scroll horizontal si sobrepasa */
    -webkit-overflow-scrolling: touch;
  }

  table {
    font-size: 13.5px;
  }

  thead th {
    padding: 12px 8px 16px;
  }

  thead th span {
    font-size: 11px;
  }

  tbody th {
    padding: 14px 10px;
  }

  tbody td {
    padding: 14px 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-left{
    align-items: center;
  }

  .footer-name {
    font-size: 36px;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  h3{
    font-size: 20px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    width: min(100% - 32px, 1100px);
    width: 100%;
    padding: 32px;
  }

  .carousel-track {
    --gap: 0px;
  }

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

  .review-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }

  .reviews .carousel-track > * {
    /* max-width: 364px; */
    width: 100%;
  }

  .services {
    padding: 32px 0;
  }

  .table-wrap {
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: visible;
  }

  /* Ocultamos el thead de la tabla */
  thead {
    display: none;
  }

  /* Transformamos la tabla y filas en tarjetas independientes */
  table, 
  tbody, 
  tr, 
  th, 
  td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  tbody tr {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-bottom: none !important;
  }

  /* Nombre del servicio (Cortar, Peinar, etc.) */
  tbody th {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding: 0 0 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
  }

  /* Ocultar celdas sin precio (con "–") para limpiar la pantalla */
  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
  }

  /* Mostrar la etiqueta (Pelo corto, Media Melena, etc.) a la izquierda */
  tbody td::before {
    content: attr(data-label);
    font-weight: 400;
    color: #666;
    text-align: left;
  }
  
  /* Estilo visual opcional para celdas con "-" */
  tbody td[data-label] {
    /* Si la celda solo tiene un guión, reducir opacidad */
    color: #333;
  }

  /* Oculta las celdas marcadas como vacías/sin precio */
  tbody td[data-empty="true"] {
    display: none;
  }

  .map iframe {
    height: 320px;
  }

  .footer-name {
    font-size: 28px;
  }
}
