@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #00051f;
  color: #fff;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.header {
  position: fixed;
  width: 100%;
  padding: 20px 80px;
  display: flex;
  justify-content: center;
  transition: 0.3s ease;
  z-index: 1000;
  background: transparent;
}

.header.scrolled {
  background: rgba(0, 5, 31, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 40px;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #ff5c00;
}

/* ================= HERO SLIDER APPLE STYLE ================= */

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  perspective: 1000px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;

  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.5s cubic-bezier(0.77, 0, 0.175, 1),
    transform 8s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 5, 31, 0.75);
}

/* ================= TEXTO CASCADA PREMIUM ================= */

.content {
  position: relative;
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
}

.content h1,
.content p,
.content .cta {
  opacity: 0;
  transform: translateY(40px);
}

/* Animación escalonada tipo multinacional */

.slide.active .content h1 {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.slide.active .content p {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

.slide.active .content .cta {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
}

/* Keyframe elegante */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content h1 {
  font-size: 48px;
  font-weight: 600;
}

.content p {
  margin-top: 20px;
  font-size: 18px;
  color: #cfd3ff;
}

.cta {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 35px;
  background: #ff5c00;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta:hover {
  background: #ff7a33;
  transform: translateY(-3px);
}

/* ================= FLECHAS ================= */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

.arrow:hover {
  background: #ff5c00;
}

.arrow.left {
  left: 40px;
}

.arrow.right {
  right: 40px;
}

/* ================= INDICADORES ================= */

.slider-controls {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #ff5c00;
  transform: scale(1.2);
}

/* ================= TARJETAS ROTATOR ================= */

.cards-section {
  position: relative;
  padding-bottom: 0;
  background: #ffffff;
  padding: 110px 80px;
}

/* layout general */
.solutions-wrapper {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.5fr 1fr; /* 👈 antes 1fr 1.4fr */
  gap: 90px; /* 👈 más respiración */
  align-items: center;
}

/* TEXTO */
.solutions-text h2 {
  font-size: 40px;
  color: #020a2a;
  margin-bottom: 18px;
  max-width: 480px;
}

.solutions-text p {
  color: #5b6785;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 420px;
}

.cta-dark {
  background: #020a2a;
  color: #fff;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: .3s;
}

.cta-dark:hover {
  background: #ff5c00;
}

/* ===== ROTATOR ===== */

.cards-rotator {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 1; /* ✅ base */
}

.cards-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ================= CARD BASE ================= */

.card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 260px;
  padding: 28px;

  background: #fff;
  border-radius: 18px;
  text-align: center;

  box-shadow: 0 15px 40px rgba(0,0,0,0.08);

  transform: translate(-50%, -50%) scale(.75);
  opacity: 0;
  transition: all .6s cubic-bezier(.22,1,.36,1);

  pointer-events: none; /* ✅ NO bloquea clicks */
}

/* ===== CARD ACTIVA (CENTRO) ===== */

.card.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto; /* ✅ solo esta interactúa */
}

/* ===== SIGUIENTE ===== */

.card.next {
  transform: translate(60%, -50%) scale(.85);
  opacity: .6;
  z-index: 2;
}

/* ===== ANTERIOR ===== */

.card.prev {
  transform: translate(-160%, -50%) scale(.85);
  opacity: .6;
  z-index: 2;
}

/* ================= CONTENIDO ================= */

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,92,0,0.08);
  color: #ff5c00;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 auto 14px;
  font-size: 20px;
}

.card h3 {
  color: #020a2a;
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: #5b6785;
  font-size: 14px;
  line-height: 1.5;
}

/* ================= FLECHAS ================= */

.rot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(2,10,42,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s;
  color: #020a2a;
  font-size: 20px;

  z-index: 10; /* ✅ SIEMPRE encima */
  pointer-events: auto;
}

.rot-arrow:hover {
  background: #ff5c00;
  color: #fff;
}

.rot-left { left: -20px; }
.rot-right { right: -20px; }

.card.next,
.card.prev {
  filter: blur(1px);
}

.card.active:hover {
  transform: translate(-50%, -50%) scale(1.01);
  box-shadow:
    0 25px 55px rgba(0,0,0,0.15),
    0 0 0 2px rgba(255,120,0,0.9),
    0 0 28px rgba(255,120,0,0.35);
}

/* ================= COMO AYUDAMOS ================= */

.help-section {
  background: #f7f9fc;
  padding: 120px 80px;
}

