/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* HEADER */
header {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2c3e50;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #7757fd;
}

.cta-btn {
  background: #eaeaea;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 20px;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #000;
  color: #f0f0f0;
  text-decoration: none;
}

/* ENLACES GENERALES */
a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #7757fd;
}

/* OCULTAR MENU EN CELULAR */
.desktop-only {
  display: inline-block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .cta-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .maquina {
    display: none;
  }
}

/* HERO */
.hero {
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  animation: fadeIn 2s ease forwards;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* GENERAL SECTION STYLING */
.sections {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* VIDEO YT */
/* 🔹 Fondo negro de lado a lado */
.video-section {
  background-color: #000;     /* Fondo negro completo */
  width: 100%;                /* ocupa todo el ancho */
  display: flex;
  justify-content: center;    /* centra el video horizontalmente */
  align-items: center;
}

/* 🔹 Conserva tu diseño y tamaños originales */
.video-responsive {
  position: relative;
  width: 100%;
  max-width: 800px;           /* tamaño máximo del video */
  aspect-ratio: 16 / 9;       /* mantiene proporción correcta */
  margin: 0 auto;             /* centrado */
  overflow: hidden;           /* oculta excedentes */
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2); /* sombra elegante */
  background: black;          /* fondo detrás del iframe */
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: black;          /* fondo adicional dentro del iframe */
}

/* Ajustes opcionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .video-responsive {
    margin: 20px auto;
  }
}

/* IMAGEN MASCOTAS */
  .imgm-responsive img{
  width:70%;
  max-width:70%;
  height:auto;
  display:block;
  margin:auto;
  }

@media (max-width: 480px) {
  .imgm-responsive img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  margin:auto;
  }
}

/* SLIDER VIDEO / IMAGEN */
.hero-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.slider-fade {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 800px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  top: 40%;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.video-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border: none;
}

/* SLIDER BOTONES */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.9s ease;
}

.slider-btn:hover {
  background: #000;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* SECCION DE NOTAS DE BLOG */
.blog-cards {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  flex: 1 1 30%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
  padding:10px;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin: 0.8rem 0 0.5rem;
}

.blog-card p {
  font-size: 0.95rem;
  color: #555;
  padding: 0 0.8rem 1rem;
}

/* EFECTO MAQUINA DE ESCRIBIR */
.rotating-wrapper {
  display: inline-block;
  vertical-align: baseline;
  font-size: 1em;
  font-weight: inherit;
  color: #000;
}

.rotating {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid #333;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}




/* FEATURES & STEPS */
.features, .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature, .step {
  background: #f9f9f9;
  padding: 1.0rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.feature.visible, .step.visible {
  opacity: 1;
  transform: translateY(0);
}




/* HISTORIAS QUE EMOCIONAN - ESTILO FORMAL */
.stories-section {
  position: relative;
  padding: 4rem 1rem;
  background-color: #f5f5f5;
}

.stories-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #222;
  font-family: 'Lato', sans-serif;
}

.stories-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-container {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.story-card {
  flex: 0 0 60%;
  max-width: 500px;
  background: #fff;
  border-radius: 15px;
  padding: 3rem 2rem;
  margin: 0 1rem; /* solo espacio horizontal */
  text-align: center;
  opacity: 0.5;
  transform: scale(0.85);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.story-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.story-btn {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.story-btn.prev {
  left: 10px;
}

.story-btn.next {
  right: 10px;
}

.story-btn:hover {
  background: #555;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive HISTORIAS QUE EMOCIONAN*/
@media (max-width: 992px) {
  .story-card {
    flex: 0 0 80%;
    padding: 2rem 1.5rem;
  }

  .story-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .story-btn.prev {
    left: 5px;
  }
  .story-btn.next {
    right: 5px;
  }
}




/* DISEÑO STEP CON MODAL */
.step {
    text-align: center;
    max-width: 320px;
    flex: 1 1 300px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

  .step h3 {
    font-size: 1.6em;
    color: #111;
    margin-bottom: 10px;
  }

  .step p {
    color: #555;
    line-height: 1.5;
  }

  .step-img img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(50%);
  }




  /* ==== MODAL ==== */
  .modal {
    display: none; 
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    backdrop-filter: blur(6px);
    background-color: rgba(0,0,0,0.7);
  }

  .modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    animation: zoomIn 0.3s ease;
  }

  @keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
  }

  .modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .modal h2 {
    margin-top: 0;
    color: #111;
  }

  .modal p {
    color: #555;
    line-height: 1.6;
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .close:hover {
    color: #000;
  }

  /* ==== RESPONSIVE STEP ==== */
  @media (max-width: 900px) {
    .step {
      max-width: 100%;
      padding: 10px; /* �9�7 Reduce padding para hacerlo m��s compacto */
      margin: 0 auto;
    }

    .step h3 {
      font-size: 1.4em;
      margin-bottom: 6px;
    }

    .step p {
      font-size: 0.95em;
      margin-bottom: 10px;
    }

    .step-img img {
      border-radius: 8px;
    }
  }



/* ----------- ESTILOS PRODUCTOS ----------- */
.qr-carousel-section {
  background: #fff;
  color: #000;
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.qr-carousel-title {
  font-size: 3rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* ----------- Contenedor principal ----------- */
.qr-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.qr-carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* ----------- Tarjetas ----------- */
.qr-card {
  min-width: 320px;
  background: #f7f7f7;
  border-radius: 14px;
  margin: 0 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.qr-card:hover {
  transform: translateY(-5px);
}

.qr-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.qr-card-content {
  padding: 20px;
}

.qr-card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.qr-card-content p {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
}

.qr-card-btn {
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.qr-card-btn:hover {
  background: #222;
}

/* ----------- Botones laterales ----------- */
.qr-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 5;
}

.qr-carousel-wrapper:hover .qr-carousel-btn {
  opacity: 1;
}

.qr-carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.qr-prev { left: 10px; }
.qr-next { right: 10px; }

/* ----------- Responsivo ----------- */
@media (max-width: 768px) {
  .qr-card { min-width: 80%; margin: 0 10px; }
  .qr-carousel-btn { display: none; }
}
















/* FOOTER */
footer {
  background: #000;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .slide-content h1 { font-size: 1.6rem; }
  .slide-content p { font-size: 1rem; }
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .testimonial-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideAnimation {
  0%, 33%   { transform: translateX(0%); }
  34%, 66%  { transform: translateX(-100%); }
  67%, 100% { transform: translateX(-200%); }
}

/* RESPONSIVE BLOG*/
@media (max-width: 992px) {
  .blog-cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .blog-card {
    flex: 1 1 100%;
  }
}