@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;700&display=swap');

:root {
  --primary-color: #a87c00;
  --secondary-color: #ffcc00;
  --text-color: #f5f5f5;
  --background-color: #0b0b0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0b0b;
  color: var(--text-color);
}

section {
  background-color: #111111;
  border-radius: 12px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
}

h2 {
  color: var(--secondary-color);
  font-family: 'Georgia', serif;
  text-shadow: 0 0 5px #000;
}

header {
  background-image: url('../assets/maestra.png');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--secondary-color);
  text-align: center;
  padding: 6rem 0;
  font-family: 'Great Vibes', cursive;
  text-shadow: 0 0 8px #000, 0 0 15px #ffcc00;
}

header::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 100%);
  z-index: 1;
}

header h1,
header a.whatsapp-btn {
  position: relative;
  z-index: 1;
}

header p,
header .intro {
  font-size: 1.3rem;
  font-family: 'Georgia', serif;
  color: #e0e0e0;
  text-shadow: 0 0 5px #000;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.intro {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 1rem auto 0 auto;
  color: #f0f8f7;
  z-index: 1;
  position: relative;
}

/* Menú mejorado */
.navbar {
  background-color: #0a0a0a;
  border-bottom: 1px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-nombre {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem;
  color: var(--secondary-color);
  text-shadow: 0 0 8px #000;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.logo-ubicacion {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: #ccc;
  margin-top: 0.2rem;
  letter-spacing: 0.3px;
}

.logo-nombre,
.logo-ubicacion {
  display: block;
  width: 100%;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.cta-nav {
  background-color: #25d366;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  color: white !important;
}

.cta-nav:hover {
  background-color: #128c7e;
}

/* Modo móvil */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

ul {
  list-style: none;
  padding-left: 1rem;
}

ul li {
  margin-bottom: 0.8rem;
}

.beneficios {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.beneficios li::before {
  content: "\2713";
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.whatsapp-btn {
  display: inline-block;
  background: linear-gradient(to right, #ffcc00, #b8860b);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  animation: pulse 1.8s infinite;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
  margin-top: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
}

.whatsapp-floating {
  position: fixed;
  bottom: 50px;
  right: 5px;
  z-index: 1000;
  transition: transform 0.3s ease;
  animation: whatsappPulseGlow 2.5s infinite ease-in-out;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 70px;
  height: 70px;
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem 0;
}

.img-emocional,
.galeria-carousel img {
  width: 90%;
  max-height: 250px;
  height: auto;
  object-fit: cover;
}

.img-emocional {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
  object-fit: cover;
}

.img-duo {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.img-duo img {
  flex: 1 1 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#galeria {
  text-align: center;
  margin-bottom: 3rem;
}

.galeria-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.galeria-carousel img {
  flex: 0 0 auto;
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.galeria-carousel img:hover {
  transform: scale(1.03);
}

.boton-container {
  margin-top: 2rem;
  text-align: center;
}

.antes-despues-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
}

.antes-despues-slider .img-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
}

.antes-despues-slider .img-slide.active {
  opacity: 1;
  position: relative;
}

.antes-despues-slider img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.label-img {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 1;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.servicio {
  background-color: #1c1c1c;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  color: var(--text-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.1);
  text-decoration: none;
  cursor: pointer;
}

.servicio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio:hover img {
  transform: scale(1.05);
}

.servicio h3,
.servicio p {
  pointer-events: none;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.testimonio-card {
  background: #1c1c1c;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
  transition: transform 0.3s ease;
}

.testimonio-card:hover {
  transform: scale(1.03);
}

.testimonio-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  margin-top: 0.5rem;
}

.testimonio-card .origen {
  font-style: italic;
  font-size: 0.9rem;
  color: #bbb;
}

.img-unica-transformacion {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.img-unica-transformacion img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.texto-transformacion {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.65);
  padding: 1rem;
  border-radius: 10px;
  color: var(--secondary-color);
  font-family: 'Georgia', serif;
  box-shadow: 0 0 10px #000;
}

.texto-transformacion h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.texto-transformacion p {
  font-size: 1rem;
  color: #f5f5f5;
}

#servicios-completos h2 {
  margin-bottom: 2rem;
}

.mensaje-garantia {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-family: 'Georgia', serif;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px #000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icono {
  width: 55px;
  height: 55px;
  object-fit: contain;
  animation: aparecerMistico 1.5s ease-out forwards;
}

.logo-texto {
  display: flex;
  flex-direction: column;
}

.logo-nombre {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--secondary-color);
  text-shadow: 0 0 8px #000;
}

.logo-ubicacion {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #ccc;
}

.aviso-mayores {
  background-color: #2c0000;
  color: #ffcc00;
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 4px #000;
  border-top: 1px solid #ffcc00;
  border-bottom: 1px solid #ffcc00;
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(4px);
    width: 100%;
    display: none;
    padding: 1rem 0;
  }

  .nav-menu li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-toggle:checked+.nav-toggle-label+.nav-menu {
    display: flex;
  }

  .nav-toggle-label {
    display: block;
  }

  header h1 {
    font-size: 2.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .img-duo {
    flex-direction: column;
    align-items: center;
  }

  .img-duo img {
    width: 90%;
    max-height: 250px;
  }

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

  .nav-logo {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .logo-ubicacion {
    margin-top: 0;
    font-size: 1rem;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  }
}

@keyframes aparecerMistico {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-10deg);
    filter: drop-shadow(0 0 0px transparent);
  }

  70% {
    filter: drop-shadow(0 0 20px gold);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px #ffcc00);
  }
}

@keyframes whatsappPulseGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px #ffcc00);
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px #ffcc00);
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px #ffcc00);
  }
}