/* =========================================================
   LP CONSULTORA ANDINA - HOJA DE ESTILOS
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  --azul: #0b3a6b;
  --azul-oscuro: #072746;
  --acento: #ff6b00;
  --acento-oscuro: #e05f00;
  --texto: #1f2933;
  --texto-suave: #52606d;
  --fondo: #ffffff;
  --gris: #f4f6f8;
  --borde: #dde3ea;
  --radio: 8px;
  --ancho-max: 1120px;
}

/* ---------- 2. REINICIO Y BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.2; color: var(--azul); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 20px;
}

.etiqueta {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acento);
  margin-bottom: .8em;
}
.etiqueta-clara { color: #ffb27a; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

/* ---------- 3. BOTONES ---------- */
.boton {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radio);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background .2s, color .2s, transform .2s;
}
.boton:hover { transform: translateY(-2px); }
.boton-acento { background: var(--acento); color: #fff; }
.boton-acento:hover { background: var(--acento-oscuro); }
.boton-borde { border-color: #fff; color: #fff; }
.boton-borde:hover { background: #fff; color: var(--azul); }
.boton-chico { padding: 8px 18px; font-size: .95rem; }
/* ---------- 4. ENCABEZADO PREMIUM Y MENÚ ---------- */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Fondo blanco puro */
  background: #ffffff;
  /* Línea Superior de Acento Naranja */
  border-top: 3px solid var(--acento);
  /* Sombra Inferior Cálida (tinte naranja muy sutil) */
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.08);
  /* Esquinas suaves (si el header es flotante, pero aquí lo mantenemos full width) */
}

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

/* --- Logo --- */
.encabezado .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  flex-shrink: 0;
}
.encabezado .logo img { height: 72px; width: auto; flex-shrink: 0; }
.logo-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: 14px;
  border-left: 2px solid var(--acento);
}
.logo-texto strong { font-size: 1.4rem; font-weight: 800; color: var(--azul); letter-spacing: -.01em; }
.logo-texto small { margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); }

/* --- Menú de Navegación --- */
.menu { display: flex; align-items: center; gap: 32px; }

.menu a {
  display: flex;
  align-items: center;
  gap: 8px; /* Espacio entre el ícono y el texto */
  font-weight: 500;
  color: var(--texto-suave);
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 10px 0;
}

/* Íconos SVG */
.menu a svg {
  width: 18px;
  height: 18px;
  color: #9ca3af; /* Tono gris sutil */
  transition: color 0.2s ease;
}

.menu a:hover { color: var(--azul); }
.menu a:hover svg { color: var(--acento); }

/* --- Indicador de Página Activa --- */
.menu a.active {
  color: var(--acento);
  font-weight: 600;
}
.menu a.active svg { color: var(--acento); }

/* Línea horizontal sutil debajo del enlace activo */
.menu a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; /* Posicionada justo debajo del texto */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--acento);
  border-radius: 2px;
}