.help-wrapper {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 80px;
}

/* ===== TEXTO ===== */

.help-text h2 {
  font-size: 35px;
  color: #020a2a;
  margin-bottom: 30px;
}

/* problemas */

.problems-list {
  list-style: none;
  margin-bottom: 40px;
}

.problems-list li {
  font-size: 15px;
  color: #2c3553;
  margin-bottom: 14px;
}

/* enfoque */

.approach-title {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  color: #ff5c00;
  font-weight: 600;
  margin-bottom: 18px;
}

.step {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  color: #020a2a;
}

.step span {
  width: 34px;
  height: 34px;
  background: #ff5c00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-weight: 600;
}

/* ================= CIRCULO PROCESO ORIGINX ================= */

.process-circle {
  position: relative;
  width: 420px;
  height: 420px;
  margin: auto;
  border-radius: 50%;
}

/* aro animado */

.process-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(2,10,42,0.15);
  animation: rotateCircle 40s linear infinite;
}

/* núcleo */

.circle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at top,
    #0b1a4a,
    #020a2a);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    0 0 35px rgba(255,92,0,0.25);
}

/* nodos */

.step-node {
  position: absolute;
  width: 120px;
  text-align: center;
  color: #020a2a;
}

.step-node b {
  width: 42px;
  height: 42px;
  background: #ff5c00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(255,92,0,0.35);
}

.step-node p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* posiciones */

.step-1 {
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
}

.step-2 {
  right: -14%;
  top: 50%;
  transform: translateY(-50%);
}

.step-3 {
  bottom: -12%;
  left: 50%;
  transform: translateX(-50%);
}

.step-4 {
  left: -13%;
  top: 50%;
  transform: translateY(-50%);
}

/* animación */

@keyframes rotateCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= PORTAFOLIO (GRID) ================= */

.portfolio-section {
  background: #00051f; /* Azul oscuro corporativo */
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
}

/* Fondo decorativo sutil (opcional para dar profundidad) */
.portfolio-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,92,0,0.08) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.container-portfolio {
  max-width: 1300px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.portfolio-header p {
  color: #aeb5d6;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* ===== GRID SYSTEM ===== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

/* ===== TARJETA DE SERVICIO (BOTÓN) ===== */

.port-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  background: rgba(255, 255, 255, 0.03); /* Transparencia ultra sutil */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Borde fino elegante */
  border-radius: 16px;
  padding: 30px;
  
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

/* Efecto Hover Brutal */
.port-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff5c00; /* Naranja al hacer hover */
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 5, 31, 0.5);
}

/* Icono Izquierda */
.port-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  background: rgba(2, 10, 42, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: 0.3s;
}

.port-item:hover .port-icon {
  background: #ff5c00;
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

/* Texto Centro */
.port-info {
  flex: 1;
}

.port-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}

.port-info span {
  font-size: 13px;
  color: #8f9bb3;
  display: block;
}

.port-item:hover .port-info h3 {
  color: #ff5c00;
}

/* Flecha Derecha */
.port-arrow {
  color: #5b6785;
  font-size: 24px;
  font-weight: 300;
  transition: 0.3s;
  transform: translateX(0);
}

.port-item:hover .port-arrow {
  color: #fff;
  transform: translateX(5px);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
  .portfolio-section {
    padding: 60px 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
  }
  
  .portfolio-header h2 {
    font-size: 32px;
  }
}

/* ================= BARRA DE AUTORIDAD (SLIM & PRO) ================= */

.authority-bar {
  width: 100%;
  background: #00051f; /* Azul corporativo */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 0; /* 👈 MUCHO MÁS DELGADA (Antes 45px) */
  gap: 60px;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.stat-item {
  display: flex; /* 👈 Alineación Horizontal */
  flex-direction: row; 
  align-items: center;
  gap: 15px; /* Espacio entre icono y texto */
  text-align: left; /* Texto alineado a la izquierda */
}

/* CAJA DEL ICONO SVG */
.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(255, 92, 0, 0.1); /* Fondo naranja muy suave */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 92, 0, 0.2);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke: #ff5c00; /* Color del trazo naranja */
  stroke-width: 2;
  transition: 0.3s;
}

