/* ================================================== */
/* 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;
}

/* NAVIGATION */
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Helvetica', sans-serif;
  font-weight: 500;
  color: var(--dim-gray);
  text-decoration: none;
  font-size: 1rem;

  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}


/* ================================================== */
/* 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 */
/* ================================================== */

/* ===== ANIMACIONES PARA CONTACTO ===== */
.contact-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(27, 30, 40, 0.85);
  border-top: 1px solid rgba(90, 191, 146, 0.2);
  border-bottom: 1px solid rgba(90, 191, 146, 0.2);
  padding: 5rem 0;
  text-align: center;
}

/* Contenedor con animación inicial */
.contact-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Título de sección */
.contact-header .section-heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  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;
}

/* Subtítulo */
.contact-header .section-subheading {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

/* Subrayado animado */
.contact-header .section-heading::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;
}

/* Clases para activar animaciones cuando son visibles */
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.contact-header.animate-in .section-heading,
.contact-header.animate-in .section-subheading {
  opacity: 1;
  transform: translateY(0);
}

.contact-header.animate-in .section-heading::after {
  transform: translateX(-50%) scaleX(1);
}



/* ================================================== */
/* Estilos específicos para Microsoft Forms Embed */
/* ================================================== */


.form-section {
            padding: 2rem;
            background-color: var(--raising-black);
            margin: 2rem auto;
            max-width: 1000px;
        }
        
.form-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Relación de aspecto 16:9 */
    height: 925px;
                max-width: 820px;

    overflow: hidden; /* Oculta cualquier scroll fuera del iframe */
}

.form-iframe {
    position: absolute;
    top: -50px; /* Ajusta estos valores según necesites */
    left: 0;
    width: calc(100% + 20px); /* Compensa el espacio del scroll */
    height: calc(100% + 100px); /* Hace el iframe más grande para cubrir el scroll */
    border: none;
    background-color: #192C44;
}
        
        .form-title {
            text-align: center;
            margin-bottom: 1.5rem;
            color: #333;
        }
/* ================================================== */
/* 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;
}

/* Form states */
.form-loading {
position: relative;
pointer-events: none;
}

.form-loading::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(55, 65, 81, 0.5);
display: flex;
justify-content: center;
align-items: center;
}

.hidden {
display: none;
}

#form-fallback, #form-error {
padding: 1.5rem;
background: var(--gray-700);
border-radius: 0.5rem;
margin-top: 1rem;
text-align: center;
}

#form-error {
background: #fef2f2;
color: #b91c1c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
.visible {
  opacity: 1 !important;
}


 

.tech-bg-particle {
  position: relative;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}

#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
}

/* Asegura que las animaciones no afecten el formulario */
#contact {
animation: none !important;
transition: none !important;
}

/* Estilos específicos para el estado de carga */
.form-loading {
pointer-events: none;
}
.form-loading * {
animation-play-state: paused !important;
}
/* Estilos para fallbacks y mensajes */
.hidden { display: none; }

#form-fallback, #form-error {
padding: 1.5rem;
background: var(--gray-700);
border-radius: 0.5rem;
margin-top: 1rem;
text-align: center;
}

#form-error {
background: #fef2f2;
color: #b91c1c;
}

/* 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;
  }
}

