/* ================================================== */
/* 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;
}

body {
  font-family: 'Coolvetica', 'Helvetica', sans-serif;
}


/* ================================================== */
/* Base & Reset */
/* ================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'helvetica';
  line-height: 1.6;
  background: var(--raising-black);
  color: var(--dim-gray);
  overflow-x: hidden;
}

/* ================================================== */
/* Tipografía */
/* ================================================== */

h1 {
  font-family: 'Coolvetica', sans-serif; /* Para el logo y titulares principales */
  font-size: 4rem;  
  line-height: 2;
  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 */
  }


/* ===== ESTILOS ADAPTADOS PARA LA SECCIÓN ABOUT US ===== */
#us {
  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;
}

/* Clase para animación cuando el elemento es visible */
.us-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Contenedor principal con animación inicial */
#us .us-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Título principal con animación */
#us 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;
}

#us h2.us-visible::after {
  transform: translateX(-50%) scaleX(1);
}

#us 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;
}

/* Descripción principal */
#us .max-w-4xl.mx-auto {
  line-height: 1.7;
  padding: 0 1rem;
  font-size: 1.125rem;
  color: var(--dim-gray);
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

/* Párrafo descriptivo */
#us p {
  line-height: 1.7;
  font-size: 1.125rem;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  #us {
    padding: 3rem 1rem;
  }

  #us h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  #us p {
    font-size: 1rem;
    padding: 0;
  }
}

/* Contenedor principal - Fila flexible */
.mission-vision-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem 10%;
  border-top: 1px solid rgba(90, 191, 146, 0.2);
  border-bottom: 1px solid rgba(90, 191, 146, 0.2);
  max-width: 1400px;
  margin: 0 auto;
}

/* Tarjetas individuales (Misión y Visión) */
.mission-card, .vision-card {
  position: relative;
  width: 48%;
  padding: 2.5rem;
  background: rgba(27, 30, 40, 0.7);
  border-radius: 8px;
  transition: all 0.4s ease;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efectos hover */
.mission-card:hover, .vision-card:hover {
  background: linear-gradient(to bottom, rgba(27, 30, 40, 0.95), rgba(25, 44, 68, 0.85));
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 191, 146, 0.1);
  border-color: rgba(90, 191, 146, 0.3);
}

/* Títulos y texto */
.mission-card h2, .vision-card h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  padding-bottom: 0.75rem;
}

.mission-card h2::after, .vision-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--mint);
}

.mission-card p, .vision-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Corrección para las cards de misión/visión */
@media (max-width: 768px) {
  .mission-vision-container {
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
  }
  
  .mission-card, 
  .vision-card {
    width: 100%;
    padding: 2rem;
  }
  
  .mission-card h2, 
  .vision-card h2 {
    font-size: 1.75rem;
  }
}

/* ================================================== */
/* Sección Values */
/* ================================================== */
/* ================================================== */
/* Animations */
/* ================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clase base para elementos ocultos inicialmente */
.hidden-onload {
  opacity: 0;
}

/* Clase que activa la animación */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Retrasos para animaciones escalonadas */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.values-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(90, 191, 146, 0.2);
  border-bottom: 1px solid rgba(90, 191, 146, 0.2);
}

.values-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.values-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  position: relative;
  display: inline-block;
  width: 100%;
}

.values-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--mint);
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: rgba(27, 30, 40, 0.7);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90, 191, 146, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(90, 191, 146, 0.3);
}

.value-card:hover::before {
  opacity: 1;
}

.value-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--mint);
  position: relative;
  display: inline-block;
}

.value-name::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.value-card:hover .value-name::after {
  width: 60px;
}

.value-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Añade esto a tu sección values existente */
.values-grid {
  perspective: 1000px;
}

.value-card {
  transform-style: preserve-3d;
  transform: translateZ(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Responsive */
@media (max-width: 768px) {
  .values-section {
    padding: 3rem 0;
  }
  
  .values-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .value-card {
    padding: 1.5rem;
  }
}


/* ================================================== */
/* 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;
}

/* Loader styles */
.loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.5s ease;
}



/* 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;
  }
}

