/* Definición de colores de la paleta como variables CSS */
:root {
  --palette-dark-green: #1B4F33;
  --palette-red: #D83A3A;
  --palette-light-green-1: #A5D6A7;
  --palette-medium-green: #66BB6A;
  --palette-darker-green: #388E3C;
  --palette-brownish-green-1: #A1887F;
  --palette-brownish-green-2: #8D6E63;
  --palette-light-olive: #AED581;
  --palette-pale-green: #C5E1A5;

  /* Nuevos colores para gradientes de tarjetas - Actualizado */
  --price-pro-bg: #8FD9C8;     /* azul verdoso */
  --price-free-bg: #E8FAE8;    /* verde muy claro */
  --price-enterprise-bg: #F5F7F9;
  --cta-green: #059669;

  /* Colores anteriores mantenidos para compatibilidad */
  --gradient-gratis-start: #E0FFE0;
  --gradient-gratis-end: #C8F0C8;
  --gradient-pro-start: #E0F2F7;
  --gradient-pro-end: #B3E0EE;
  --gradient-empresa-start: #F0E6E1;
  --gradient-empresa-end: #E2D1CB;
}

body {
  font-family: 'Inter', sans-serif;
  /* Priorizando Inter para la estética moderna */
}

/* Ajusta el tamaño máximo si quieres un radar más pequeño o grande */
canvas#radarCanvas {
  max-width: 600px;
  max-height: 600px;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

/* 🎨 Nuevos fondos para cada slide (asegúrate de que las rutas de imagen sean correctas) */
.slide-box-persona {
  background-image: url('../images/slide_persona.png');
  /* Reemplaza con tu ruta real */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.85);
}

.slide-box-pyme {
  background-image: url('../images/slide_pyme.png');
  /* Reemplaza con tu ruta real */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.85);
}

.slide-box-abogado {
  background-image: url('../images/slide_abogado.png');
  /* Reemplaza con tu ruta real */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.85);
}

/* Repite para los demás slide-box si tienes imágenes de fondo específicas */


/* Estilos para el hero section (si se usa) */
.hero-background,
.hero-section {
  background: url('../images/hero_placeholder.png') no-repeat center center;
  /* Reemplaza con tu ruta real */
  background-size: cover;
  color: #2c3e50;
}

/* Custom styles para slide-box (complementando Tailwind) */
.slide-box {
  background: #f9f9f9;
  /* Fondo base de la tarjeta */
  border-radius: 1.5rem;
  /* Bordes más redondeados (priorizado de 1rem) */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* Sombra más pronunciada (priorizado de 0 4px 8px) */
  padding: 2.5rem;
  /* Relleno ajustado (priorizado de 2rem) */
  max-width: 24rem;
  /* Max-width de Tailwind equivalent a max-w-sm (priorizado de 600px) */
  width: 100%;
  height: 480px !important;
  /* Altura fija para todas las tarjetas */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  /* Distribuye el contenido uniformemente */
  align-items: center;
  /* Centra el contenido horizontalmente */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  /* Borde inicial transparente para efecto hover */
}

.slide-box:hover {
  transform: translateY(-10px);
  /* Efecto de elevación */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  /* Sombra más fuerte al hover */
  border-color: var(--palette-darker-green);
  /* Borde verde oscuro al hover */
}

.slide-box h3 {
  font-size: 1.5rem;
  /* Tamaño de fuente más grande para el título de la tarjeta (ajustado de 1.25rem) */
  font-weight: 700;
  /* Negrita */
  margin-bottom: 0.75rem;
  color: #1a202c;
  /* Color de texto oscuro */
}

.slide-box p {
  margin-bottom: 1rem;
  /* Espaciado más compacto debajo del párrafo */
  font-size: 0.875rem;
  /* Tamaño de texto más pequeño para que quepa mejor */
  color: #4a5568;
  /* Color de texto gris */
  line-height: 1.3;
  /* Espaciado entre líneas más compacto */
  flex-grow: 1;
  /* Permite que el párrafo use el espacio disponible */
}

.slide-box ul {
  list-style: none;
  /* Quita el estilo de lista por defecto */
  padding-left: 0;
  /* Quita el padding por defecto (priorizado de 1rem) */
  width: 100%;
  /* Ocupa todo el ancho disponible */
  text-align: left;
  /* Alinea el texto a la izquierda */
  flex-shrink: 0;
  /* Evita que la lista se encoja */
  margin-bottom: 1rem;
  /* Espaciado consistente */
}