/* --- Botón CTA (Contacto) --- */
.menu .boton-cta {
  background: var(--acento);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 8px; /* Bordes redondeados */
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu .boton-cta:hover {
  background: var(--acento-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 0, 0.35);
  color: #ffffff !important;
}

/* Ocultar la línea del indicador en el botón */
.menu .boton-cta.active::after { display: none; }

/* --- Menú Hamburguesa (Mobile) --- */
.menu-toggle { display: none; }
.menu-boton { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-boton span { display: block; width: 26px; height: 3px; background: var(--azul); border-radius: 2px; transition: 0.3s; }

/* ---------- 5. INICIO (HERO EN 2 COLUMNAS) ---------- */
.hero {
  background: url("imagenes/hero.jpg") center/cover no-repeat, var(--azul);
  color: #fff;
  padding: 60px 0 80px; /* Reducido ligeramente el padding general */
  position: relative;
  isolation: isolate;
  overflow: hidden; 
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(7, 39, 70, .95) 0%, rgba(7, 39, 70, .85) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-texto-col h1 { color: #fff; max-width: 700px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hero-texto-col .hero-texto { color: #eef4fb; font-size: 1.1rem; text-shadow: 0 1px 5px rgba(0,0,0,.3); max-width: 600px; }
.hero-texto-col .etiqueta { color: #ffb27a; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* --- TARJETAS GLASSMORPHISM ANIMADAS (COMPACTAS) --- */
.hero-tarjetas-col {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Menos espacio entre tarjetas */
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 18px; /* Mucho más compactas */
  display: flex;
  align-items: center;
  gap: 14px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

  /* Animación de entrada desde la derecha */
  opacity: 0;
  transform: translateX(100px);
  animation: deslizarIzquierda 0.8s ease forwards;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.glass-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px; /* Ícono más chico */
  border-radius: 8px;
  color: #fff;
}
.glass-icon svg {
  width: 20px; /* Ícono más chico */
  height: 20px;
}

.glass-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.glass-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.glass-text small {
  font-size: 0.8rem;
  color: #d6e2f0;
  font-weight: 400;
}

@keyframes deslizarIzquierda {
  to { opacity: 1; transform: translateX(0); }
}

.hero-tarjetas-col a:nth-child(1) { animation-delay: 0.1s; }
.hero-tarjetas-col a:nth-child(2) { animation-delay: 0.4s; }
.hero-tarjetas-col a:nth-child(3) { animation-delay: 0.7s; }
.hero-tarjetas-col a:nth-child(4) { animation-delay: 1.0s; }
.hero-tarjetas-col a:nth-child(5) { animation-delay: 1.3s; }
.hero-tarjetas-col a:nth-child(6) { animation-delay: 1.6s; }


/* ---------- 6. SECCIONES GENERALES ---------- */
.seccion { padding: 88px 0; }
.seccion-gris { background: var(--gris); }
.seccion-azul { background: var(--azul-oscuro); color: #fff; }
.seccion-azul h2 { color: #fff; }
.seccion-titulo { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.seccion-titulo p { color: var(--texto-suave); text-align: center; }

/* ---------- 7. SOBRE MÍ ---------- */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sobre-imagen img { width: 100%; border-radius: var(--radio); box-shadow: 0 12px 32px rgba(11, 58, 107, .15); }
.valores { margin-top: 20px; display: grid; gap: 10px; }
.valores li { padding-left: 18px; border-left: 3px solid var(--acento); color: var(--texto-suave); }
.valores strong { color: var(--azul); }

/* ---------- 8. SERVICIOS ---------- */
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-top: 4px solid var(--azul);
  border-radius: var(--radio);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 58, 107, .12); border-top-color: var(--acento); }
.tarjeta:target { border-top-color: var(--acento); box-shadow: 0 14px 30px rgba(255, 107, 0, .18); }
.tarjeta-numero { font-size: .85rem; font-weight: 700; color: var(--acento); letter-spacing: .1em; }
.tarjeta p { color: var(--texto-suave); font-size: .97rem; }
.tarjeta ul { border-top: 1px solid var(--borde); padding-top: 14px; display: grid; gap: 6px; }
.tarjeta li { font-size: .92rem; padding-left: 18px; position: relative; }
.tarjeta li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--azul); border-radius: 50%; }

/* ---------- 9. CONTACTO Y FORMULARIO COMPACTO ---------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contacto-info p { color: #c5d4e6; }
.contacto-datos { margin-top: 24px; display: grid; gap: 12px; font-size: 1.05rem; }
.contacto-datos strong { color: #fff; }

.form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  color: var(--texto);
}

.form-card h3 {
  color: var(--azul);
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.4rem;
  text-align: center;
}

.form-card .form-group { margin-bottom: 16px; }

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-card textarea { resize: vertical; min-height: 100px; }

.boton-enviar {
  background: var(--acento);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s, transform 0.2s;
  margin-top: 10px;
}

.boton-enviar:hover { background: var(--acento-oscuro); transform: translateY(-2px); }

/* ---------- 10. VENTANA MODAL ---------- */
.modal-fondo {
  position: fixed;
  inset: 0;
  background: rgba(7, 39, 70, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-fondo.visible { opacity: 1; visibility: visible; }

.modal-contenido {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-fondo.visible .modal-contenido { transform: translateY(0); }
.modal-icono { font-size: 60px; display: block; margin-bottom: 15px; }
.modal-contenido h3 { color: var(--azul); font-size: 1.6rem; margin-bottom: 15px; }
.modal-contenido p { color: var(--texto-suave); font-size: 1.05rem; margin-bottom: 10px; text-align: center; }
.modal-contenido .boton-enviar { margin-top: 25px; }

/* ---------- 11. PIE DE PÁGINA ---------- */
.pie { background: #041a30; color: #9fb3c8; padding: 28px 0; font-size: .9rem; }
.pie-contenido { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.pie p { margin: 0; text-align: left; }
.pie-enlaces { display: flex; gap: 20px; }
.pie-enlaces a:hover { color: #fff; }

/* ---------- 12. RESPONSIVO ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-botones { justify-content: center; }
  .hero-texto-col h1, .hero-texto-col .hero-texto { margin-left: auto; margin-right: auto; }
  .hero-tarjetas-col { max-width: 500px; margin: 0 auto; text-align: left; }
  
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid, .contacto-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .encabezado .logo img { height: 46px; }
  .menu-boton { display: flex; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px;
    max-height: 0; overflow: hidden; border-bottom: 1px solid var(--borde);
    transition: max-height .3s ease;
  }
  .menu a { padding: 14px 0; width: 100%; }
  .menu a.boton-acento { margin: 8px 0 16px; text-align: center; }
  .menu-toggle:checked ~ .menu { max-height: 320px; }
  .pie-contenido { flex-direction: column; text-align: center; }
  .pie p { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Evitar que el botón CTA (Contacto) tome el estilo de "activo" con su línea */
.menu .boton-cta.active {
  background: var(--acento-oscuro);
  box-shadow: 0 6px 15px rgba(255, 107, 0, 0.35);
}
.menu .boton-cta.active::after {
  display: none; 
}