/* ==========================================================================
   VARIABLES DE ESTILO (Modifica aquí colores, fuentes y radios)
   ========================================================================== */
:root {
  --bg-primary: #0f172a;       /* Fondo oscuro estilo Midu.dev */
  --bg-card: #1e293b;          /* Fondo tarjetas */
  --text-main: #f8fafc;        /* Texto principal */
  --text-muted: #94a3b8;       /* Texto secundario */

  --accent-color: #f97316;     /* Naranja: tomado del trazo izquierdo del logo */
  --accent-hover: #ea580c;
  --brand-purple: #a855f7;     /* Morado: tomado del trazo derecho del logo */
  --brand-purple-dark: #7c3aed;

  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --transition: all 0.25s ease-in-out;
}

/* ==========================================================================
   ESTILOS GENERALES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

/* Evita que el navbar sticky tape el título al navegar por anclas */
section[id] {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Foco visible para navegación con teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
}

/* Botones estilo Cloudflare/Adobe */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Marca: logo + nombre en armonía con los colores del isotipo (naranja > morado) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--accent-color) 20%, var(--brand-purple) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Botón hamburguesa (solo visible en móvil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4rem 0 6rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.badge {
  background-color: rgba(249, 115, 22, 0.15);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 3rem;
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   HERO ANIMADO (aurora + cuadrícula + palabra rotativa)
   ========================================================================== */
/* El hero ocupa el alto de la pantalla menos el navbar, para que la atención no se reparta
   con la siguiente sección. --nav-h coincide con la altura real del navbar (logo + padding + borde). */
:root {
  --nav-h: 75px;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  /* Halo de marca muy suave debajo de las partículas */
  background:
    radial-gradient(ellipse 60% 50% at 20% 25%, rgba(249, 115, 22, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(168, 85, 247, 0.12), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Las partículas se atenúan detrás del texto para no restarle legibilidad */
  -webkit-mask-image: radial-gradient(ellipse 42% 38% at 50% 48%, rgba(0, 0, 0, 0.25), #000 100%);
  mask-image: radial-gradient(ellipse 42% 38% at 50% 48%, rgba(0, 0, 0, 0.25), #000 100%);
}

/* Indicador para bajar a la siguiente sección */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 1;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  transition: var(--transition);
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(var(--accent-color), var(--brand-purple));
  animation: scroll-dot 1.8s ease-in-out infinite;
}

.scroll-hint:hover {
  border-color: var(--text-main);
}

@keyframes scroll-dot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Palabra rotativa del título (el ancho fijo lo calcula script.js con la palabra más larga) */
.rotator {
  display: inline-block;
  text-align: center;
  background: linear-gradient(100deg, var(--accent-color) 10%, var(--brand-purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotator.is-out {
  opacity: 0;
  transform: translateY(-0.35em);
}

.rotator.is-in {
  opacity: 0;
  transform: translateY(0.35em);
  transition: none;
}

/* Entrada escalonada del hero al cargar */
.reveal-load {
  animation: fade-up 0.7s ease-out both;
}

.hero-content .reveal-load:nth-child(2) { animation-delay: 0.1s; }
.hero-content .reveal-load:nth-child(3) { animation-delay: 0.2s; }
.hero-content .reveal-load:nth-child(4) { animation-delay: 0.3s; }

@keyframes fade-up {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: none; }
}

/* Aparición al hacer scroll: solo se oculta si hay JS (clase .js en <html>).
   Usa la propiedad translate para no pisar el transform del hover de las tarjetas. */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease,
              transform 0.25s ease-in-out, border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

/* ==========================================================================
   PRODUCT GRID (Midu.dev / Adobe Cards)
   ========================================================================== */
.products-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
}

.section-title p {
  color: var(--text-muted);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Las acciones quedan alineadas abajo aunque las descripciones tengan distinto largo */
.card-body .card-actions {
  margin-top: auto;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.alt-bg {
  background-color: rgba(255, 255, 255, 0.02);
}

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
  height: 180px;
  background-color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Visual de producto con los colores del logo (en lugar de captura) */
.card-visual {
  font-size: 3.5rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(168, 85, 247, 0.25));
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--brand-purple);
  font-weight: 700;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.card-link {
  color: var(--accent-color);
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.card-link-muted {
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.card-link-muted:hover {
  color: var(--text-main);
}

/* ==========================================================================
   SOLUCIONES (grid de servicios con icono)
   ========================================================================== */
.solutions-section {
  padding: 5rem 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.grid-solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 2rem;
}

.solution-card {
  padding: 2rem 1.5rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: var(--transition);
}

.solution-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.solution-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(168, 85, 247, 0.15));
}

.solution-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   NOSOTROS (texto + estadísticas)
   ========================================================================== */
.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(100deg, var(--accent-color), var(--brand-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background:
    radial-gradient(circle at 15% 30%, rgba(249, 115, 22, 0.12), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.14), transparent 55%),
    linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(168, 85, 247, 0.15));
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent-color);
}

.contact-form {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background-color: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.form-group .optional {
  font-weight: 400;
  opacity: 0.8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
}

.form-success {
  display: none;
  margin-top: 1rem;
  color: var(--accent-color);
  font-size: 0.9rem;
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col .brand {
  margin-bottom: 0.75rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

/* ==========================================================================
   DETALLE DE PRODUCTO (productos/*.html)
   ========================================================================== */
.product-hero {
  padding: 4rem 0 3rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.product-icon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(168, 85, 247, 0.25));
}

.product-header h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge-purple {
  background-color: rgba(168, 85, 247, 0.15);
  color: var(--brand-purple);
}

.product-tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
}

.product-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 2rem;
}

.product-section {
  padding: 4rem 0;
}

.product-section.alt {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Ficha técnica */
.spec-table {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.spec-row dd {
  font-size: 0.95rem;
}

/* Módulos */
.grid-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.module-card {
  text-align: left;
}

/* 8 servicios: 4 columnas en escritorio, 2 en tablet, 1 en celular */
.grid-services {
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}

.module-card .solution-icon {
  margin: 0 0 1rem;
}

.module-card ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.module-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--brand-purple));
}

.module-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.module-card .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.badge-muted {
  background-color: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

/* Módulos adicionales (compactos) */
.grid-addons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}

.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background-color: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.addon-card .contact-icon {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.addon-card h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.addon-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   MODAL DE COTIZACIÓN (se inyecta desde script.js)
   ========================================================================== */
html.modal-open {
  overflow: hidden;
}

.modal {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.modal::backdrop {
  background-color: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-content {
  padding: 1.75rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.modal-header h2 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  background-color: var(--bg-primary);
}

.modal-alt {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-alt a {
  color: var(--accent-color);
  font-weight: 600;
}

.modal-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.modal-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(168, 85, 247, 0.25));
}

.modal-success h3 {
  margin-bottom: 0.4rem;
}

.modal-success p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  .hero { padding: 3.5rem 0 5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }

  .products-section,
  .solutions-section,
  .about-section,
  .contact-section,
  .product-section { padding: 3.5rem 0; }

  .cta-banner { padding: 3rem 0; }
  .cta-content h2 { font-size: 1.5rem; }

  .section-title { margin-bottom: 2rem; }
  .section-title h2 { font-size: 1.75rem; }

  .grid-products,
  .grid-solutions { gap: 1.25rem; }

  .contact-form { padding: 1.25rem; }

  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }

  .product-hero { padding: 2.5rem 0 2rem; }
  .product-tagline { font-size: 1.05rem; }

  .product-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .product-icon {
    width: 88px;
    height: 88px;
    font-size: 2.6rem;
  }

  .product-header h1 { font-size: 2rem; }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;   /* evita que los enlaces ocultos reciban foco con Tab */
    transition: max-height 0.25s ease-in-out, visibility 0s linear 0.25s;
  }

  .nav-links.open {
    max-height: 320px;
    visibility: visible;
    transition: max-height 0.25s ease-in-out;
  }

  .nav-links li {
    width: 100%;
    padding: 0 1rem;
  }

  .nav-links li a {
    display: block;
    padding: 0.9rem 0;
    width: 100%;
  }

  .nav-links li:last-child {
    padding: 1rem 1rem 1.25rem;
  }

  .nav-links .btn {
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --nav-h: 69px; }

  .brand-logo { height: 36px; }
  .brand-name { font-size: 1.3rem; }

  .hero h1 { font-size: 1.75rem; }

  /* Botones principales a ancho completo: más fáciles de tocar */
  .hero-actions .btn,
  .cta-content .btn {
    width: 100%;
    text-align: center;
  }

  .btn-large { padding: 0.8rem 1.25rem; font-size: 1rem; }

  .about-stats { gap: 0.75rem; }
  .stat-card { padding: 1rem 0.75rem; }
  .stat-number { font-size: 1.05rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .modal-content { padding: 1.25rem; }
  .modal-header h2 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .solution-card:hover {
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
