/* ================================================== */
/* Variables y Utilidades */
/* ================================================== */
:root {
  --raising-black: #1b1e28;
  --dim-gray: #6c6e7b;
  --white: #fff;
  --prussian-blue: #192C44;
  --mint: #5ABF92;
  --light-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --medium-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-base: 0.3s ease;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-md: 0.5rem;
}

/* Optimiza animaciones con will-change */
.problem-image-wrapper, .solution-image-wrapper {
  will-change: transform, opacity;
}

/* Mejora el contraste para accesibilidad */
.text-gray-300 {
  color: rgba(209, 213, 219, 0.9); /* Más legible */
}

/* Reduce repetición de código */
.btn, .solution-button, .btn-submit {
  transition: var(--transition-base);
  /* Propiedades comunes */
}

@font-face {
  font-family: 'Coolvetica';
  src: url('../fonts/coolvetica.woff2') format('woff2'),
       url('../fonts/coolvetica.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Reglas generales */
body {
  font-family: 'Helvetica', sans-serif;
  font-weight: 300; /* Helvetica Light para cuerpo de texto */
}

/* Headlines (ej: h1, h2, h3...) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica', sans-serif;
  font-weight: 800; /* Helvetica Medium (o usa 700 si solo está disponible Bold) */
}

/* Si necesitas más control, puedes diferenciar entre Medium y Bold así: */
h1 {
  font-weight: 700; /* Helvetica Bold */
}

h2, h3 {
  font-weight: 500; /* Helvetica Medium */
}

p, span, li, a, div {
  font-weight: 450; /* Helvetica Light */
}


/* ================================================== */
/* Base & Reset */
/* ================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
}

/* Añade al inicio de tu CSS */
@viewport {
  width: device-width;
  zoom: 1.0;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background-color: var(--raising-black); /* Para evitar bordes blancos */
}

/* ================================================== */
/* Tipografía */
/* ================================================== */

h1 {
  font-family: 'helvetica', sans-serif; /* Para el logo y titulares principales */
  font-size: 5rem;  
  line-height: 2.5;
  color: var(--white);
}

h2 {
  font-family: 'helvetica', sans-serif;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
}

h2 strong{
color: var(--mint);
}

h3, h4, h5, h6 {
  color: var(--white);
  line-height: 1.3;
}


/* ================================================== */
/* Componentes Generales */
/* ================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--mint);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--light-shadow);
}

/* ================================================== */
/* Header & Navegación */
/* ================================================== */
/* HEADER STYLES */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 4.5rem;
  padding: 1rem 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--raising-black);
  backdrop-filter: blur(6px); /* Más pronunciado para claridad */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  box-shadow: var(--light-shadow);

  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* LOGO */
.logo img {
  height: 3rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}



/* ================================================== */
/* Language switcher */
/* ================================================== */

  #lang-es.active, #lang-en.active {
    background-color: var(--mint);
    color: var(--white);
    border-color: transparent;
  }

.language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 2.5rem;
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--dim-gray);
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.language-switcher button.active {
  background: var(--raising-black);
  color: var(--white);
}


#menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--dim-gray);
  cursor: pointer;
}


/* ================================================== */
/* Hero Section */
/* ================================================== */


.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
      border-bottom: 1px solid rgba(90, 191, 146, 0.2);

}



.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
}

/* Corrección para el hero section */
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem); /* Mejor responsividad */
}

.hero p {
  font-size: 1.5rem;
}

.hero strong {
  color: var(--mint);
}

/* ===== Hover button ===== */
  .mint-button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #3EB489; /* menta */
    color: white;
    border: none;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }

  .mint-button:hover {
    background-color: #34a07a; /* menta más oscura para hover */
  }

/* ================================================== */
/* Success Cases Section - Customized */
/* ================================================== */
#success-cases {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(90, 191, 146, 0.2);
  border-bottom: 1px solid rgba(90, 191, 146, 0.2);
  padding: 5rem 0;
  background: transparent;
}