.slide-box ul li {
  margin: 0.25rem 0;
  /* Espaciado más compacto entre ítems de la lista */
  display: flex;
  align-items: center;
  color: #2d3748;
  /* Color de texto para los ítems de la lista */
  font-size: 0.875rem;
  /* Tamaño de texto más pequeño */
  line-height: 1.3;
  /* Espaciado entre líneas más compacto */
}

/* Eliminado para evitar duplicación con HTML */

/* Sobrescribir estilos de Tailwind para centrar las cartas */
.glide__slide .slide-box {
  margin: 0 auto !important;
  /* Centrar horizontalmente */
  text-align: center !important;
  /* Centrar texto */
  align-items: center !important;
  /* Centrar contenido */
  max-width: 320px !important;
  /* Ancho máximo consistente */
  height: 480px !important;
  /* Altura fija exacta para todas las cartas */
  overflow: hidden !important;
  /* Oculta cualquier contenido que se desborde */
}

.slide-box a {
  display: inline-block;
  /* Para aplicar padding y margen */
  margin-top: auto;
  /* Empuja el enlace hacia abajo */
  color: #10B981;
  /* Verde principal */
  font-weight: 600;
  /* Seminegrita */
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  /* Tamaño de texto más pequeño */
}

.slide-box a:hover {
  color: #059669;
  /* Verde más oscuro al pasar el ratón */
  text-decoration: underline;
}

/* Estilos de Icono */
.icon-svg {
  width: 2.5rem;
  /* Tamaño del icono */
  height: 2.5rem;
  color: currentColor;
  /* El color se heredará de la clase category-* */
}

/* Colores específicos para las categorías usando la paleta */
.category-personas {
  color: var(--palette-light-green-1);
}

.category-emprendedores {
  color: var(--palette-medium-green);
}

.category-abogados {
  color: var(--palette-darker-green);
}

.category-contadores {
  color: var(--palette-brownish-green-1);
}

.category-empresas {
  color: var(--palette-brownish-green-2);
}

.category-curiosos {
  color: var(--palette-light-olive);
}

/* ─────────────────────────────────────
 Estilos específicos para Glide.js
───────────────────────────────────── */
.glide {
  max-width: 100%;
  /* Ocupa el ancho del contenedor (priorizado de 600px para mayor flexibilidad) */
  margin: 0 auto;
  position: relative;
}

.glide__track {
  overflow: hidden;
}

.glide__slides {
  display: flex;
  align-items: stretch;
  /* Hace que todos los slides tengan la misma altura */
}

.glide__slide {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  /* Asegura que las tarjetas se estiren a la misma altura */
  padding: 1rem;
  /* Espaciado entre slides */
  height: 520px !important;
  /* Altura fija para el contenedor del slide */
}

/* Flechas de navegación */
.glide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Permite clicks a través del contenedor, solo los botones reaccionan */
  padding: 0;
  /* Sin padding interno */
}

