/* ============================================================
   KINESIA LANDING PAGE - ESTILOS PRINCIPALES
   Versión estática convertida desde Next.js + Tailwind CSS
   
   📝 GUÍA RÁPIDA DE PERSONALIZACIÓN:
   
   Para modificar los tamaños de texto del Hero Section:
   - Edita las variables en :root (líneas 69-81)
   - Las variables usan 'rem' (1rem = 16px)
   
   Ejemplos de conversión:
   - 2rem = 32px    - 2.5rem = 40px    - 3rem = 48px
   - 3.75rem = 60px - 4rem = 64px      - 5rem = 80px
   
   Variables disponibles:
   --hero-title-size: Título principal "Lleva la Rehabilitación"
   --hero-subtitle-size: Subtítulo "al Hogar del Paciente"
   --hero-description-size: Descripción del producto
   
   Para ajustar la posición de la imagen de fondo del Hero:
   - Edita --hero-image-left-margin (líneas 83-85)
   - Valores en porcentaje (%) o pixeles (px)
   - Ejemplo: 25% = imagen empieza al 25% desde la izquierda
   - 0% = imagen ocupa todo el ancho
   - 50% = imagen solo en la mitad derecha
   
   También incluye versiones para mobile y tablet.
   ============================================================ */

/* ========== RESET Y BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores Primarios */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Colores Acento */
  --accent-50: #f0fdf4;
  --accent-100: #dcfce7;
  --accent-200: #bbf7d0;
  --accent-300: #86efac;
  --accent-400: #4ade80;
  --accent-500: #22c55e;
  --accent-600: #16a34a;
  --accent-700: #15803d;
  --accent-800: #166534;
  --accent-900: #14532d;

  /* Grises */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Tamaños de Fuente del Hero */
  --hero-title-size: 4rem;          /* 64px - Título principal */
  --hero-subtitle-size: 6.5rem;     /* 104px - Subtítulo con gradiente (40pt más grande) */
  --hero-description-size: 1.5rem;  /* 24px - Descripción */
  
  /* Tamaños de Fuente del Hero - Mobile */
  --hero-title-size-mobile: 2rem;         /* 32px */
  --hero-subtitle-size-mobile: 3.5rem;    /* 56px */
  --hero-description-size-mobile: 1.125rem; /* 18px */
  
  /* Tamaños de Fuente del Hero - Tablet */
  --hero-title-size-tablet: 3rem;      /* 48px */
  --hero-subtitle-size-tablet: 5.5rem; /* 88px */

  /* Posicionamiento de Imagen de Fondo del Hero */
  --hero-image-left-margin: 25%;  /* Ajusta este valor para mover la imagen desde la izquierda */
  --hero-image-left-margin-mobile: 0%;
  --hero-image-left-margin-tablet: 15%;

  /* Espaciado */
  --container-max-width: 1280px;
  --container-padding: 1rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ========== UTILIDADES DE CONTENEDOR ========== */
.container-custom {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ========== BOTONES ========== */
.btn-primary {
  background: linear-gradient(to right, var(--primary-600), var(--accent-600));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-600);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid var(--primary-600);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--primary-50);
  transform: translateY(-2px);
}

/* ========== NAVEGACIÓN ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  width: 10rem;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-600);
}

.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #ef4444;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: white;
}

.hero-section .container-custom {
  margin-left: 8rem;
  margin-right: auto;
  padding-left: 7.5rem;
}

.hero-background {
  position: absolute;
  left: var(--hero-image-left-margin);
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: auto;
  height: 100%;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(255,255,255,0.98) 0%, 
    rgba(255,255,255,0.95) 10%,
    rgba(255,255,255,0.9) 20%, 
    rgba(255,255,255,0.75) 30%,
    rgba(255,255,255,0.5) 40%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.15) 60%,
    rgba(255,255,255,0.05) 70%,
    rgba(255,255,255,0) 80%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 20;
  padding: 5rem 0;
  max-width: 42rem;
  width: 100%;
}

.hero-title {
  font-size: var(--hero-title-size) !important;
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-align: left !important;
}

.hero-subtitle {
  font-size: var(--hero-subtitle-size) !important;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1;
  text-align: left !important;
}

.hero-description {
  font-size: var(--hero-description-size) !important;
  color: var(--gray-600);
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-align: left !important;
}

.hero-description strong {
  color: var(--gray-900);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* ========== SECCIONES ========== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto 3rem;
}

/* ========== CARRUSELES ========== */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--primary-100), var(--accent-100));
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carousel-button:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 2rem;
  background: linear-gradient(to right, var(--primary-500), var(--accent-500));
}

/* ========== TARJETAS ========== */
.card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ========== FORMULARIOS ========== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ========== ANIMACIONES ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animation-delay-100 {
  animation-delay: 0.1s;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 5rem;
  }

  .hero-description {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 5rem;
  }

  .hero-description {
    font-size: 1.5rem;
  }
}