/* Título principal con animación y línea decorativa */
#success-cases h2 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  position: relative;
  display: inline-block;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#success-cases h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 3px;
  background: var(--mint);
  transition: transform 0.6s ease-out 0.3s;
  transform-origin: center;
}

/* Clase para activar animaciones */
#success-cases.animate-in h2,
#success-cases.animate-in p {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#success-cases.animate-in h2::after {
  transform: translateX(-50%) scaleX(1) !important;
}

#success-cases .container {
  position: relative;
}

/* Header Styles - Manteniendo el gradiente de texto */
#success-cases-heading {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  width: 100%;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#success-cases [data-i18n="success_cases.description"] {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

/* Cards Grid */
#success-cases .grid {
  gap: 1.5rem;
  perspective: 1000px;
}

/* Individual Card */
#success-cases a {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  background: #2d3748;
  height: 100%;
}

#success-cases a:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Card Image Container */
#success-cases .relative.h-80 {
  height: 280px;
  position: relative;
  overflow: hidden;
}

#success-cases img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

#success-cases img:first-child {
  z-index: 1;
}

#success-cases img:last-child {
  opacity: 0;
  transform: scale(1.1);
  z-index: 2;
}

#success-cases a:hover img:first-child {
  opacity: 0;
  transform: scale(1.1);
}

#success-cases a:hover img:last-child {
  opacity: 1;
  transform: scale(1);
}

/* Gradient Overlay */
#success-cases .bg-gradient-to-t {
  background: linear-gradient(to top, rgba(27, 30, 40, 0.9) 0%, transparent 100%);
}

/* Card Content */
#success-cases .relative.p-6 {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

#success-cases h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
  transition: color 0.3s ease;
}

#success-cases a:hover h3 {
  color: var(--mint);
}

#success-cases [data-i18n^="success_cases.case"] {
  color: rgba(160, 174, 192, 0.9);
  line-height: 1.6;
}

/* Link Arrow */
#success-cases .flex.items-center {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

#success-cases a:hover .flex.items-center {
  color: var(--mint);
}

#success-cases a:hover svg {
  transform: translateX(4px);
}

/* CTA Button */
#success-cases .mt-16 a {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  background: var(--raising-black);
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
  text-decoration: none;
}

#success-cases .mt-16 a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

#success-cases .mt-16 a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  transition: left 0.7s ease;
}

#success-cases .mt-16 a:hover::before {
  left: 100%;
}

/* Animations */
#success-cases a {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#success-cases a.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation */
#success-cases a:nth-child(1) { transition-delay: 0.1s; }
#success-cases a:nth-child(2) { transition-delay: 0.2s; }
#success-cases a:nth-child(3) { transition-delay: 0.3s; }
#success-cases a:nth-child(4) { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
  #success-cases .relative.h-80 {
    height: 240px;
  }
}

@media (max-width: 768px) {
  #success-cases {
    padding: 3rem 0;
  }
  
  #success-cases h2,
  #success-cases-heading {
    font-size: 2rem;
  }
  
  #success-cases .grid {
    grid-template-columns: 1fr;
  }
  
  #success-cases .relative.h-80 {
    height: 320px;
  }
}

@media (max-width: 480px) {
  #success-cases h2,
  #success-cases-heading {
    font-size: 1.75rem;
  }
  
  #success-cases .relative.p-6 {
    padding: 1.25rem;
  }
  
  #success-cases h3 {
    font-size: 1.25rem;
  }
}

#case-modal {
  transition: opacity 0.3s ease;
}
#case-modal:not(.hidden) {
  display: flex !important;
}
.no-scroll {
  overflow: hidden;
}

/* Fix para el botón clickeable */
#success-cases .group {
  position: relative;
}
/* ================================================== */
/* Carrusel Mejorado */
/* ================================================== */

.customers-carousel {
  padding: 2rem 1rem;
  overflow: hidden;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.customers-carousel .carousel-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Tamaño responsive */
  line-height: 1.2;
  margin-top: 1rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  width: 100%;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.customers-carousel .carousel-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 3px;
  background: var(--mint);
  transition: transform 0.6s ease-out 0.3s;
  transform-origin: center;
}

