/* =========================================================
   1. VARIABLES — 🔧 acá cambiás toda la paleta de un saque
   ========================================================= */
:root {
  --color-bg: #0B0F17;         /* fondo general, casi negro azulado */
  --color-bg-soft: #121826;    /* fondo de tarjetas/secciones alternas */
  --color-ink: #F2F4F8;        /* texto principal, blanco suave */
  --color-muted: #9AA4B2;      /* texto secundario, gris azulado */
  --color-accent: #4F8EF7;     /* azul tech — botones, links, íconos */
  --color-accent-dark: #3A6FD1;
  --color-border: #232B3B;

  --font-display: 'Space Grotesk', sans-serif; /* títulos, look techie */
  --font-body: 'Inter', sans-serif;             /* texto normal */

  --radius: 10px;
  --max-width: 1140px;
}

/* =========================================================
   1B. ANIMACIÓN AL HACER SCROLL
   Esta clase arranca "invisible y corrida hacia abajo".
   Cuando JavaScript detecta que el elemento entró en pantalla,
   le agrega la clase .is-visible y ahí se anima hacia su posición final.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   2. RESET BÁSICO
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* 
    Fondo con textura tipo "tech": una grilla sutil (grid) hecha con
    gradientes lineales, más dos resplandores (glow) circulares de color
    apenas visibles. Todo esto es CSS puro, no son imágenes.
  */
  background-color: var(--color-bg);
  background-image:
    /* resplandor azul arriba a la derecha */
    radial-gradient(circle at 85% 0%, rgba(79, 142, 247, 0.15), transparent 45%),
    /* resplandor tenue abajo a la izquierda */
    radial-gradient(circle at 0% 80%, rgba(79, 142, 247, 0.08), transparent 40%),
    /* líneas verticales de la grilla, casi invisibles */
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    /* líneas horizontales de la grilla */
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    48px 48px,  /* tamaño de cada celda de la grilla — ajustá este número */
    48px 48px;
  background-attachment: fixed; /* el fondo no se mueve al scrollear */
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

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

.accent {
  color: var(--color-accent);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* =========================================================
   3. BOTONES
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
}

/* =========================================================
   4. HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.logo img {
  height: 60px;   /* 🔧 achicá o agrandá este número a tu gusto */
  width: auto;    /* mantiene la proporción, no se deforma */
}
.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 1.1rem;
  color: var(--color-ink);
}
.nav-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 780px;
  margin: 0 auto 1.25rem;
}

.hero-text {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

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

/* Barra de estadísticas debajo del hero */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   6. MARQUEE DE MARCAS
   ========================================================= */
.brands {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.brands-title {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.brands-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-muted);
  opacity: 0.7;
}

/* =========================================================
   7. SECCIONES GENERALES
   ========================================================= */
section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

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

/* =========================================================
   8. SOBRE MÍ
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.about-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.about-logo {
  width: 160px;   /* 🔧 tamaño en escritorio — ajustá a tu gusto */
  height: auto;
  margin: 0 auto 0.5rem;
}
.about-image span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--color-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 780px) {
  .about { grid-template-columns: 1fr; }

  .about-logo {
    width: 90px;
  }
}

/* =========================================================
   9. GRID DE TARJETAS (servicios, cobertura, testimonios)
   ========================================================= */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid.two   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-grid.four  { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s ease;
}
.card:hover {
  border-color: var(--color-accent);
}

.card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 1rem;
}
.coverage-image {
  width: 100%;
  height: 160px;        /* 🔧 ajustá esta altura a tu gusto */
  object-fit: cover;    /* recorta la foto para llenar el espacio sin deformarse */
  border-radius: 8px;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}