/* ========== GRID LAYOUTS ========== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-cols-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-lg-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== UTILIDADES ========== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(to bottom right, var(--gray-50), var(--primary-50));
}

.relative {
  position: relative;
}

.flex {
  display: flex;
}

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

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

.gap-4 {
  gap: 1rem;
}

/* ========== RESPONSIVE HERO SECTION ========== */
@media (max-width: 767px) {
  .hero-section .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-content {
    padding: 3rem 0;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-background {
    left: 0;
    width: 100%;
    opacity: 1;
  }
  
  .hero-background img {
    object-position: center center;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
  .hero-gradient {
    background: linear-gradient(to bottom, 
      rgba(255,255,255,0.85) 0%, 
      rgba(255,255,255,0.75) 20%,
      rgba(255,255,255,0.65) 40%, 
      rgba(255,255,255,0.75) 60%,
      rgba(255,255,255,0.85) 80%,
      rgba(255,255,255,0.95) 100%
    ) !important;
  }
  
  .hero-title {
    font-size: var(--hero-title-size-mobile) !important;
    text-align: center !important;
  }
  
  .hero-subtitle {
    font-size: var(--hero-subtitle-size-mobile) !important;
    text-align: center !important;
  }
  
  .hero-description {
    font-size: var(--hero-description-size-mobile) !important;
    text-align: center !important;
  }
  
  .hero-buttons {
    align-items: center;
    width: 100%;
  }
  
  .hero-buttons button {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section .container-custom {
    padding-left: 5.5rem;
  }
  
  .hero-background {
    left: var(--hero-image-left-margin-tablet);
  }
  
  .hero-title {
    font-size: var(--hero-title-size-tablet) !important;
  }
  
  .hero-subtitle {
    font-size: var(--hero-subtitle-size-tablet) !important;
  }
}

@media (min-width: 1024px) {
  .hero-section .container-custom {
    padding-left: 7.5rem;
  }
  
  .hero-title {
    font-size: var(--hero-title-size) !important;
  }
  
  .hero-subtitle {
    font-size: var(--hero-subtitle-size) !important;
  }
  
  .hero-description {
    font-size: var(--hero-description-size) !important;
  }
}

@media (min-width: 1280px) {
  .hero-section .container-custom {
    padding-left: 10.5rem;
  }
}

/* ========== APP TABS STYLES ========== */
.app-tab {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.875rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.app-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.app-tab:hover::before {
  left: 100%;
}

.app-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app-tab.active {
  background: white;
  color: var(--primary-600);
  border-color: white;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  font-weight: 700;
}

/* Animación para los iconos de sparkles */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* ========== RESPONSIVE APP TABS (MOBILE) ========== */
@media (max-width: 767px) {
  .app-tab {
    font-size: 0.65rem;
    font-weight: 300;
    padding: 0.75rem 0.5rem;
    letter-spacing: 0.3px;
  }
  
  /* Ajustes para la sección de ROI en móvil */
  #features .grid.grid-cols-1.grid-cols-md-2 {
    gap: 1rem !important;
  }
  
  /* Reducir padding del contenedor principal de ROI */
  #features .section > div > div > div[style*="background: linear-gradient(to right, var(--primary-500), var(--accent-500))"] {
    padding: 2rem 1rem !important;
  }
  
  /* Ajustar tamaños de fuente en las tarjetas de ROI */
  #features .text-center > div[style*="background: rgba(255,255,255,0.2)"] div[style*="font-size: 3.75rem"] {
    font-size: 2.5rem !important;
  }
  
  #features .text-center > div[style*="background: rgba(255,255,255,0.2)"] div[style*="font-size: 0.875rem"] {
    font-size: 0.75rem !important;
  }
  
  /* Reducir padding de las tarjetas internas */
  #features .text-center > div[style*="background: rgba(255,255,255,0.2)"] {
    padding: 1rem !important;
  }
  
  /* Ajustar el contenedor de ahorro total */
  #features div[style*="background: rgba(255,255,255,0.1)"][style*="backdrop-filter: blur(10px)"] {
    padding: 0.75rem 1rem !important;
  }
  
  #features div[style*="background: rgba(255,255,255,0.1)"][style*="backdrop-filter: blur(10px)"] div[style*="font-size: 2.5rem"] {
    font-size: 2rem !important;
  }
  
  /* ========== MOBILE NAVIGATION ========== */
  /* Ocultar menú desktop */
  .nav-menu {
    display: none !important;
  }
  
  /* Mostrar botones móviles */
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }
  
  /* Botón hamburguesa */
  .mobile-menu-toggle {
    background: var(--primary-600);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--primary-700);
    transform: scale(1.05);
  }
  
  /* Menú móvil overlay */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  /* Header del menú móvil */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .mobile-menu-close {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-close:hover {
    background: var(--gray-200);
  }
  
  /* Contenido del menú móvil */
  .mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .mobile-menu-link:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    transform: translateX(5px);
  }
  
  .mobile-menu-link i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
  }
  
  /* Overlay oscuro */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop - ocultar elementos móviles */
@media (min-width: 768px) {
  .mobile-nav-buttons {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
}

/* Estilos base para botones móviles (siempre ocultos hasta que media query los muestre) */
.mobile-nav-buttons {
  display: none;
}