/* TEXTOS */
.text-box {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 16px; /* Ajustado para elegancia */
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.stat-desc {
  font-size: 12px;
  color: #8f9bb3; /* Gris azulado serio */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 2px;
}

/* SEPARADORES */
.stat-separator {
  width: 1px;
  height: 35px; /* Más corto */
  background: rgba(255,255,255,0.15);
}

/* EFECTO HOVER SUTIL */
.stat-item:hover .icon-box {
  background: #ff5c00;
  box-shadow: 0 0 15px rgba(255, 92, 0, 0.4);
}

.stat-item:hover .icon-box svg {
  stroke: #fff; /* Al hacer hover, el icono se vuelve blanco */
}

/* RESPONSIVE (Móvil) */
@media (max-width: 768px) {
  .authority-bar {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
    align-items: flex-start; /* Alinear todo a la izquierda en móvil */
  }
  
  .stat-item {
    width: 100%;
    justify-content: flex-start;
  }
  
  .stat-separator {
    display: none; /* Ocultar líneas en móvil */
  }
}

/* ================= CTA FINAL (VERSIÓN CLARA - ALTO CONTRASTE) ================= */

.final-cta {
  background: #f4f6f9; /* Fondo claro (Gris azulado muy suave) */
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05); /* Separador sutil arriba */
}

/* Decoración de fondo sutil (Patrón de puntos o degradado suave) */
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,92,0,0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(2,10,42,0.03), transparent 40%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #020a2a; /* Azul oscuro corporativo (Texto) */
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: #5b6785; /* Gris intermedio para lectura fácil */
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Botón Principal (Mantiene el Naranja) */
.btn-primary {
  background: #ff5c00;
  color: #fff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid #ff5c00;
  box-shadow: 0 10px 20px rgba(255, 92, 0, 0.25);
}

.btn-primary:hover {
  background: #ff7a33;
  border-color: #ff7a33;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 92, 0, 0.35);
}

/* Botón Secundario (Ahora oscuro para contrastar con el blanco) */
.btn-outline {
  background: transparent;
  color: #020a2a; /* Texto oscuro */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid rgba(2, 10, 42, 0.15); /* Borde gris/azul tenue */
}

.btn-outline:hover {
  border-color: #020a2a;
  background: #020a2a;
  color: #fff; /* Al pasar el mouse se vuelve oscuro con texto blanco */
}

/* Responsive */
@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* ================= FOOTER CORPORATIVO ================= */

.footer {
  background: #00051f; /* Azul Oscuro Corporativo */
  color: #fff;
  padding-top: 80px;
  font-size: 14px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
}

/* --- COLUMNA 1: MARCA --- */
.footer-logo {
  margin-bottom: 25px;
  /* Eliminé el display flex y gap porque ya no hay texto */
}

.footer-logo img {
  height: 50px; /* Un poco más grande ahora que está solo */
  width: auto;
  display: block;
}

.footer-desc {
  color: #aeb5d6;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 320px;
  font-size: 14px;
}

/* ICONOS REDES SOCIALES */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px; /* Bordes sutiles, estilo software */
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.social-links a:hover {
  background: #ff5c00;
  border-color: #ff5c00;
  transform: translateY(-3px);
}

/* --- TITULOS DE COLUMNAS --- */
.footer-col h4 {
  font-size: 17px;
  margin-bottom: 25px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #ff5c00;
}

/* --- ENLACES --- */
.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #aeb5d6;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* --- CONTACTO PROFESIONAL --- */
.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center; /* Centrado vertical perfecto */
  gap: 15px;
  margin-bottom: 20px;
  color: #aeb5d6;
}

/* Contenedor del icono para alineación perfecta */
.contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 92, 0, 0.1); /* Fondo naranja muy sutil */
  border-radius: 6px;
  flex-shrink: 0;
}

.contact-icon-box svg {
  stroke: #ff5c00; /* Color Naranja OriginX */
}

.footer-contact strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact p, .footer-contact a {
  font-size: 14px;
  color: #aeb5d6;
  text-decoration: none;
  transition: 0.3s;
  margin: 0;
  line-height: 1.4;
}

.footer-contact a:hover {
  color: #ff5c00;
}

/* --- BOTTOM BAR --- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 25px 0;
  background: rgba(0,0,0,0.2);
  text-align: center;
}

.copyright {
  color: #5b6785;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 25px 40px;
  }
  .footer-logo img {
     margin-bottom: 10px;
  }
}

/* ================= ICONOS SVG (CORRECCIONES) ================= */

/* 1. Iconos del Rotador (Soluciones Estratégicas) */
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ff5c00; /* Naranja OriginX */
  transition: 0.3s;
}

