/* ============================
   Estilos generales
============================ */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f3fb;
  color: #4a3c4d;
  margin: 0;
  padding: 0;
}

header {
 text-align: center;
  background: url("../fondo.png") repeat;
  background-size: 200px auto;  /* ajusta el tamaño del patrón */
  background-color: #f4e1f8;   /* color de base por si no cubre todo */
  padding: 30px 10px 10px;
}

h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: #a259c5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-top: -10px;
}

.butterfly {
  width: 40px;
  height: auto;
  animation: flutter 4s ease-in-out infinite;
}

.logo-letra {
  width: 200px;
  height: auto;
  animation: flutter 4s ease-in-out infinite;
  filter: drop-shadow(0 0 0 #bb6bbb)
         drop-shadow(1px 1px 0 #bb6bbb)
         drop-shadow(-1px -1px 0 #bb6bbb)
         drop-shadow(1px -1px 0 #bb6bbb)
         drop-shadow(-1px 1px 0 #bb6bbb);
}
.buttons a i {
  margin-right: 8px;
  font-size: 1.2em;
  vertical-align: middle;
}

.selector-section {
  padding: 20px;
  text-align: center;
}

select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #a259c5;
  font-size: 1rem;
  background-color: #fff;
  color: #4a3c4d;
}

#contenido {
  padding: 20px;
  text-align: center;
}

.servicio {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.servicio.show {
  opacity: 1;
  transform: translateY(0);
}

.servicio h3 {
  color: #a259c5;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.galeria img {
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.contact-info {
  background-color: #f0d9f9;
  padding: 30px;
  text-align: center;
}

.buttons a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.whatsapp-btn {
  background-color: #25D366;
}

.instagram-btn {
  background-color: #E1306C;
}

.lista-precios {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.precio-item {
  display: flex;
  justify-content: space-between;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  margin-bottom: 5px;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.precio-item .nombre {
  color: #333;
  font-weight: 500;
}

.precio-item .valor {
  color: #9b59b6;
  font-weight: bold;
}

.titulo-servicio {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: bold;
  color: #7a3e9d;
  margin-bottom: 10px;
}

.descripcion-servicio {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}

/* ============================
   Antes y Después
============================ */
.antes-despues {
  padding: 40px 20px;
  text-align: center;
  background-color: #fdf6f9;
}

.titulo-transformacion {
  background-color: #f9f4f0;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 12px;
  margin-bottom: 30px;
}

.titulo-transformacion h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 10px;
  color: #6b2b5b;
}

.titulo-transformacion p {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #444;
  margin: 0;
}

.slider-vertical {
  position: relative;
  height: 600px; /* altura del bloque visible */
  overflow: hidden;
  width: 100%;
  margin: 20px 0;
}

.comparacion {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: absolute;
  width: 100%;
  top: 100%;      /* fuera de la vista */
  left: 0;
  opacity: 0;
  transition: all 0.7s ease;
}

.comparacion.active {
  top: 0;
  opacity: 1;
}

.img-container {
  width: 45%;
  max-width: 400px;
  position: relative;
  text-align: center;
}

.img-container img {
  width: 100;
  height: 300px;      /* altura fija */
  object-fit: cover;  /* mantiene proporción y recorta si es necesario */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.img-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.etiqueta {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(107, 43, 91, 0.85);
  color: #fff;
  padding: 6px 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  border-radius: 0 0 10px 0;
  font-size: 14px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .comparacion {
    flex-direction: row; /* forzar horizontal */
    gap: 15px;
    align-items: center;
    justify-content: center;
  }
  .img-container {
    width: 100%; /* mantiene ancho proporcional */
    max-width: 300px;
  }
}


/* ============================
   Tabs
============================ */
.tabs {
  display: flex;
  background-color: #f2f2f2;
  border-bottom: 1px solid #ccc;
}

.tab {
  padding: 14px 20px;
  cursor: pointer;
  background-color: #eee;
  border: none;
  outline: none;
  transition: background 0.3s;
  font-weight: bold;
}

.tab:hover {
  background-color: #ddd;
}

.tab.active {
  background: linear-gradient(45deg, #a259c5, #d89cf6);
  color: white;
  border-radius: 10px 10px 0 0;
}

.tab-content {
  opacity: 0;
  transition: opacity 0.5s ease;
  height: 0;
  overflow: hidden;
}

.tab-content.active {
  opacity: 1;
  height: auto;
}

/* ============================
   Popup de bienvenida
============================ */
#welcome-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #d7aef3, #e6ccf7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.popup-content {
  position: relative;
  background: rgba(255, 255, 255, 0.85); /* solo el fondo blanco */
  padding: 60px 50px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  color: #4a3c4d;
  z-index: 1; /* asegura que el contenido quede encima del logo */
}

.popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;        /* tamaño del logo */
  height: 450px;
  background: url('../logo_spa_salon.png') no-repeat center top;
  background-size: contain;
  opacity: 0.2;       /* transparencia solo del logo */
  pointer-events: none; /* no bloquea clicks */
  z-index: 0;          /* atrás del contenido */
}

.popup-content h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.popup-content p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-style: italic;
  color: #5b3d7d;
}

.popup-content button {
  background-color: #a259c5;
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(162, 89, 197, 0.5);
}

.popup-content button:hover {
  background-color: #7a3e9d;
}

.popup-stars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* no bloquea clicks */
  z-index: 0; /* detrás del popup-content */
}

.popup-stars-overlay .star {
  position: absolute;
  width: 15px;
  height: 15px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  opacity: 0;
  animation: starGlow 3s infinite;
}

@keyframes starGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

#welcome-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================
   Carrusel de imágenes
============================ */
.carrusel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 30px 0;
  border-radius: 15px;
}

.carrusel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carrusel img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .carrusel img {
    max-height: 200px;
  }
}

/* ============================
   Videos responsivos
============================ */
.video-responsive,
.video-servicio video {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ============================
   Animaciones
============================ */
@keyframes flutter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.share-section {
  text-align: center;
  margin-top: 40px;
  padding: 25px;
  border-radius: 15px;
  background: #fff; /* fondo suave tipo tarjeta */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #7a2fa0; /* morado elegante */
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.share-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  font-style: italic;
}

/* Botones */
.share-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  min-width: 200px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Colores */
.btn-share.whatsapp {
  background-color: #25D366;
}

.btn-share.facebook {
  background-color: #1877F2;
}

.btn-share.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Hover */
.btn-share:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0.95;
}

.btn-share i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-share:hover i {
  transform: rotate(-8deg) scale(1.2);
}

/* ======== NUEVO ESTILO DE PRECIOS ======== */
.lista-precios {
  margin-top: 15px;
  padding: 0;
}

.precio-item {
    display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #f6e1ff, #e4b8ff);
  padding: 8px 12px;               /* antes 12px 20px aprox */
  margin-bottom: 8px;              /* antes era más grande */
  border-radius: 12px;             /* más pequeño */
  font-size: 14px;   
}

.precio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(150, 50, 180, 0.25);
}

.precio-item .nombre {
  font-weight: 600;
}

.precio-item .valor {
  background: #a200d6;
  padding: 5px 10px;               /* más pequeño */
  border-radius: 20px;             /* achica el chip */
  color: #fff;
  font-size: 13px;                 /* más pequeño */
  display: inline-block;
  min-width: 65px;                 /* evita que se deforme */
  text-align: center;
}

.precio-item:hover .valor {
  background: #8e3fb5;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .precio-item {
    padding: 6px 10px;
    font-size: 13px;
  }

  .precio-item .valor {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 58px;
  }
}

.categorias {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.categoria-chip {
  padding: 10px 12px;
  background: #f4e7ff;
  border: 2px solid #c08bf0;
  border-radius: 12px;
  font-size: 14px;
  color: #5b2a86;
  cursor: pointer;
  transition: 0.25s ease;
}

.categoria-chip.active {
  background: #c08bf0;
  color: white;
  box-shadow: 0 3px 8px rgba(192, 139, 240, 0.4);
  transform: translateY(-2px);
}

.categoria-chip:hover {
  background: #d8b3ff;
}

.bienvenida-servicios {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px 15px;
}

.bienvenida-servicios h2 {
  font-size: 22px;
  font-weight: bold;
  color: #d63384;
}

.bienvenida-servicios p {
  font-size: 15px;
  color: #555;
  margin-top: 5px;
}
