/* Variables de color */
:root {
  --azul: #097FFF;
  --azul-oscuro: #001752;
  --verde: #5BD774;
  --naranja: #F4941D;  
  --blanco: #fff;
  --negro: #111;
  --gris: #222;
}

/* Fuentes personalizadas */
@font-face {
  font-family: 'Comodo';
  src: url('./tipografias/REGULAR FREE.OTF') format('opentype'),
       url('./tipografias/COMODO REGULAR FREE.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Century Gothic';
  src: url('./tipografias/CENTURY GOTHIC.TTF') format('truetype'),
       url('./tipografias/GOTHICB.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Century Gothic', Arial, sans-serif;
  background: var(--negro);
  color: var(--blanco);
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Comodo', 'Century Gothic', Arial, sans-serif;
  margin: 0 0 1rem 0;
}

.section {
  padding: 60px 0 40px 0;
  position: relative;
}

/* Menú fijo */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--azul-oscuro);
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ajustado para espacio entre elementos */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  height: 70px;
}
.logo {
  height: 44px;
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
  /* Por defecto, oculto en móvil (se manejará en media query) */
}
.nav-links li a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: var(--naranja);
}
.btn-consultoria {
  background: var(--naranja);
  color: var(--blanco);
  padding: 0.7em 1.5em;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;  
  display: inline-flex; /* Para alinear icono y texto */
  align-items: center;
  gap: 0.5em;
}
.btn-consultoria:hover {
  background: var(--azul);
  color: var(--blanco);
}

/* Ocultar botón móvil en escritorio */
.btn-consultoria-movil {
    display: none;
}
/* Ocultar botón escritorio en móvil (se define en media query) */
.btn-consultoria-escritorio {
    display: inline-flex;
}

.calendar-icon {
    height: 1.2em; /* Ajusta el tamaño del icono */
    width: auto;
    filter: invert(100%); /* Si el icono es oscuro y necesitas que sea blanco */
}