/* El contenedor del icono en la tarjeta */
.card-icon {
  font-size: 0; /* Elimina espacio de texto fantasma */
  /* Mantén tus otros estilos de .card-icon si los necesitas, 
     pero el SVG ahora controla el tamaño visual */
}

/* 2. Iconos del Portafolio (Ecosistema) */
.port-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ff5c00;
  transition: 0.3s;
}

/* Efecto Hover en el Portafolio: Cambio de color */
.port-item:hover .port-icon svg {
  stroke: #ffffff; /* Se vuelve blanco al pasar el mouse */
  transform: scale(1.1); /* Pequeño zoom */
}

/* Asegurar que el contenedor del icono permita el cambio */
.port-icon {
  font-size: 0;
}

/* ================= PÁGINAS INTERNAS (SERVICIOS) ================= */

/* HERO INTERNO */
/* ================= HERO INTERNO (SOLUCIÓN HEADER) ================= */
.page-hero {
  position: relative;
  width: 100%;
  height: 60vh; /* Altura ideal para internas */
  min-height: 400px;
  
  /* IMPORTANTE: */
  margin-top: 0; /* Quitamos el margen para que suba */
  top: 0;        /* Aseguramos que toque el techo */
  
  /* Imagen de fondo */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto Parallax elegante */
  
  /* Flexbox para centrar el texto "Nuestro ADN..." */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  /* Sombra oscura para que el texto blanco se lea bien */
  box-shadow: inset 0 0 0 1000px rgba(0, 5, 31, 0.6); 
}

/* Ajuste para que el texto no quede tapado por el menú */
.page-hero .hero-content {
  padding-top: 60px; /* Un poco de aire arriba */
}

.hero-content h1 {
  font-size: 48px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  color: #ff5c00; /* Naranja corporativo */
  font-weight: 500;
  letter-spacing: 1px;
}

/* LAYOUT PRINCIPAL (2 COLUMNAS) */
.service-detail {
  padding: 80px 40px;
  background: #f7f9fc; /* Fondo claro para lectura cómoda */
}

.container-service {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr; /* Izquierda ancha, Derecha angosta */
  gap: 60px;
}

/* --- CONTENIDO IZQUIERDO --- */
.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-content h2 {
  font-size: 32px;
  color: #00051f;
  margin-bottom: 20px;
}

.service-content h3 {
  font-size: 24px;
  color: #00051f;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 4px solid #ff5c00;
  padding-left: 15px;
}

.service-content p {
  color: #5b6785;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

/* LISTA DE CARACTERÍSTICAS */
.service-list {
  list-style: none;
  margin-top: 20px;
}

.service-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  align-items: center;
}