.glide__arrow {
  pointer-events: all;
  /* Hace que las flechas sean clickeables */
  background-image: linear-gradient(to right, #10B981, #059669);
  /* Gradiente de botón */
  color: #fff;
  border: none;
  width: 3rem;
  /* Tamaño de botón */
  height: 3rem;
  border-radius: 9999px;
  /* Completamente redondo */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-image 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: absolute;
  /* Posicionamiento absoluto para control preciso */
  z-index: 10;
  /* Por encima de las cartas */
}

.glide__arrow:hover {
  background-image: linear-gradient(to right, #059669, #047857);
  /* Gradiente más oscuro al hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.glide__arrow--left {
  left: -58px;
  /* 10px fuera de la carta + 48px (3rem) de ancho de botón */
}

.glide__arrow--right {
  right: -58px;
  /* 10px fuera de la carta + 48px (3rem) de ancho de botón */
}

/* Bullets de navegación */
.glide__bullets {
  display: flex;
  justify-content: center;
  position: absolute;
  /* Posicionamiento absoluto */
  bottom: -15px;
  /* 5px abajo de las cartas (ajustando desde el bottom del contenedor) */
  left: 50%;
  /* Centrar horizontalmente */
  transform: translateX(-50%);
  /* Centrar perfectamente */
  gap: 0.5rem;
  /* Espaciado entre bullets */
  z-index: 5;
  /* Por encima de las cartas pero debajo de las flechas */
}

.glide__bullet {
  width: 0.75rem;
  /* Tamaño de bullet */
  height: 0.75rem;
  border-radius: 9999px;
  background-color: #d1d5db;
  /* Gris claro */
  transition: background-color 0.3s ease, width 0.3s ease;
  cursor: pointer;
  border: none;
  /* Eliminar borde por defecto */
  outline: none;
  /* Eliminar outline en focus */
}

.glide__bullet--active {
  background-color: #10B981 !important;
  /* Verde principal cuando está activo */
  width: 1.25rem;
  /* Un poco más ancho cuando está activo */
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  /* Inicialmente oculto */
}

.animate-fade-in-up-1 {
  animation-delay: 0.2s;
}

.animate-fade-in-up-2 {
  animation-delay: 0.4s;
}

.slide-box-animation {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Retraso escalonado para las animaciones de las tarjetas */
.glide__slide:nth-child(1) .slide-box {
  animation-delay: 0.3s;
}

.glide__slide:nth-child(2) .slide-box {
  animation-delay: 0.4s;
}

.glide__slide:nth-child(3) .slide-box {
  animation-delay: 0.5s;
}

.glide__slide:nth-child(4) .slide-box {
  animation-delay: 0.6s;
}

.glide__slide:nth-child(5) .slide-box {
  animation-delay: 0.7s;
}

.glide__slide:nth-child(6) .slide-box {
  animation-delay: 0.8s;
}

/* Ajustes de espaciado general */
.py-20 {
  padding-top: 4rem;
  /* Ajustado para un espaciado más moderno (priorizado de 3rem) */
  padding-bottom: 4rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
  /* Ajustado el margen inferior del título (priorizado de 2rem) */
}

.mb-6 {
  margin-bottom: 1.5rem;
}

footer {
  margin-top: 0;
  /* Mantenido como en tu CSS */
}

/* Estilos específicos para la sección de precios */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
  display: flex;
  /* Make it a flex container */
  flex-direction: column;
  /* Stack children vertically */
  justify-content: space-between;
  /* Push content to top and button to bottom */
  /* height: 100%; */
  height: auto;   /* deja que la tarjeta mida lo justo */
  /* Ensure cards take full height to allow space-between */
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: #059669;
  /* Un verde más oscuro de Tailwind */
}

.pricing-card .btn-gradient:hover {
  transform: scale(1.03);
  /* Ligero aumento de tamaño en el botón al hover */
}

.pricing-feature-icon {
  width: 1.25rem;
  /* Tamaño de icono de característica */
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* Gradientes para las tarjetas de precios */
.pricing-card.gratis-gradient {
  background: linear-gradient(135deg, var(--price-free-bg) 0%, #D8F5D8 100%);
  color: #1a202c;
  /* Color de texto general oscuro */
}

.pricing-card.gratis-gradient .text-green-600 {
  /* Color del precio */
  color: var(--palette-dark-green);
  /* Un verde oscuro de la paleta */
}

.pricing-card.gratis-gradient .text-gray-900 {
  /* Color del título */
  color: var(--palette-dark-green);
}

.pricing-card.gratis-gradient .text-gray-600,
.pricing-card.gratis-gradient .text-gray-700 {
  /* Color de la descripción y la lista */
  color: #2d3748;
  /* Un gris oscuro para buena legibilidad */
}

.pricing-card.gratis-gradient .pricing-feature-icon.text-green-500 {
  /* Iconos de check */
  color: var(--palette-darker-green);
  /* Verde oscuro para visibilidad */
}

.pricing-card.gratis-gradient .pricing-feature-icon.text-red-500 {
  /* Iconos de X */
  color: var(--palette-red);
  /* Rojo de la paleta */
}


.pricing-card.pro-gradient {
  background: linear-gradient(135deg, var(--price-pro-bg) 0%, #C4EDE4 100%);
  border: 2px solid var(--cta-green);
  box-shadow: 0 20px 40px rgba(5, 150, 105, .35);
  color: #1a202c;
  /* Color de texto general oscuro */
  transform: scale(1.07) translateY(-10px);
  /* Make Pro card slightly larger and lifted */
  z-index: 10;
  /* Ensure it's on top */
}

.pricing-card.pro-gradient:hover {
  transform: scale(1.1) translateY(-15px);
  /* Even larger and lifted on hover */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  /* Even stronger shadow on hover */
}

.pricing-card.pro-gradient .text-green-600 {
  /* Color del precio */
  color: var(--palette-dark-green);
  /* Consistent dark green */
}

.pricing-card.pro-gradient .text-gray-900 {
  /* Color del título */
  color: var(--palette-dark-green);
  /* Consistent dark green */
}

.pricing-card.pro-gradient .text-gray-600,
.pricing-card.pro-gradient .text-gray-700 {
  /* Color de la descripción y la lista */
  color: #2d3748;
  /* Consistent dark gray */
}

.pricing-card.pro-gradient .pricing-feature-icon.text-green-500 {
  /* Iconos de check */
  color: var(--palette-darker-green);
  /* Consistent dark green */
}

.pricing-card.pro-gradient .pricing-feature-icon.text-red-500 {
  /* Iconos de X */
  color: var(--palette-red);
  /* Consistent red */
}

.pricing-card.empresa-gradient {
  background: linear-gradient(135deg, var(--price-enterprise-bg) 0%, #EBE6E6 100%);
  color: #1a202c;
  /* Color de texto general oscuro */
}

.pricing-card.empresa-gradient .text-green-600 {
  /* Color del precio */
  color: var(--palette-dark-green);
  /* Consistent dark green */
}

.pricing-card.empresa-gradient .text-gray-900 {
  /* Color del título */
  color: var(--palette-dark-green);
}

.pricing-card.empresa-gradient .text-gray-600,
.pricing-card.empresa-gradient .text-gray-700 {
  /* Color de la descripción y la lista */
  color: #2d3748;
  /* Consistent dark gray */
}

.pricing-card.empresa-gradient .pricing-feature-icon.text-green-500 {
  /* Iconos de check */
  color: var(--palette-darker-green);
  /* Consistent dark green */
}

.pricing-card.empresa-gradient .pricing-feature-icon.text-red-500 {
  /* Iconos de X */
  color: var(--palette-red);
  /* Consistent red */
}

/* Estilo para los botones con gradiente */
.btn-gradient {
  background-image: linear-gradient(to right, #10B981, #059669);
  /* green-500 to green-700 */
  transition: background-image 0.3s ease, transform 0.2s ease;
  margin-top: auto;
  /* Pushes the button to the bottom if the card is a flex column */
}

/* Pro card button gradient */
.pricing-card.pro-gradient .btn-gradient {
  background: linear-gradient(to right, var(--cta-green), #047857);
}

.btn-gradient:hover {
  background-image: linear-gradient(to right, #059669, #047857);
  /* Darker gradient on hover */
  transform: translateY(-2px);
  /* Slight lift on hover */
}

/* Alineación de texto en las listas de características */
.pricing-card ul {
  padding-left: 0;
  /* Asegura que la lista no tenga padding izquierdo */
  flex-grow: 1;
  /* Allow the ul to grow and push the button down */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align list items to the top of their container */
  margin-bottom: 1.5rem;
  /* Consistent spacing before the button */
}

.pricing-card ul li {
  justify-content: flex-start;
  /* Alinea los ítems de la lista a la izquierda */
  text-align: left;
  /* Asegura que el texto dentro del li también se alinee a la izquierda */
}

/* Contenedor de descripción con altura fija para alineación */
.description-container {
  min-height: 4.5rem;
  /* Ajusta esta altura para acomodar la descripción más larga en 2 líneas */
  display: flex;
  align-items: flex-start;
  /* Align text to the top of its container */
  justify-content: center;
  /* Centra horizontalmente el texto */
  margin-bottom: 1.5rem;
  /* Espaciado consistente debajo de la descripción */
  width: 100%;
  text-align: center;
  /* Ensure text inside is centered */
}

/* Contenedor de precio con altura fija para alineación */
.price-container {
  min-height: 3.5rem;
  /* Ajusta esta altura para acomodar el precio más largo en 1 o 2 líneas */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  /* Espaciado consistente debajo del precio */
  width: 100%;
  text-align: center;
  /* Ensure text inside is centered */
}

.price-container .price-text {
  line-height: 1.2;
  /* Ajusta el line-height para el precio si es necesario */
}

/* Estilos del Toggle Mensual/Anual */
.toggle-wrapper {
  display: flex;
  justify-content: center;
  /* Centra el toggle y el badge */
  align-items: center;
  margin-bottom: 5px;
  /* Espacio de 5px debajo del toggle */
  margin-top: 2rem;
  /* Espacio arriba para el badge */
  position: relative;
  /* Para posicionar el badge absolutamente */
  max-width: 20rem;
  /* Limita el ancho del wrapper */
  margin-left: auto;
  /* Centra el wrapper */
  margin-right: auto;
  /* Centra el wrapper */
}

.toggle-container {
  display: flex;
  background-color: #e2e8f0;
  /* Gris claro de fondo */
  border-radius: 9999px;
  /* Bordes redondeados */
  padding: 0.35rem;
  /* Relleno interno más pequeño */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  /* Sombra interna sutil */
  width: fit-content;
  /* Make the container fit its content */
  margin: 0 0 55px 0;
  /* 35px de espacio debajo del toggle-container */
}

.toggle-button {
  padding: 0.6rem 1.2rem;
  /* Padding más pequeño */
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
  /* Texto gris oscuro por defecto */
  background-color: transparent;
  /* Fondo transparente por defecto */
  border: none;
  /* Sin borde */
  outline: none;
  /* Sin outline en focus */
  position: relative;
  /* Make toggle buttons relative for badge positioning */
  overflow: visible;
  /* Allow ribbon to overflow */
}

.toggle-button.active {
  background-image: linear-gradient(to right, #10B981, #059669);
  /* Gradiente verde */
  color: #fff;
  /* Texto blanco */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Sombra para el botón activo */
  transform: scale(1.02);
  /* Slight scale on active button */
}

/* Estilo para el badge de ahorro como ribbon */
.save-badge {
  background-color: #fe9393;
  /* Rojo de Tailwind red-500 */
  color: #fff;
  font-size: 0.65rem;
  /* Texto aún más pequeño */
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  /* Padding más pequeño */
  white-space: nowrap;
  /* Evita que el texto se rompa */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  /* Sombra más sutil */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  /* Hidden by default */
  visibility: hidden;
  /* Ensure it's not visible for screen readers when hidden */
  display: flex;
  align-items: center;
  gap: 0.2rem;
  /* Espacio entre el icono y el texto */

  /* Ribbon positioning */
  position: absolute;
  top: -2.4rem;
  /* Posicionado más arriba para no tapar el texto */
  right: -2.4rem;
  /* Movido más hacia la esquina derecha */
  transform: rotate(35deg);
  /* Rotación más pronunciada hacia la esquina */
  transform-origin: 0% 100%;
  /* Rotate from bottom-left corner of the badge */
  width: 100px;
  /* Adjust width to ensure it covers the corner */
  text-align: center;
  justify-content: center;
  padding: 0.25rem 0;
  /* Adjust padding for ribbon look */
  border-bottom-left-radius: 8px;
  /* Slight curve for ribbon effect */
  z-index: 100;
  /* Z-index muy alto para estar por encima de las tarjetas */
}

.save-badge.visible {
  opacity: 1;
  visibility: visible;
}

.save-badge .lucide {
  width: 0.8rem;
  /* Tamaño del icono dentro del badge */
  height: 0.8rem;
  color: #fff;
}

/* --- AJUSTE DE ANCHO Y PADDING PARA LAS TARJETAS DE PRECIOS --- */

/* ❶  Límite universal (móvil + desktop)  */
.pricing-card{
  max-width: 22rem;      /* ≈ 352 px  -- cabe texto cómodo */
  padding: 1.5rem;       /* = p-6 en Tailwind */
  margin-left: auto;     /* centra dentro del grid */
  margin-right: auto;
  box-sizing: border-box;
}

/* ❷  A partir de 768 px hacemos las tarjetas aún más estrechas,
      para que tres quepan holgadamente en “md:grid-cols-3”         */
@media (min-width: 768px){
  .pricing-card{
    max-width: none;
    width: 100%;          /* llena la celda de grid */    
    padding: 2rem;       /* = p-8 */
  }
}
/* ---- COMPRESIÓN VERTICAL ---- */
.pricing-card{
  padding-top: 1.75rem;   /* menos padding */
  padding-bottom: 1.75rem;
}

.description-container,
.price-container{
  margin-bottom: 1rem;    /* antes era 1.5rem */
}

.pricing-card ul{
  margin-bottom: 1rem;    /* antes 1.5rem */
}

.pricing-card ul li{
  margin-bottom: 0.5rem;  /* lista más apretada */
}