* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --text: #0f172a;
  --text-muted: #475569;
  --border: rgba(15, 23, 42, 0.12);

  --primary: #003366;
  --primary-2: #004080;
  --accent: #0077b6;
  --highlight: #ffcc00;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.10);
}

html {
  scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.55);
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] {
  scroll-margin-top: 110px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0, 119, 182, 0.12), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(255, 204, 0, 0.10), transparent 55%),
    var(--bg);
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dark-mode {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0, 119, 182, 0.16), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(255, 204, 0, 0.10), transparent 55%),
    #0b1220;
  color: #e5e7eb;
}

header {
  background-color: var(--primary);
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
  position: sticky;
  top: 0;
  z-index: 1200;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  padding: 0 14px 0 6px;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Banderas (círculos) en el header */
.country-flags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flag-circle:hover {
  transform: translateY(-1px);
  background: rgba(255, 204, 0, 0.22);
}

body.dark-mode .flag-circle {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.login {
  background-color: var(--highlight);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.login:hover {
  background-color: #ffe066;
  transform: translateY(-1px);
}

.night-toggle {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.night-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#carrusel {
 max-width: 900px; /* antes era 600px */
  margin: 40px auto;
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.slide.active {
  display: block;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.slide img {
 width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
}

.overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
}



button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  user-select: none;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(0,0,0,0.7);
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}



header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  padding: 0 14px 0 6px;
}

.header-right .login {
  background-color: var(--highlight);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.header-right .login i {
  margin-right: 8px;
}

.header-right .login:hover {
  background-color: #e6b800;
}

header h1 {
  font-size: 2em;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffcc00;
}

.hero {
  text-align: center;
  padding: clamp(56px, 6vw, 92px) 20px;
  background: linear-gradient(110deg, var(--primary-2), var(--accent));
  color: #fff;
}

.hero h2 {
  font-size: clamp(1.65em, 2.4vw, 2.35em);
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.02em;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-enterprise {
  padding: clamp(64px, 8vw, 110px) 20px 44px;
}

.hero-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-kicker,
.page-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-enterprise h2 {
  font-size: clamp(1.95em, 3.4vw, 3.05em);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-enterprise p {
  margin: 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-primary {
  background: var(--highlight);
  color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.hero-primary:hover {
  transform: translateY(-2px);
  background: #ffe066;
}

.hero-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-panel {
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  text-align: left;
}

.hero-panel-label {
  margin-bottom: 16px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-panel li {
  position: relative;
  padding-left: 18px;
}

.hero-panel li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
}

.stats-band {
  background: linear-gradient(135deg, #06152f, #0a2350 58%, var(--primary));
  color: #fff;
  padding: 34px 20px;
}

.stats-band-inner {
  margin: 28px auto;
  border-radius: calc(var(--radius) + 8px);
  max-width: 1100px;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 18px 12px;
}

.stat-card strong {
  display: block;
  font-size: clamp(2.1em, 4vw, 3.6em);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-card span {
  display: block;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  max-width: 1100px;
  margin: 34px auto 28px;
  padding: clamp(36px, 5vw, 54px);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, var(--primary), var(--primary-2) 70%, var(--accent));
  color: #fff;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.16);
}

.page-hero h2 {
  font-size: clamp(1.75em, 2.6vw, 2.55em);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p,
.hero-kicker,
.page-kicker {
  font-size: 0.94rem;
}

.page-hero p:last-child {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.92);
}

.contenido-planes .page-hero h2,
.contenido-planes .page-hero p {
  color: #fff;
}

.servicios {
  padding: 60px 20px;
  text-align: center;
}

.servicios h2 {
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #004080;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background-color: var(--surface);
  padding: 30px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.card i {
  font-size: 2em;
  color: var(--accent);
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.18em;
}

.card p {
  font-size: 0.95em;
  color: var(--text-muted);
}

.contacto {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alínea hacia arriba */
  gap: 28px;
  padding: 56px 24px;
  background-color: var(--surface-muted);
  text-align: left; /* Mejor alineación general */
  flex-wrap: wrap;
}

.contacto h2,
.contacto p {
  margin: 10px 0;
  color: var(--primary-2);
}

/* Agrupa los textos de contacto */
.contacto-info {
  max-width: 520px;
  flex: 1 1 320px;
}

.contacto-info a {
  color: var(--primary-2);
  text-decoration: none;
}

.contacto-info a:hover {
  text-decoration: underline;
}
footer {
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Botón flotante WhatsApp */
.whatsapp {
   position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
}

.whatsapp:hover {
  background-color: #1ebc59;
}
.formulario-contacto {
  flex: 1 1 380px;
  max-width: 520px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
/* Botón flotante Chatbot – ESQUINA IZQUIERDA */
.chatbot-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0077b6;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 24px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.chatbot-button:hover {
  background-color: #005f91;
  transform: scale(1.1);
}

/* ==== Chatbot Flotante ==== */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: min(320px, calc(100vw - 24px));
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.chatbot-container.hidden {
  display: none;
}

.chatbot-header {
  background: linear-gradient(135deg, #003366, #005f91);
  color: #fff;
  padding: 12px 12px 12px 14px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chatbot-header span {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}

#cerrarChatbot {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#cerrarChatbot:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

.chatbot-mensajes {
  height: 250px;
  padding: 12px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fbff, #f3f7fc);
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-mensajes .mensaje {
  display: flex;
  max-width: 90%;
}

.chatbot-mensajes .mensaje.usuario {
  align-self: flex-end;
  justify-content: flex-end;
}

.chatbot-mensajes .mensaje.bot {
  align-self: flex-start;
}

.mensaje-contenido {
  white-space: pre-line;
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mensaje.usuario .mensaje-contenido {
  background: linear-gradient(135deg, #0077b6, #005f91);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.mensaje.bot .mensaje-contenido {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom-left-radius: 6px;
}

.mensaje-pensando .mensaje-contenido {
  min-width: 70px;
}

.thinking-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.thinking-bubble span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c93b1;
  animation: chatbotThinking 1s infinite ease-in-out;
}

.thinking-bubble span:nth-child(2) {
  animation-delay: 0.16s;
}

.thinking-bubble span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes chatbotThinking {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
  background: linear-gradient(180deg, #f3f7fc, #ffffff);
}

.quick-reply {
  border: 1px solid rgba(0, 119, 182, 0.16);
  background: rgba(0, 119, 182, 0.08);
  color: #005f91;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.quick-reply:hover {
  background: rgba(0, 119, 182, 0.16);
  transform: translateY(-1px);
}

.chatbot-form {
  display: flex;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px;
  gap: 8px;
  background: #fff;
}

.chatbot-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 0.95em;
  outline: none;
}

.chatbot-form input:focus {
  border-color: rgba(0, 119, 182, 0.45);
}

.chatbot-form button {
  background: #0077b6;
  border: none;
  color: white;
  min-width: 42px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
  .chatbot-container {
    left: 14px;
    bottom: 82px;
    width: min(300px, calc(100vw - 20px));
  }

  .chatbot-mensajes {
    height: 220px;
  }

  .chatbot-header span {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .chatbot-container {
    left: 10px;
    right: 10px;
    bottom: 78px;
    width: auto;
    max-width: none;
    border-radius: 16px;
  }

  .chatbot-header {
    padding: 10px 10px 10px 12px;
  }

  .chatbot-header span {
    font-size: 0.78rem;
  }

  #cerrarChatbot {
    width: 28px;
    height: 28px;
    font-size: 0.92rem;
  }

  .chatbot-mensajes {
    height: 205px;
    padding: 10px;
  }

  .mensaje-contenido {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .chatbot-quick-replies {
    gap: 6px;
    padding: 0 10px 8px;
  }

  .quick-reply {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .chatbot-form {
    padding: 7px;
    gap: 6px;
  }

  .chatbot-form input {
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .chatbot-form button {
    min-width: 38px;
  }
}

.chatbot-form button:hover {
  background: #005f91;
  transform: translateY(-1px);
}


.formulario-contacto .campo input,
.formulario-contacto .campo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1em;
  background: #fff;
}

.formulario-contacto button {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.formulario-contacto button:hover {
  background-color: #005f91;
  transform: translateY(-1px);
}
.contenido-nosotros {
  padding: 24px 20px 60px;
  max-width: 1140px;
  margin: 0 auto;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.nosotros-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.nosotros-panel h3 {
  color: var(--primary-2);
  font-size: 1.22em;
  margin-bottom: 14px;
}

.nosotros-panel p {
  line-height: 1.7;
  font-size: 1.03em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.nosotros-panel p:last-child {
  margin-bottom: 0;
}

.accent-panel {
  background: linear-gradient(160deg, rgba(0, 51, 102, 0.95), rgba(0, 119, 182, 0.92));
  color: #fff;
}

.accent-panel h3,
.accent-panel p,
.accent-panel li {
  color: #fff;
}

.nosotros-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.nosotros-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.nosotros-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
}

/* ========================= */
/* Planes de Software       */
/* ========================= */
.contenido-planes {
  padding: 24px 20px 60px;
  max-width: 1140px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

.contenido-planes h2 {
  font-size: 1.9em;
  color: var(--primary-2);
  text-align: center;
  margin-bottom: 40px;
}

.contenido-planes h3 {
  font-size: 1.28em;
  color: #003366;
  margin-top: 30px;
  margin-bottom: 10px;
}

.contenido-planes article {
  background-color: var(--surface);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contenido-planes article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.contenido-planes p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.contenido-planes ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 10px;
}

.contenido-planes ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.contenido-planes ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0077b6;
  font-weight: bold;
}

.planes-grid-section {
  margin-top: 8px;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.plan-card {
  height: 100%;
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.plan-card-head h3 {
  margin: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 119, 182, 0.10);
  color: var(--accent);
  font-size: 0.84em;
  font-weight: 600;
  white-space: nowrap;
}

.value-section {
  margin-top: 48px;
  padding: 34px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Sección de Servicios Adicionales y Por Qué Elegirnos */
#servicios-adicionales,
#por-que-elegirnos {
  margin-top: 60px;
}

#servicios-adicionales h2,
#por-que-elegirnos h2 {
  font-size: 1.6em;
  color: #004080;
  margin-bottom: 20px;
  text-align: center;
}

#servicios-adicionales ul,
#por-que-elegirnos ul {
  padding-left: 20px;
}

#servicios-adicionales li,
#por-que-elegirnos li {
  margin-bottom: 10px;
  font-size: 1.05em;
  padding-left: 15px;
  position: relative;
}

#servicios-adicionales li::before,
#por-que-elegirnos li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #0077b6;
  font-weight: bold;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hero-shell,
  .nosotros-grid,
  .planes-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero,
  .nosotros-panel,
  .value-section,
  .plan-card {
    padding: 24px;
  }

  .plan-card-head {
    flex-direction: column;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    z-index: 999;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin-bottom: 10px;
  }

  nav a {
    color: #fff;
    padding: 10px;
    display: block;
  }
}
/* NUEVA SECCIÓN DE PRODUCTOS */
#productos {
  background: var(--surface-muted);
  padding: 60px 20px;
  text-align: center;
}

#productos h2 {
  font-size: 1.8em;
  color: var(--primary-2);
  margin-bottom: 40px;
}

.productos-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.producto-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.producto-card i {
  font-size: 2em;
  color: var(--accent);
  margin-bottom: 15px;
}

.producto-card h3 {
  margin-bottom: 15px;
  color: #003366;
  font-size: 1.18em;
}

.producto-fecha {
  margin: -6px 0 12px;
  color: var(--text-muted);
  font-size: 0.92em;
}

.producto-card ul {
  list-style-type: disc;
  padding-left: 20px;
}

.producto-card ul li {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.5;
}

/* ========================= */
/* Clientes (carrusel logos) */
/* ========================= */

.clientes {
  padding: 60px 20px;
  text-align: center;
  background: var(--surface-muted);
}

.clientes h2 {
  font-size: 1.8em;
  color: var(--primary-2);
  margin-bottom: 22px;
}

.clientes-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.clientes-viewport {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 48px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.clientes-viewport::-webkit-scrollbar {
  display: none;
}

.cliente-item {
  flex: 0 0 190px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.cliente-item img {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.clientes-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.clientes-prev { left: 6px; }
.clientes-next { right: 6px; }

.clientes-btn:hover {
  background: rgba(255, 204, 0, 0.25);
}

.clientes-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95em;
}

body.dark-mode .cliente-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .clientes-btn {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .clientes-viewport {
    padding: 10px 18px;
  }

  .clientes-btn {
    display: none;
  }

  .cliente-item {
    flex-basis: 160px;
    height: 86px;
  }
}




/* ========================== */
/*  Estilos Responsive Móvil */
/* ========================== */
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
  }

  header h1 {
    font-size: 1.3em;
    margin-bottom: 0;
    flex: 1 1 auto;
  }

  .header-right {
    gap: 8px;
    width: auto;
    justify-content: flex-end;
  }

  .country-flags {
    flex-wrap: wrap;
    gap: 6px;
  }

  .flag-circle {
    width: 26px;
    height: 26px;
  }

  .login {
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .login i {
    margin-right: 6px;
  }

  .night-toggle {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .hamburger {
    font-size: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 0;
    margin-top: 10px;
  }

  .hero {
    padding: 50px 15px;
  }

  .hero h2 {
    font-size: 1.7em;
  }

  .hero p {
    font-size: 0.95em;
  }

  .hero-enterprise {
    padding: 48px 16px 36px;
  }

  .hero-enterprise h2,
  .page-hero h2 {
    font-size: 1.65em;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .stat-card strong {
    font-size: 2.4em;
  }

  .stat-card span {
    font-size: 0.9em;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .slide img {
    height: 200px;
  }

  .overlay {
    font-size: 1em;
    padding: 8px 15px;
  }

  .page-hero,
  .nosotros-panel,
  .value-section,
  .plan-card,
  .blog-card,
  .blog-note,
  .producto-card,
  .card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contacto {
    padding: 30px 15px;
  }

  footer {
    padding: 15px;
    font-size: 0.9em;
  }

  .whatsapp {
    padding: 12px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }

  button.prev,
  button.next {
    font-size: 20px;
    padding: 8px 12px;
  }
}
@media (max-width: 768px) {
  /* Ajustes existentes (continuación) */
  .slide img {
    height: 250px; /* más bajo en móviles */
  }

  /* FORMULARIO DE CONTACTO RESPONSIVE */
  .contacto {
    flex-direction: column;
    padding: 20px;
    align-items: center;
    text-align: center;
  }
  .robot-container{
    flex-direction: column;
    align-items: center;
    text-align: center;
     margin-top: 100px; /* Menos separación */
  }


  .contacto-info {
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .formulario-contacto {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
  }

  .formulario-contacto .campo input,
  .formulario-contacto .campo textarea {
    width: 100%;
  }

  .formulario-contacto button {
    width: 100%;
  }
}
.card {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease;
}

.card.animate-left {
  transform: translateX(-100px);
}

.card.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Animación suave al pasar el mouse */
.card i,
.producto-card i {
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Movimiento al pasar el mouse */
.card:hover i,
.producto-card:hover i {
  transform: translateY(-8px) scale(1.1);
  color: #007bff; /* Puedes cambiar a otro color si deseas */
}
@keyframes pulseIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.card:hover i,
.producto-card:hover i {
  animation: pulseIcon 0.6s ease;
  color: #007bff;
}
.chatbot-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #007bff;
  color: white;
  padding: 14px;
  border-radius: 50%;
  z-index: 1000;
  text-align: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.chatbot-button:hover {
  transform: scale(1.1);
}

/* Burbuja de mensaje */
.mensaje-burbuja {
  position: absolute;
  top: -30px;
  left: 70px;
  background-color: #ffffff;
  color: #333;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 14px;
}

/* Mostrar al pasar el mouse */
.chatbot-button:hover .mensaje-burbuja {
  opacity: 1;
  transform: translateY(0);
}
.robot-container {
  position: fixed;
  top: 120px;
  right: 18px;
  left: auto;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 900;
  transform: translateY(0);
  transition: transform 220ms ease-out;
}

#robotAnimation {
  width: 100%;
  height: 100%;
}

#robotAnimation svg {
  width: 100% !important;
  height: 100% !important;
}



/* Pantallas medianas y pequeñas */
@media screen and (max-width: 768px) {
  .robot-container {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 20px auto 0 auto; /* Centrado horizontal */
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: none;
    transition: none;
  }
}

/* Celulares */
@media screen and (max-width: 480px) {
  .robot-container {
    width: 290px;
    height: 290px;
    margin-top: 3px; /* Menos separación */
    padding: 0;       /* Elimina padding extra */
  }
}

/* ========================== */
/*  Cards: móviles pequeños   */
/* ========================== */

@media (max-width: 480px) {
  .stats-band {
    padding: 26px 14px;
  }

  .stats-band-inner {
    margin: 22px auto;
  }

  .hero-kicker,
  .page-kicker {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .page-hero h2,
  .hero-enterprise h2,
  .servicios h2,
  #productos h2,
  .clientes h2,
  .contenido-planes h2 {
    font-size: 1.45em;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__icon {
    width: 44px;
    height: 44px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .card i {
    font-size: 1.7em;
  }

  .card h3 {
    font-size: 1.15em;
  }

  /* Productos */
  .productos-lista {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .producto-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .producto-card i {
    font-size: 1.7em;
  }

  .producto-card h3 {
    font-size: 1.15em;
  }
}

@media (max-width: 360px) {
  .card,
  .producto-card {
    padding: 18px 14px;
  }
}

/* ========================= */
/*  Refresh moderno (override) */
/* ========================= */

/* Unificar el botón del chatbot (hay definiciones duplicadas arriba) */
.chatbot-button {
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.chatbot-button:hover {
  background-color: #005f91;
}

/* Modo oscuro: superficies legibles */
body.dark-mode .card,
body.dark-mode .producto-card,
body.dark-mode .chatbot-container {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .nosotros-panel,
body.dark-mode .value-section,
body.dark-mode .plan-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .blog-card,
body.dark-mode .blog-note,
body.dark-mode .cliente-item,
body.dark-mode .contacto,
body.dark-mode #productos,
body.dark-mode .clientes {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .servicios h2,
body.dark-mode #productos h2,
body.dark-mode .clientes h2,
body.dark-mode .contenido-planes h2,
body.dark-mode .contenido-planes h3,
body.dark-mode .nosotros-panel h3,
body.dark-mode .blog-section-title,
body.dark-mode .blog-card__content h3,
body.dark-mode .blog-note h3,
body.dark-mode .contacto h2,
body.dark-mode .contacto p,
body.dark-mode .contacto-info a,
body.dark-mode .producto-card h3 {
  color: #f8fafc;
}

body.dark-mode .card p,
body.dark-mode .producto-card ul li,
body.dark-mode .producto-fecha,
body.dark-mode .nosotros-panel p,
body.dark-mode .contenido-planes p,
body.dark-mode .contenido-planes li,
body.dark-mode .blog-meta,
body.dark-mode .blog-card__content p,
body.dark-mode .blog-card__content li,
body.dark-mode .blog-section-intro,
body.dark-mode .clientes-note,
body.dark-mode .stat-card span {
  color: rgba(248, 250, 252, 0.82);
}

body.dark-mode .blog-tag,
body.dark-mode .plan-badge {
  background: rgba(255, 255, 255, 0.10);
  color: #dbeafe;
}

body.dark-mode .page-hero,
body.dark-mode .stats-band,
body.dark-mode .stats-band-inner {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.dark-mode .chatbot-mensajes {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .mensaje.bot .mensaje-contenido {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

body.dark-mode .chatbot-quick-replies {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .quick-reply {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

body.dark-mode .chatbot-form {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.10);
}

body.dark-mode .chatbot-form input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

body.dark-mode .contacto {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .formulario-contacto .campo input,
body.dark-mode .formulario-contacto .campo textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
}

/* ========================= */
/* Blog */
/* ========================= */

.blog-page {
  padding-bottom: 40px;
}

.blog-hero {
  margin: 0 auto;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 10px;
  display: block;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.blog-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.blog-section {
  display: grid;
  gap: 12px;
}

.blog-section-title {
  color: var(--primary-2);
  font-size: 1.25em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blog-section-title i {
  color: var(--accent);
}

.blog-section-intro {
  margin-top: -2px;
  color: var(--text-muted);
  max-width: 900px;
}

.blog-toc {
  order: -1;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
}

.blog-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 119, 182, 0.12);
  border: 1px solid rgba(0, 119, 182, 0.18);
  color: var(--accent);
  font-size: 20px;
}

.blog-card__content h3 {
  color: var(--primary-2);
  margin-bottom: 6px;
}

.blog-meta {
  color: var(--text-muted);
  font-size: 0.95em;
  margin-bottom: 10px;
}

.blog-card__content p {
  color: var(--text-muted);
  margin: 10px 0;
}

.blog-card__content ul,
.blog-card__content ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.blog-note {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.blog-note h3 {
  color: var(--primary-2);
  margin-bottom: 10px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--primary);
}

.blog-tag:hover {
  background: rgba(255, 204, 0, 0.25);
}

body.dark-mode .blog-card,
body.dark-mode .blog-note {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .blog-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .blog-container {
    padding: 18px 15px 10px;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-card {
    padding: 18px 16px;
  }

  .blog-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
  }

  .blog-section-title {
    font-size: 1.15em;
  }

  .blog-tag {
    padding: 9px 10px;
    font-size: 0.95em;
  }
}

@media (max-width: 360px) {
  .blog-container {
    padding: 16px 12px 10px;
  }

  .blog-card {
    padding: 16px 14px;
  }
}

@media (min-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .blog-toc {
    order: 2;
    position: sticky;
    top: 110px;
  }
}


