/* Estilos de la hamburguesa */
.hamburger {
  display: none; /* Oculto por defecto en escritorio */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001; /* Asegura que esté por encima del menú desplegable */
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: var(--naranja);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

/* Animación de la hamburguesa a "X" */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Banner principal */
.banner-principal {
  background: url('./imagenes/banner2.png') center/cover no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-content {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 18px;
  padding: 4rem 3rem;
  max-width: 950px;
  text-align: center;
  border: 2px solid var(--blanco);
}
.banner-content h1 {
  font-size: 3.2rem;
  font-weight: bold;
}
.banner-content p {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Sección IA habla */
.ia-habla {  
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.ia-habla-content h2 {
  font-size: 2.6rem;
  font-weight: normal;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}
.ia-habla-naranja {
  color: var(--naranja);
  font-weight: bold;
  font-size: 2.6rem;
}
.ia-habla-blanco {
  color: var(--blanco);
  font-weight: normal;
  font-size: 2.2rem;
}
.ia-habla-hr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.ia-habla-hr {
  flex: 1;
  border: none;
  border-top: 2px solid #ccc;
  height: 0;
  margin: 0 0.5rem;
  max-width: 30vw;
}
.ia-habla .btn-consultoria {
  margin: 0;  
  font-size: 1.1rem;
}

/* Problemas comunes */
.problemas-comunes {  
  text-align: center;
}
.logo-section {
  height: 48px;
  margin-bottom: 1rem;
}
.problemas-comunes h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.problemas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.problema {
  background: rgba(20, 20, 20, 0.7);
  border: 1.5px solid var(--naranja);
  border-radius: 14px;
  padding: 3.5rem;
  font-size: 1.3rem;
}

/* IA es el presente */
.ia-presente {  
  display: flex;
  align-items: center;
  justify-content: center;
}
.ia-presente-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 2.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.ia-presente-texto {
  flex: 1.2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  text-align: left;
  justify-content: center;
}
.ia-presente-texto h2 {
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.1;
}
.ia-presente-naranja {
  color: var(--naranja);
  font-weight: bold;
  font-size: 2.5rem;
}
.ia-presente-box {
  background: rgba(20, 20, 20, 0.7);
  border: 1.5px solid var(--naranja);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ia-presente-box h3 {
  color: var(--naranja);
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.ia-presente-box p {
  color: var(--blanco);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.ia-presente-box .btn-consultoria {
  margin: 0;  
  font-size: 1.1rem;
}

/* Estrategias de transformación */
.estrategias {
  background: url('./imagenes/banner3.png') center/cover no-repeat, rgba(10, 30, 70, 0.85);
  text-align: center;
  position: relative;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.estrategias-box {
  max-width: 800px;
  margin: 0 auto;
  background: url('./imagenes/banner4.png') center/cover no-repeat, rgba(10, 30, 70, 0.85);
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 3rem 2rem 2.5rem 2rem;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}
.logo-section {
  height: 48px;
  margin-bottom: 1.5rem;
}
.estrategias-content h2 {
  font-size: 2.2rem;
  color: #fff;
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.estrategias-bold {
  font-weight: bold;
  color: #fff;
}
.estrategias-content p {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 2rem;
}
.estrategias-naranja {
  color: var(--naranja);
  font-weight: bold;
}
.estrategias-content .btn-consultoria {
  margin: 0 auto;
  min-width: 180px;
  font-size: 1rem;
  padding: 0.6em 1.2em;
  display: block;
}
.icon-final {
  margin: 0 auto;
  height: 70px;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.15);
  z-index: 1;
  object-fit: contain;
}
.estrategias-box .btn-consultoria {
  min-width: 180px;
  font-size: 1rem;
  padding: 0.6em 1.2em;
  max-width: 250px;
}
.estrategias-box .icon-final img, .icon-final img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* Camino de transformación */
.camino-transformacion {  
  text-align: center;
}
.camino-transformacion h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.camino-transformacion span {
  color: var(--naranja);
}
.camino-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.camino {
  background: rgba(20, 20, 20, 0.7);
  border: 1.5px solid var(--naranja);
  border-radius: 14px;
  padding: 2.5rem;
  font-size: 1.3rem;
}

/* Servicios de IA */
.servicios-ia {  
  text-align: center;
}
.servicios-ia h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.servicios-ia span {
  color: var(--naranja);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.servicio {
  background: rgba(20, 20, 20, 0.7);
  border: 1.5px solid var(--azul);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: left;
}
.logo-servicio {
  height: 32px;
  margin-bottom: 1rem;
}
.servicios-ia .btn-consultoria {
  margin-top: 2.5rem;
  margin-bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 250px;
  width: 100%;
}
.servicio p {
  text-align: justify;
}

/* ¿Cómo lo hacemos? */
.como-hacemos {  
  text-align: center;
}

.como-hacemos h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: var(--blanco);
}

.como-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.como {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: left;
  color: #ffffff;
  min-height: 260px;
  display: flex;
  flex-direction: column;  
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.como-num {
  font-size: 2.5rem;
  font-weight: bold;
  color: #A259FF; /* morado destacado */
  margin-bottom: 1rem;
}

.como h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.como p {
  font-size: 1rem;
  line-height: 1.4;
}

.como-hacemos .btn-consultoria {
  margin-top: 2.5rem;
  max-width: 250px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Contacto */
.contacto {
  background: linear-gradient(135deg, #001b84 0%, #f4941d 100%);
  color: var(--blanco);
  padding: 0;
}

.contacto-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contacto-info {
  flex: 1 1 400px;
  min-width: 300px;
}

.contacto-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: #fff;
}

.contacto-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contacto-info a {
  color: #f4941d;
  text-decoration: none;
  font-weight: bold;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.icon-contacto {
  height: 56px;
  margin-bottom: 1rem;
}

/* Formulario */
.contacto-form {
  flex: 1 1 400px;
  min-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contacto-form label {
  color: #000; /* Asegura el color del label */
  font-weight: bold;
  margin-bottom: -0.5rem; /* Ajusta el espacio entre label e input */
  font-size: 0.95rem;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 0.9em 0em; /* Ajustado padding para inputs */
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  color: #333;
  font-size: 1rem;
  font-family: 'Century Gothic', Arial, sans-serif;
  box-shadow: none;
  outline: none;
  transition: all 0.2s ease;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: #999;
  opacity: 1;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border: 1px solid var(--naranja);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(244, 148, 29, 0.2);
}

.contacto-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contacto-form button {
  background: var(--naranja);
  color: var(--blanco);
  border: none;
  border-radius: 8px;
  padding: 0.95em;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contacto-form button:hover {
  background: var(--azul);
}

#submitBtn:disabled {
  background-color: #ccc !important;
  cursor: not-allowed !important;
  color: #666 !important;
  border: none !important;
  opacity: 1 !important;    
}



.icon-circle {
  width: 140px;
  height: 140px;
  margin: 2.5rem auto 0 auto;
  border-radius: 50%;
  background-color: #000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icon-final {
  max-width: 80%;
  max-height: 80%;
  object-fit: scale-down;
  display: block;
}

/* Aplica el fondo solo al contenedor */
.fondo-banner6 {
  background: url('./imagenes/banner6.png') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  /* Para asegurar que cubra todo el contenido */
  padding: 0;
  margin: 0;
}

.fondo-banner5{
  background: url('./imagenes/banner5.png') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  /* Para asegurar que cubra todo el contenido */
  padding: 0;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .servicios-grid, .como-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Ocultar el botón de escritorio y mostrar el de móvil */
  .btn-consultoria-escritorio {
    display: none;
  }

  .btn-consultoria-movil {
    display: inline-flex;
    align-items: center;
    padding: 0.5em 1em;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    background-color: var(--naranja);
    color: white;
    text-decoration: none;
    gap: 0.5em;
  }
  
  /* ESTILOS AÑADIDOS PARA EL BOTÓN MÓVIL CON ICONO */
  .btn-consultoria-movil {
    background: var(--naranja); /* Fondo naranja */
    color: var(--blanco); /* Texto blanco */
    padding: 0.7em 1.5em; /* Padding del botón */
    border-radius: 10px; /* Bordes redondeados */
    font-weight: bold;
    text-decoration: none;
    border: none;
    font-size: 1.1rem; /* Tamaño de fuente */
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    display: flex; /* Usar flexbox para alinear contenido */
    align-items: center; /* Alinear verticalmente el contenido */
    gap: 0.5em; /* Espacio entre el icono y el texto */
    min-width: unset; /* Eliminar min-width si lo tenía */
    margin: 0; /* Eliminar margen si lo tenía */
  }

  .btn-consultoria-movil .calendar-icon {
    width: 1.2em; /* Tamaño del icono */
    height: 1.2em; /* Altura del icono */
    filter: invert(0); /* Asegurarse de que el icono no esté invertido si ya es blanco */
    margin-right: 0.3em; /* Pequeño margen a la derecha del icono */
  }

  .btn-consultoria-movil:hover {
    background: var(--azul);
    color: var(--blanco);
  }

  .calendar-icon {
    width: 1em;
    height: 1em;
    filter: invert(1); /* Si el icono es oscuro, se invierte a blanco */
  }

  .banner-content h1 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .banner-content p {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .banner-content .btn-consultoria {
    font-size: 1rem;
    padding: 0.6em 1.2em;
  }

  .banner-content {
    padding: 2rem 1rem;
  }

  .navbar {
    flex-direction: row; /* Vuelve a fila para logo, botón y hamburguesa */
    align-items: center;
    justify-content: space-between; /* Espacio entre logo, botón y hamburguesa */
    padding: 1rem 1.5rem; /* Ajustar padding */
    height: auto; /* Permitir que la altura se ajuste */
  }

  .nav-links {
    display: none; /* Ocultar enlaces de navegación por defecto */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px; /* Debajo del header */
    left: 0;
    background: var(--azul-oscuro);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%); /* Inicialmente fuera de la vista */
  }

  .nav-links.active {
    display: flex; /* Mostrar cuando tenga la clase 'active' */
    transform: translateY(0); /* Deslizar hacia abajo */
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex; /* Mostrar la hamburguesa */
    order: 2; /* Después del botón móvil */
  }

  /* El resto de tus media queries existentes */
  .problemas-grid, .camino-grid {
    grid-template-columns: 1fr;
  }
  .servicios-grid, .como-grid {
    grid-template-columns: 1fr;
  }
  .ia-presente-content {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .ia-presente-texto h2, .ia-presente-naranja {
    font-size: 1.5rem;
  }
  .ia-presente-box {
    padding: 2rem 1rem;
  }
  .contacto-content {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .contacto-info h2 {
    font-size: 1.7rem;
  }

  .contacto-info p {
    font-size: 1rem;
  }
  .ia-habla-content h2, .ia-habla-naranja {
    font-size: 1.4rem;
  }
  .ia-habla-blanco {
    font-size: 1.1rem;
  }
  .ia-habla-hr-btn {
    flex-direction: column;
    gap: 1rem;
  }
  .ia-habla-hr {
    max-width: 80px;
    width: 100%;
  }
  .como-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .logo {
    height: 30px;
    display: flex;
    align-items: center;
  }

  .banner-content h1, .ia-habla-content h2, .problemas-comunes h2, .ia-presente-content h2, .estrategias-content h2, .camino-transformacion h2, .servicios-ia h2, .como-hacemos h2, .contacto-info h2 {
    font-size: 1.3rem;
  }
  .section {
    padding: 30px 0 20px 0;
  }
  .btn-consultoria {
    padding: 1.5em 1em;
    font-size: 0.95rem;
  }

  .fondo-banner5{
    background-size: 1150px;
  }
}
@media (max-width: 900px) {
  .estrategias-box {
    padding: 2rem 1rem 1.5rem 1rem;
    max-width: 98vw;
  }
  .estrategias-content h2 {
    font-size: 1.3rem;
  }
  .estrategias-content p {
    font-size: 1rem;
  }
}