/*
  IOne Innovation - Estilos Corporativos Profesionales (Revisado para fondo blanco, iconos SVG y sección de servicios lujosa)
  Autor: Juan Manuel
  Descripción: Estilos con paleta de colores vibrantes, fondo blanco interactivo, animaciones suaves y diseño responsive.
*/

/* ========== VARIABLES GLOBALES ========== */
:root {
  --primary-color: #007bff; /* Azul vibrante */
  --secondary-color: #6c757d; /* Gris secundario (sin cambios) */
  --accent-color: #0056b3; /* Azul ligeramente más oscuro para acentos */
  --light-bg: #f8f9fa; /* Fondo blanco casi puro */
  --card-bg: #ffffff; /* Fondo de tarjeta blanco */
  --text-dark: #343a40; /* Texto oscuro principal */
  --text-secondary: #6c757d; /* Texto gris secundario */
  --border-light: #e0e0e0; /* Borde suave */
  --shadow-light: rgba(0, 0, 0, 0.08); /* Sombra suave */
  --success-feedback: #28a745; /* Mantengo verde para feedback de éxito, si lo quieres azul, cámbialo a #218838 o similar */
  --error-feedback: #dc3545; /* Mantengo rojo para feedback de error */
  --font-family: 'Montserrat', sans-serif;
}

/* ========== REINICIO BÁSICO ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
font-family: var(--font-family);
background-color: #fff; /* Fondo blanco general */
color: var(--text-dark);
line-height: 1.6;
overflow-x: hidden;
position: relative;
}

/* Nuevo estilo para el canvas de fondo */
#hero-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Asegura que esté detrás del contenido */
  background: radial-gradient(circle at center, #001f40 0%, #000a1a 100%); /* Fondo oscuro azulado para el efecto de red */
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

h1, h2, h3 {
  color: var(--text-dark);
  margin-bottom: 0.8em;
  line-height: 1.2;
}

h1 { font-size: 3.2rem; font-weight: 700; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2em; font-weight: 700; }
h3 { font-size: 1.6rem; font-weight: 600; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-color);
}

ul { list-style: none; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px var(--shadow-light);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-color); /* Usamos el azul más oscuro al hacer hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25); /* Sombra azul al hacer hover */
}

/* ========== NAVBAR ========== */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex; /* Para alinear el logo y el texto horizontalmente */
  align-items: center; /* Centrar verticalmente */
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* MODIFICACIÓN AQUÍ: AUMENTADO EL TAMAÑO DEL LOGO */
.logo-img {
  height: 60px; /* Aumenta la altura de tu imagen de logo */
  margin-right: 10px; /* Espacio entre el logo y el texto */
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
}

.logo-highlight {
  color: var(--primary-color); /* Azul para el resaltado del texto */
}

.nav-links {
  display: flex;
}

.nav-links a {
  margin-left: 35px;
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  align-items: center;
}
.language-switcher .lang-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 14px;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.language-switcher .lang-btn.active,
.language-switcher .lang-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero-section {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding-top: 100px;
position: relative;
z-index: 1;
background: transparent; /* Fondo transparente para que se vea el blanco del body */
overflow: hidden;
}

/* Nuevo estilo para el canvas de fondo */
.ia-background-canvas { /* Asegúrate de que el CSS apunte a este ID/clase */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Asegura que esté detrás del contenido */
  background: radial-gradient(circle at center, #001f40 0%, #000a1a 100%); /* Fondo oscuro azulado para el efecto de red */
}
/* Contenedor para el título del héroe que tendrá una altura fija */
.hero-title-container {
  max-width: 900px;
  margin: 0 auto 0.4em auto;
  min-height: calc(4rem * 1.2 * 2); /* Ajusta esta altura para el número máximo de líneas de tu texto */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section h1 {
  font-size: 4rem;
  max-width: 100%;
  margin: 0;
  color: #e0f7fa; /* Color de texto más claro para contrastar con el nuevo fondo oscuro */
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Sombra para que resalte más */
}

/* Y la sección de hero-section se mantiene con background: transparent; */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente el contenido */
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent; /* Fondo transparente para que se vea el fondo del canvas */
  overflow: hidden;
  padding-top: 0; /* Elimina el padding superior para el centrado vertical */
}

/* Typewriter effect */
.typewriter-text {
  border-right: 2px solid var(--primary-color);
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}

.hero-section p {
  color: #a7d9ff; /* Texto estático también más claro */
  font-size: 1.3rem;
  margin-bottom: 2em;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* ========== ESTILOS GENERALES PARA ÍCONOS SVG ========== */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  line-height: 1;
}

.icon-wrapper svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ========== BENEFITS SECTION (TARJETAS) ========== */
.benefits-section {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.benefit-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.1);
}

.benefit-card .icon-wrapper svg {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--primary-color);
}