.card-button {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #2878ff;
    border-radius: 30px;
    color: #2878ff;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.card-button:hover {
    background: #2878ff;
    color: #fff;
}
.tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.link-more {
  display: inline-block;
  margin-top: 2rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* =========================================================
   10. METODOLOGÍA (pasos)
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

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

/* =========================================================
   11. FAQ (acordeón nativo con <details>)
   ========================================================= */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none; /* saca la flechita nativa del navegador */
}
.faq-item summary::-webkit-details-marker {
  display: none; /* la saca también en navegadores basados en Chrome/Safari */
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-accent);
  font-size: 1.2rem;
}
.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.9rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =========================================================
   12. TESTIMONIOS
   ========================================================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stars {
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.testimonial-card p {
  color: var(--color-ink);
  font-style: italic;
}

.muted {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* =========================================================
   13. CONTACTO
   ========================================================= */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-link {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}
.contact-link:hover {
  border-color: var(--color-accent);
}
.contact-link span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-soft);
  color: var(--color-ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* =========================================================
   14. FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--color-border);
}

.footer-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.footer-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.copyright {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* =========================================================
   15. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp-float {
  position: fixed;       /* se queda fijo en pantalla aunque scrolleés */
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(79, 142, 247, 0.4);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.cards-grid .card a.card-button {
    display: inline-block !important;
    margin-top: 1rem !important;
    padding: 0.45rem 1rem !important;
    border: 1px solid #2878ff !important;
    border-radius: 999px !important;
    color: #2878ff !important;
    background: transparent !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
}

.cards-grid .card a.card-button:hover {
    background: #2878ff !important;
    color: #fff !important;
}
/* =========================================================
   16. LOGIN / REGISTRO (páginas de autenticación)
   ========================================================= */
.auth-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.auth-box h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.auth-box .contact-form {
  text-align: left;
  margin-top: 1.5rem;
}

.auth-box .btn {
  width: 100%;
  text-align: center;
}

.auth-alt {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

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

.form-error {
  background: rgba(226, 75, 74, 0.12);
  border: 1px solid #E24B4A;
  color: #F5A3A3;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* =========================================================
   17. PANEL DE ADMINISTRACIÓN (tabla de clientes)
   ========================================================= */
.admin-search {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-soft);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.admin-table-wrap {
  overflow-x: auto; /* permite scrollear horizontal en pantallas chicas */
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* =========================================================
   18. SEGUIMIENTO DE EQUIPOS (panel del cliente)
   ========================================================= */
.equipos-lista {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.equipo-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.equipo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.equipo-card-head h3 {
  font-size: 1.15rem;
}

.equipo-estado-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
}

.equipo-steps {
  list-style: none;
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.equipo-step {
  flex: 1 1 0;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.equipo-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.equipo-step:first-child::before {
  content: none;
}

.equipo-step.is-done::before {
  background: var(--color-accent);
}

.equipo-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  border: 2px solid var(--color-border);
  z-index: 1;
  margin-bottom: 0.5rem;
}

.equipo-step.is-done .equipo-step-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.equipo-step.is-current .equipo-step-dot {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.2);
}

.equipo-step-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  line-height: 1.3;
}

.equipo-step.is-current .equipo-step-label {
  color: var(--color-ink);
  font-weight: 600;
}

.equipo-notas {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .equipo-steps {
    justify-content: flex-start;
  }
  .equipo-step {
    min-width: 76px;
  }
}

/* =========================================================
   19. MENÚ LATERAL DE CLIENTE (3 barras / hamburguesa)
   ========================================================= */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger:hover {
  border-color: var(--color-accent);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.client-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 300;
}

.client-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.client-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--color-bg-soft);
  border-left: 1px solid var(--color-border);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 301;
  overflow-y: auto;
}

.client-menu.is-open {
  transform: translateX(0);
}

.client-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.client-menu-close:hover {
  color: var(--color-ink);
}

.client-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.client-menu-links a {
  font-size: 1.05rem;
  font-weight: 600;
}

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

.client-menu-divider {
  border-top: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.client-menu-text {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem;
}

.client-menu-btn {
  text-align: center;
  margin-bottom: 0.85rem;
}

body.menu-open {
  overflow: hidden;
}