.check-icon {
  width: 25px;
  height: 25px;
  background: #ff5c00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* BENEFICIOS GRID */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.benefit-card {
  background: #00051f;
  color: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.benefit-card h4 {
  color: #ff5c00;
  margin-bottom: 10px;
}

.benefit-card p {
  color: #cfd3ff;
  font-size: 14px;
  margin: 0;
}

/* --- SIDEBAR DERECHO --- */
.sidebar-widget {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 20px;
  color: #00051f;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Menú de Servicios */
.service-menu {
  list-style: none;
}

.service-menu li {
  margin-bottom: 10px;
}

.service-menu a {
  display: block;
  padding: 15px 20px;
  background: #f4f6f9;
  color: #5b6785;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Flechita automática al final del link */
.service-menu a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
}

.service-menu a:hover,
.service-menu a.active {
  background: #00051f;
  color: #fff;
}

.service-menu a:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: #ff5c00;
}

/* Widget de Contacto */
.contact-widget {
  background: #00051f; /* Oscuro para resaltar */
  color: #fff;
  text-align: center;
}

.contact-widget h3 {
  color: #fff;
}

.contact-widget p {
  color: #aeb5d6;
  margin-bottom: 25px;
}

.btn-sidebar {
  display: block;
  background: #ff5c00;
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin-bottom: 15px;
}

.btn-sidebar:hover {
  background: #ff7a33;
}

.phone-display {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container-service {
    grid-template-columns: 1fr; /* Una sola columna */
  }
  
  .service-sidebar {
    order: -1; /* Poner el menú arriba en móviles (opcional) */
    margin-bottom: 40px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= ESTILOS PÁGINAS INTERNAS (Nosotros, Servicios) ================= */

.page-hero {
  position: relative;
  height: 60vh; /* Menos alto que el home */
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto parallax */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,5,31,0.6), #00051f); /* Degrade al color del body */
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeUp 0.8s ease forwards;
}

.hero-content p {
  font-size: 20px;
  color: #ff5c00;
  font-weight: 500;
  letter-spacing: 1px;
  animation: fadeUp 1s ease forwards 0.2s;
  opacity: 0; /* Para animación */
}

/* --- Introducción / Layout --- */
.about-intro {
  padding: 100px 80px;
  background: #00051f;
}

.container-narrow {
  max-width: 1200px;
  margin: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.subtitle {
  color: #ff5c00;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

.intro-text h2 {
  font-size: 36px;
  margin-bottom: 30px;
  line-height: 1.3;
}

.intro-text p {
  color: #aeb5d6;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.intro-text strong {
  color: #fff;
}

.quote-box {
  margin-top: 30px;
  padding: 25px;
  border-left: 4px solid #ff5c00;
  background: rgba(255, 255, 255, 0.05);
  font-style: italic;
  color: #fff;
  font-size: 18px;
}

/* --- Visuales (Tarjetas flotantes) --- */
.intro-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tech-card-visual {
  background: #0b1233; /* Un poco más claro que el fondo */
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  width: 80%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.tech-card-visual.offset {
  align-self: flex-end; /* Mueve la segunda tarjeta a la derecha */
  background: #ff5c00; /* Tarjeta destacada */
  color: #fff;
  margin-top: -40px;
}

.tech-card-visual.offset .icon-big svg {
    stroke: #fff; /* Asegurar icono blanco en fondo naranja */
}

.tech-card-visual h3 {
  font-size: 20px;
  margin: 15px 0 5px;
}

.tech-card-visual p {
    font-size: 14px;
    opacity: 0.8;
}

/* --- Sección Misión / Visión (Optimizado) --- */
.mv-section {
  padding: 100px 80px;
  background: #ffffff; /* Fondo blanco */
  position: relative;
}

.mv-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; /* Un poco más de espacio entre tarjetas */
  max-width: 1200px;
  margin: auto;
}

.mv-box {
  background: #f8faff; /* Gris azulado muy tenue (Diferenciación sutil) */
  padding: 50px;
  border-radius: 24px;
  /* CAMBIO IMPORTANTE: Borde gris claro visible, no blanco */
  border: 1px solid #eef2f6; 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Sombra suave inicial para que no se vea plano */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
}

.mv-box:hover {
  background: #ffffff; /* Se vuelve blanco puro al pasar el mouse */
  border-color: #ff5c00;
  transform: translateY(-8px);
  /* Sombra más pronunciada al levantar */
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.mv-box.highlight {
  background: #ffffff;
  border: 1px solid #ff5c00; /* Borde naranja fijo para destacar */
  box-shadow: 0 15px 35px rgba(255, 92, 0, 0.1); /* Resplandor naranja suave */
}

.mv-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

/* Aseguramos estilo al título h3 dentro del header */
.mv-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #020a2a;
  margin: 0;
}

.mv-icon-small {
  width: 50px; /* Un poco más grandes los iconos */
  height: 50px;
  background: #ff5c00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  /* Sombra al icono para que resalte */
  box-shadow: 0 5px 15px rgba(255, 92, 0, 0.3);
  flex-shrink: 0;
}

.mv-icon-small svg {
  width: 24px;
  height: 24px;
}

.mv-box p {
  color: #5b6785; /* Gris azulado profesional (mejor que negro puro) */
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

/* --- Sección de Valores Estilo Corporativo --- */
.values-section {
  padding: 100px 80px;
  background: #00051f;
}

.values-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex; /* Esto pone el título al lado de las cards */
  gap: 60px;
  align-items: flex-start;
}

.section-title-side {
  flex: 0 0 300px; /* Ancho para el título lateral */
}

.section-title-side h2 {
  font-size: 38px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.section-title-side p {
  color: #8f9bb3;
  font-size: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas como en la imagen */
  gap: 20px;
  flex: 1;
}

.val-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 25px;
  border-top: 3px solid #ff5c00; /* El detalle clave de la imagen */
  transition: all 0.3s ease;
}

.val-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.val-card h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.val-card p {
  font-size: 14px;
  color: #aeb5d6;
  line-height: 1.6;
}

/* --- Adaptabilidad para Tablets y Móviles --- */
@media (max-width: 1200px) {
  .values-grid-container {
    flex-direction: column; /* Título arriba en pantallas pequeñas */
    padding: 0 20px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 650px) {
  .values-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}

/* --- Responsividad Interna --- */
@media (max-width: 900px) {
  .intro-grid, .mv-wrapper {
    grid-template-columns: 1fr;
  }
  
  .tech-card-visual, .tech-card-visual.offset {
    width: 100%;
    margin-top: 0;
  }
  
  .intro-visual {
    margin-top: 40px;
  }
  
  .page-hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .about-intro, .mv-section, .values-section {
    padding: 60px 20px;
  }
}

/* ================= PÁGINA CONTACTO DARK (CORREGIDO) ================= */

/* Sección Principal: Fondo Oscuro para conectar con Header/Footer */
.contact-section-dark {
    background-color: #00051f; /* Mismo azul oscuro que tu footer/header */
    min-height: 100vh;
    padding-top: 180px; /* IMPORTANTE: Esto baja el contenido para que no quede detrás del logo */
    padding-bottom: 100px;
    position: relative;
    /* Imagen de fondo sutil opcional */
    background-image: radial-gradient(circle at 90% 10%, rgba(255, 92, 0, 0.08), transparent 40%);
}

/* Contenedor Grid (Igual ancho que tu index: 1300px o container standard) */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Texto | Formulario */
    gap: 60px;
    align-items: start;
}

/* --- ESTILOS DE TEXTO --- */
.contact-info-wrapper .subtitle {
    color: #ff5c00; /* Naranja corporativo */
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.contact-info-wrapper h1 {
    color: #ffffff;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info-wrapper .intro-text {
    color: #cfd3ff; /* Azul muy claro para leer sobre oscuro */
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- MÉTODOS DE CONTACTO --- */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-glass {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05); /* Efecto cristal oscuro */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5c00;
}

.method-text small {
    display: block;
    color: #8f9bb3;
    font-size: 12px;
    text-transform: uppercase;
}

.method-text strong {
    color: #fff;
    font-size: 16px;
}

/* --- FORMULARIO "GLASS" (CRISTAL) --- */
.glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px); /* Desenfoque bonito */
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Inputs oscuros */
.glass-form input,
.glass-form select,
.glass-form textarea {
    width: 100%;
    background: rgba(0, 5, 31, 0.5); /* Fondo oscuro semitransparente */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.glass-form input:focus, 
.glass-form select:focus, 
.glass-form textarea:focus {
    border-color: #ff5c00;
    background: rgba(0, 5, 31, 0.8);
}

/* Botón */
.submit-btn {
    width: 100%;
    background: #ff5c00;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.submit-btn:hover {
    background: #e04f00;
    transform: translateY(-2px);
}

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr; /* Columna única */
        gap: 40px;
    }
    
    .contact-section-dark {
        padding-top: 140px; /* Menos espacio en móvil */
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ESTILOS PARA HUB DE SERVICIOS Y PÁGINAS INTERNAS
   ========================================= */

/* --- 1. HUB HERO (La Introducción) --- */
.hub-hero {
  padding: 160px 20px 100px;
  background: radial-gradient(circle at 50% 0%, #0b1a4a 0%, #00051f 80%);
  text-align: center;
}

.hub-content {
  max-width: 800px;
  margin: 0 auto;
}

.hub-tag {
  display: inline-block;
  background: rgba(255, 92, 0, 0.15);
  color: #ff5c00;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 92, 0, 0.3);
}

.hub-hero h1 {
  font-size: 46px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hub-hero p {
  font-size: 18px;
  color: #cfd3ff;
  line-height: 1.6;
}

/* --- 2. SECCIÓN METODOLOGÍA --- */
.methodology-section {
  padding: 80px 20px;
  background: #020a2a;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.method-text h2 {
  font-size: 34px;
  color: #fff;
  margin-bottom: 20px;
}

.method-text p {
  color: #8f9bb3;
  margin-bottom: 20px;
}

.check-list-pro {
  list-style: none;
  margin-top: 30px;
}

.check-list-pro li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #fff;
  font-weight: 500;
}

.check-list-pro li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff5c00;
}

/* Tarjeta visual abstracta */
.visual-card {
  background: linear-gradient(135deg, #ff5c00, #ff9e00);
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  transform: rotate(2deg);
  box-shadow: 0 20px 50px rgba(255, 92, 0, 0.2);
}

.visual-card h3 { font-size: 40px; margin-bottom: 10px; }

/* --- 3. GRID DEL HUB (Enlaces a páginas) --- */
.services-nav-section {
  padding: 100px 20px;
  background: #00051f;
}

.section-title-center {
  text-align: center;
  color: #fff;
  font-size: 32px;
  margin-bottom: 60px;
}

.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.hub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 35px;
  border-radius: 16px;
  text-decoration: none;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hub-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #ff5c00;
  transform: translateY(-10px);
}

.hub-icon {
  color: #ff5c00;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 92, 0, 0.1);
  border-radius: 10px;
}

.hub-card h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.hub-card p { color: #8f9bb3; font-size: 15px; margin-bottom: 25px; flex-grow: 1; }
.link-arrow { color: #ff5c00; font-weight: 600; font-size: 14px; }

/* =========================================
   ESTILOS PARA PÁGINAS INDIVIDUALES (INTERNAS)
   ========================================= */

.internal-hero {
  padding: 140px 20px 60px; /* Menos alto que el home */
  background: #020a2a;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.internal-content { max-width: 1300px; margin: 0 auto; }

.breadcrumb { font-size: 14px; color: #8f9bb3; margin-bottom: 10px; }
.breadcrumb a { color: #ff5c00; text-decoration: none; }

.internal-hero h1 { font-size: 42px; color: #fff; }

.service-layout { padding: 80px 20px; background: #00051f; }
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px; /* Contenido ancho | Sidebar estrecho */
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Columna Izquierda */
.service-info h2 { font-size: 32px; color: #fff; margin-bottom: 20px; }
.lead-text { font-size: 18px; color: #cfd3ff; margin-bottom: 30px; font-weight: 300; }
.service-info p { color: #8f9bb3; line-height: 1.7; margin-bottom: 20px; }

.feature-box {
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
  border-left: 4px solid #ff5c00;
}

.feature-box h3 { color: #fff; margin-bottom: 20px; }

.detailed-list { list-style: none; }
.detailed-list li {
  margin-bottom: 15px;
  color: #aeb5d6;
  padding-left: 20px;
  position: relative;
}
.detailed-list li::before {
  content: "•";
  color: #ff5c00;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  line-height: 18px;
}

.mt-30 { margin-top: 30px; }
.btn-primary {
  display: inline-block;
  background: #ff5c00;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-primary:hover { background: #ff7a33; }

/* Columna Derecha (Sidebar) */
.sidebar-widget {
  background: #020a2a;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-widget h4 { color: #fff; margin-bottom: 20px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 10px; }
.sidebar-menu a {
  display: block;
  color: #8f9bb3;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}
.sidebar-menu a:hover, .sidebar-menu a.active-link {
  background: rgba(255, 92, 0, 0.1);
  color: #ff5c00;
}

.phone-link {
  display: block;
  font-size: 20px;
  color: #ff5c00;
  font-weight: 700;
  margin-top: 10px;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
  .method-grid { grid-template-columns: 1fr; }
  .layout-grid { grid-template-columns: 1fr; } /* Sidebar pasa abajo en móvil */
  .hub-hero h1 { font-size: 36px; }
}

/* ================= ARREGLO DEL NAVBAR ================= */

/* 1. Contenedor del menú */
.nav {
  display: flex;
  align-items: center;
}

/* 2. Enlaces normales */
.nav > a {
  color: #fff;
  text-decoration: none;
  margin-left: 40px;
  font-weight: 500;
  transition: 0.3s;
}

.nav > a:hover {
  color: #ff5c00;
}

/* 3. Contenedor del desplegable (Servicios) */
.dropdown {
  position: relative; /* Clave para que el menú flote aquí */
  display: inline-block;
  margin-left: 40px;
}

/* 4. El botón "Servicios" */
.dropbtn {
  background-color: transparent;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif; /* Asegurar misma fuente */
  transition: 0.3s;
  padding: 0;
}

/* Hover sobre el botón Servicios */
.dropdown:hover .dropbtn {
  color: #ff5c00;
}

/* 5. El menú oculto (La lista) */
.dropdown-content {
  display: none; /* Oculto por defecto */
  position: absolute;
  background-color: #00051f; /* Fondo oscuro */
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 2000;
  border-top: 3px solid #ff5c00; /* Detalle naranja */
  border-radius: 0 0 8px 8px;
  top: 100%; /* Justo debajo */
  left: -20px; /* Un poco a la izquierda para centrar */
}

/* 6. Enlaces dentro de la lista */
.dropdown-content a {
  color: #cfd3ff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  margin-left: 0; /* Resetear margen heredado */
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hover en los enlaces internos */
.dropdown-content a:hover {
  background-color: rgba(255, 92, 0, 0.1);
  color: #ff5c00;
}

/* 7. ¡MAGIA! Mostrar al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== CHECKBOX PRIVACIDAD ===== */

.checkbox-group {
  display: flex;
  align-items: center;   /* ← CLAVE: centra verticalmente */
  gap: 12px;
  margin: 20px 0 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 0.9rem;
}

/* checkbox */
.checkbox-group input[type="checkbox"] {
  accent-color: #ff5c00;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0; /* evita que se deforme */
}

/* texto */
.checkbox-group label {
  color: #cfd6ff;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-group a {
  color: #ff5c00;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* ===== Aviso tratamiento de datos ===== */

.privacy-note {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: #cfd3ff;
  max-width: 100%;
}

.privacy-note a {
  color: #ff5c00;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  border-bottom: 1px solid transparent;
}

.privacy-note a:hover {
  color: #ff7a2f;
  border-bottom: 1px solid #ff7a2f;
}

/* =========================================
   ESTILOS GLOBALES (WhatsApp + Cookies)
   ========================================= */

/* --- 1. BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #ff5c00; /* Naranja OriginX */
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999; /* Por encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #e04f00;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 92, 0, 0.4);
}

.whatsapp-icon-svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* --- 2. BANNER DE COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: -200px; /* Oculto inicialmente */
  left: 0;
  width: 100%;
  background-color: #020a2a; /* Azul oscuro */
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  z-index: 9998; /* Justo debajo del WhatsApp */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: bottom 0.6s ease-in-out;
  flex-wrap: wrap;
  font-family: sans-serif;
  font-size: 0.95rem;
}

.cookie-banner p {
  margin: 0;
  max-width: 800px;
  line-height: 1.4;
}

.cookie-banner a {
  color: #ff5c00;
  text-decoration: underline;
}

.cookie-btn-accept {
  background-color: #ff5c00;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-btn-accept:hover {
  background-color: #e04f00;
}

/* Ajustes para celular */
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
  .whatsapp-icon-svg { width: 30px; height: 30px; }
}

/* =========================================
   RESPONSIVE DESIGN (Versión Móvil)
   ========================================= */

@media screen and (max-width: 768px) {

    /* 1. EL MENÚ DE NAVEGACIÓN */
    /* Hacemos que el menú se vea vertical en vez de horizontal */
    .header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }

    /* Ocultamos el dropdown complejo en móvil para simplificar 
       (O puedes dejarlo si prefieres, pero suele estorbar) */
    .dropdown-content {
        position: relative;
        box-shadow: none;
        background-color: transparent;
        text-align: center;
    }

    /* 2. EL HERO (SLIDER PRINCIPAL) */
    .hero-slider .content h1 {
        font-size: 28px; /* Texto más pequeño para que quepa */
        line-height: 1.2;
    }
    
    .hero-slider .content p {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .hero-slider .cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 3. SECCIÓN DE TARJETAS (SOLUCIONES) */
    /* Apilamos el texto y las tarjetas en columna */
    .solutions-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .solutions-text {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    /* Ajustamos el rotador para que en móvil sea un scroll simple horizontal */
    .cards-rotator {
        width: 100%;
        overflow-x: scroll; /* Permite deslizar con el dedo */
        display: flex;
        gap: 15px;
        padding-bottom: 20px;
    }

    .card {
        min-width: 260px; /* Tamaño fijo para que no se aplasten */
    }

    /* Ocultamos las flechas del rotador en móvil porque se usa el dedo */
    .rot-arrow {
        display: none;
    }

    /* 4. BARRA DE AUTORIDAD (ÍCONOS) */
    .authority-bar {
        flex-direction: column;
        gap: 20px;
        padding: 30px 10px;
    }

    .stat-separator {
        display: none; /* Quitamos las líneas divisorias */
    }

    /* 5. CÓMO AYUDAMOS (Proceso 1-2-3-4) */
    .help-wrapper {
        flex-direction: column-reverse; /* Ponemos la imagen arriba o abajo según gusto */
    }

    .help-text, .help-visual {
        width: 100%;
        padding: 0;
    }

    /* 6. FOOTER */
    .footer-container {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }
    
    .contact-icon-box {
        margin: 0 auto 10px auto; /* Centrar íconos */
    }
}