/* ================================
   BASE / GENERALES
================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: sans-serif;
  line-height: 1.6;
}

/* ================================
   COLORES PERSONALIZADOS
================================= */
.text-liiraaBlue { color: #63C6FF; }
.bg-liiraaBlue { background-color: #63C6FF; }
.text-liiraaBlack { color: #000000; }
.bg-liiraaBlack { background-color: #000000; }
.bg-gray { background-color: #f3f4f6; }
.text-white { color: #fff; }

/* ================================
   TIPOGRAFÍA Y ESTRUCTURA
================================= */
.section {
  padding: 4rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
.paragraph {
  max-width: 48rem;
  margin: 1rem auto;
  font-size: 1.125rem;
}
.small {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ================================
   BOTONES
================================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-primary {
  background: #000;
  color: #fff;
}
.btn-primary:hover {
  background: #333;
}
.btn-secondary {
  background: #63C6FF;
  color: #000;
}
.btn-secondary:hover {
  background: #3f8bb8;
}

/* ================================
   HERO SECTION
================================= */
.hero-section {
  background-color: #63C6FF;
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.hero-section .title,
.title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.hero-section .subtitle,
.subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.hero-section .animation,
.animation {
  width: 16rem;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

/* ================================
   GRIDS RESPONSIVAS
================================= */
.grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 2rem auto;
  padding: 0 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  font-size: 1.125rem;
  text-align: left;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid-2 div {
  background: transparent;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

/* ================================
   TARJETAS (CARDS)
================================= */
.card {
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.card.blue {
  background: #63C6FF;
  color: #fff;
}
.card.black {
  background: #000;
  color: #fff;
}
.card.border-blue {
  border: 2px solid #63C6FF;
  background: #fff;
}
.card.border-black {
  border: 2px solid #000;
  background: #fff;
}

/* ================================
   IMÁGENES Y COMPONENTES
================================= */
.machine-image {
  max-width: 40rem;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  clip-path: ellipse(85% 90% at 50% 50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ================================
   IMAGEN LIVE2D FLOTANTE
================================= */
.live2d-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 12rem;
  height: auto;
  z-index: 9999;
  pointer-events: none;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInLive2D 1s ease-out forwards;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeInLive2D {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* OCULTAR EN PANTALLAS PEQUEÑAS */
@media (max-width: 640px) {
  .live2d-floating {
    display: none;
  }
}

/* ================================
   FOOTER
================================= */
.footer {
  background-color: #111827;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

/* ================================
   BOTÓN FLOTANTE "AGENDA UNA DEMO"
================================= */
.btn-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInBtn 1s ease-out forwards;
}
@keyframes fadeInBtn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .btn-float {
    display: none;
  }
}

/* ================================
   WIDGET FLOTANTE
================================= */
.floating-widget {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInWidget 1s ease-out forwards;
}
.floating-widget img.live2d-widget {
  width: 20rem;
  height: auto;
  pointer-events: none;
}
.floating-widget a {
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
@keyframes fadeInWidget {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .floating-widget img.live2d-widget {
    display: none;
  }
}

/* ================================
   FULLSCREEN SECTION FIX
================================= */
.fullscreen-section {
  width: 100%;
  height: 100vh;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