.benefit-card h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.benefit-card p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ========== NUEVA SECCIÓN: SERVICIOS (LUJOSA) ========== */
.services-section {
  padding: 100px 0;
  background: linear-gradient(to right, #eef2f3, #e0e5e9);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
  pointer-events: none;
}

.services-section h2 {
  font-size: 3rem;
  color: #1a202c;
  margin-bottom: 2.5em;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--card-bg);
  padding: 45px 35px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #dcdcdc;
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 55px rgba(0, 123, 255, 0.25);
  background-color: #fcfdfe;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
  transition: opacity 0.4s ease;
}
.service-card:hover::before {
  opacity: 0.15;
}

.service-card .icon-wrapper {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.service-card .icon-wrapper svg {
  width: 4rem;
  height: 4rem;
  color: var(--accent-color);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}


.service-card h3 {
  color: #212529;
  margin-bottom: 18px;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}

.service-card p {
  font-size: 1.05rem;
  color: #495057;
  line-height: 1.7;
  text-align: center;
}


/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 80px 0;
  background-color: #fff;
}

.features-content {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.features-text {
  flex: 1;
  min-width: 350px;
  max-width: 600px;
  text-align: left;
}
.features-text h2 {
  text-align: left;
  margin-bottom: 0.7em;
  font-size: 2.2rem;
}
.features-text p {
  font-size: 1.1rem;
  margin-bottom: 1.8em;
}

.features-chat-mockup {
  flex: 1;
  min-width: 350px;
  max-width: 500px;
  background-color: #f0f2f5;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chat-bubble .avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
  border: 2px solid #fff;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.chat-bubble.outgoing .avatar {
    background-color: var(--secondary-color);
}


.chat-bubble p {
  margin: 0;
  line-height: 1.4;
  color: var(--text-dark);
}
.chat-bubble p strong {
  color: #000;
}

.chat-bubble.incoming {
  background-color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-bubble.outgoing {
  background-color: #e6f0ff;
  align-self: flex-end;
  flex-direction: row-reverse;
  border-bottom-right-radius: 5px;
}
.chat-bubble.outgoing .avatar {
  margin-left: 10px;
  margin-right: 0;
}

/* ========== CONTACT FORM SECTION ========== */
.contact-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.contact-section h2 {
  margin-bottom: 1.5em;
  color: var(--text-dark);
}

.form-wrapper {
  background-color: var(--card-bg);
  padding: 45px 50px;
  border-radius: 15px;
  box-shadow: 0 10px 40px var(--shadow-light);
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #fcfcfc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 15px 0;
  font-size: 1.1rem;
  margin-top: 15px;
}

.form-feedback {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInOut 5s forwards;
}

.form-feedback.success {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.form-feedback.error {
  background-color: #f8d7da;
  color: var(--error-feedback);
  border: 1px solid #f5c6cb;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ========== FOOTER ========== */
.footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 40px 0;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer p {
  margin: 0;
  color: #ced4da;
}

.footer .social-links a {
  color: #f8f9fa;
  font-size: 1.5rem;
  margin: 0 12px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer .social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}
.footer .social-links a svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}
.footer .social-links a:hover svg {
  color: var(--primary-color);
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .hero-section p { font-size: 1.2rem; }
  .benefits-grid, .services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .features-content { flex-direction: column; gap: 40px; }
  .features-text, .features-chat-mockup { max-width: 100%; text-align: center; }
  .features-text h2 { text-align: center; }

  /* Ajustes para servicios en responsive */
  .services-section h2 { font-size: 2.5rem; margin-bottom: 2em; }
  .service-card { padding: 35px 25px; border-radius: 15px; }
  .service-card .icon-wrapper svg { width: 3.5rem; height: 3.5rem; margin-bottom: 20px; }
  .service-card h3 { font-size: 1.5rem; }
  .service-card p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .navbar .container { flex-wrap: wrap; justify-content: space-between; }
  .logo { margin-bottom: 0; }
  .logo-img { height: 45px; }
  .logo-text { font-size: 1.8rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links a { text-align: center; margin: 10px 0; padding: 10px 0; }
  .language-switcher { display: none; }
  .menu-toggle { display: block; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero-section p { font-size: 1.1rem; }
  .btn { padding: 12px 25px; font-size: 1rem; }
  .contact-form .btn-primary { width: auto; padding: 12px 30px; font-size: 1rem; }

  .features-chat-mockup { padding: 20px; }
  .chat-bubble { max-width: 95%; }
  .contact-form { padding: 30px 25px; }

  /* Ajustes para servicios en responsive */
  .services-section { padding: 80px 0; }
  .services-section h2 { font-size: 2.2rem; }
  .services-grid { gap: 30px; }
  .service-card { padding: 30px 20px; }
  .service-card .icon-wrapper svg { width: 3rem; height: 3rem; margin-bottom: 15px; }
  .service-card h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .hero-section p { font-size: 1rem; }
  .benefit-card, .service-card { padding: 30px; }
  .benefit-card .icon-wrapper svg, .service-card .icon-wrapper svg { font-size: 3rem; }
  .benefit-card h3, .service-card h3 { font-size: 1.3rem; }
  .contact-form input, .contact-form textarea { padding: 12px 15px; }
  .form-wrapper { padding: 25px 20px; }
  .footer .social-links a svg { font-size: 1.3rem; margin: 0 8px; }

  /* Ajustes para servicios en responsive */
  .services-section h2 { font-size: 2rem; }
}