/* Activar animaciones */
.customers-carousel.animate-in .carousel-title {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.customers-carousel.animate-in .carousel-title::after {
  transform: translateX(-50%) scaleX(1) !important;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: auto;
  min-height: 80px; /* Altura mínima */
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Permite que los logos se ajusten en móviles */
  padding: 0 1rem;
}

/* Estilos para pantallas grandes (más de 768px) */
@media (min-width: 768px) {
  .carousel-track {
    flex-wrap: nowrap; /* Forza el scroll horizontal en desktop */
    justify-content: flex-start;
    padding: 0;
  }
  
  .carousel-wrapper {
    height: 100px; /* Altura fija solo en desktop */
  }
}

.carousel-track img {
  height: auto;
  max-height: 60px; /* Altura máxima para móviles */
  width: auto;
  max-width: 150px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  opacity: 0.8;
  object-fit: contain;
}

@media (min-width: 768px) {
  .carousel-track img {
    max-height: 80px; /* Altura mayor en desktop */
  }
}

.carousel-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Ajuste de la animación según el número de elementos */
@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    /* Calcula el desplazamiento basado en el contenido */
    transform: translateX(calc(-50% - 1rem));
  }
}

/* Para cuando hay pocos logos (menos de 4) */
.carousel-track.few-items {
  animation: none;
  justify-content: center;
  gap: 3rem;
}

/* ================================================== */
/* Footer */
/* ================================================== */
footer {

  background-color: var(--raising-black);
  backdrop-filter: blur(6px); /* Más pronunciado para claridad */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  box-shadow: var(--light-shadow);
  padding: 3rem 0;
}


.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}


/* ================================================== */
/* Estilos Base del Menú (compartidos) */
/* ================================================== */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease-out;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}


/* ================================================== */
/* Responsive Design */
/* ================================================== */
@media (min-width: 769px) {
  .nav-menu {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    padding: 0 1.5rem;
  }

  .nav-menu a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0.75rem 0;
  }

   /* Subrayado menta pegado al texto */
  .nav-menu a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 0.15rem; /* Espacio mínimo para el subrayado */
    transition: color 0.3s ease;
  }

  .nav-menu a:hover {
    color: var(--mint);
  }

  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.05rem; /* Casi pegado al texto */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint);
    transition: width 0.3s ease-out;
  }

  .nav-menu a:hover::after {
    width: 100%;
  }
  /* Separador visual mejorado */
  .nav-menu a:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -1rem;
    height: 1.5rem;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
  }

  #menu-toggle {
    display: none;
  }
}

/* ================================================== */
/* Versión Mobile (hasta 768px) */
/* ================================================== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--dark-gray);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .no-scroll {
    overflow: hidden;
  }

  #menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
  }

  #menu-toggle i {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }
}



html.no-scroll {
  overflow: hidden;
}


 
/* Estilos del banner de cookies */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1b1e28; /* --raising-black */
  color: #fff; /* --white */
  padding: 1rem;
  z-index: 50;
  border-top: 1px solid #6c6e7b; /* --dim-gray */
  display: none; /* Oculto por defecto */
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.cookie-link {
  color: #5ABF92; /* --mint */
  font-weight: 500;
  text-decoration: underline;
}

.cookie-link:hover {
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-button {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reject-btn {
  background-color: #6c6e7b; /* --dim-gray */
  color: #fff;
}

.accept-btn {
  background-color: #5ABF92; /* --mint */
  color: #fff;
}

.reject-btn:hover,
.accept-btn:hover {
  background-color: #192C44; /* --prussian-blue */
}

/* Responsive para pantallas medianas/grandes */
@media (min-width: 768px) {
  .cookie-container {
      flex-direction: row;
  }
  .cookie-text {
      margin-bottom: 0;
      text-align: left;
      font-size: 1rem;
  }
}

