/* =========================================================
   MASIVIA — styles.css
   Tecnología que impulsa
   ========================================================= */

/* -------- Tokens -------- */
:root {
  --bg:          #F5F8FC;
  --bg-2:        #FFFFFF;
  --bg-3:        #EBF2FA;
  --bg-hero:     #061A36;
  --primary:     #1260BA;
  --grad-start:  #0E488B;
  --grad-end:    #378BEB;
  --text:        #082B54;
  --text-muted:  #4A6D90;
  --border:      #D0DFF0;
  --border-strong: #A8C4E0;
  --success: #10B981;
  --error: #EF4444;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --container: 1200px;
  --nav-h: 72px;

  --shadow-card: 0 8px 32px rgba(18, 96, 186, 0.10);
  --shadow-glow: 0 0 60px rgba(18, 96, 186, 0.12);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

/* -------- Background subtle tint -------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(18, 96, 186, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 100%, rgba(55, 139, 235, 0.05), transparent 60%),
    var(--bg);
}
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 96, 186, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 96, 186, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 40% at 50% 20%, #000 20%, transparent 80%);
}

/* -------- Container & Section -------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
section {
  padding: 6rem 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* -------- Badge -------- */
.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--primary);
  background: rgba(18, 96, 186, 0.08);
  border: 1px solid rgba(18, 96, 186, 0.22);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: white;
  box-shadow: 0 8px 24px rgba(14, 72, 139, 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14, 72, 139, 0.45);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(18, 96, 186, 0.05);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(18, 96, 186, 0.08);
}
.btn-block { width: 100%; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(245, 248, 252, 0.7);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(18, 96, 186, 0.06);
}
.nav-wrap {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-icon {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-image: url('../assets/images/icon.png');
  background-repeat: no-repeat;
  background-size: 115px auto;
  background-position: 50% 34%;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.footer-logo .brand-icon { width: 38px; height: 38px; background-size: 122px auto; }
.footer-logo .brand-name { font-size: 1.15rem; }
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto 1.5rem;
}
.login-logo .brand-icon { width: 44px; height: 44px; background-size: 141px auto; }
.login-logo .brand-name { font-size: 1.3rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-actions .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* Lang toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.25rem;
}
.lang-toggle button {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.active {
  color: var(--primary);
  font-weight: 600;
}
.lang-sep {
  color: var(--border-strong);
  user-select: none;
}

/* Hamburger */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO  (dark navy — solo esta sección)
   ========================================================= */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-hero);
  overflow: hidden;
}
/* glow radial dentro del hero */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(55, 139, 235, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
/* fade al blanco en la transición con la siguiente sección */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-hero));
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #8BBCF4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  background: linear-gradient(160deg, #ffffff 0%, #8BBCF4 120%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.58);
  margin: 0 auto 2.5rem;
  max-width: 640px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

/* Botón secundario dentro del hero (fondo oscuro) */
.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
}
.hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}
.hero-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(6, 26, 54, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stat .v {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-stat .l {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
#servicios { background: var(--bg-3); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(18, 96, 186, 0.35),
    rgba(55, 139, 235, 0.0) 50%,
    rgba(55, 139, 235, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(18, 96, 186, 0.28);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 96, 186, 0.08);
  border: 1px solid rgba(18, 96, 186, 0.2);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================================
   NOSOTROS
   ========================================================= */
#nosotros { background: var(--bg-2); }

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-content: start;
}
.value-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 96, 186, 0.14);
}
.value-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.value-card-icon svg { width: 22px; height: 22px; }
.value-card h4 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   CLIENTES
   ========================================================= */
#clientes { display: none; } /* TODO: re-enable when client logos are ready */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.client-logo {
  height: 84px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.client-logo:hover {
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(18, 96, 186, 0.08);
}

/* =========================================================
   FAQ
   ========================================================= */
#faq { background: var(--bg-2); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open {
  border-color: rgba(18, 96, 186, 0.35);
  box-shadow: 0 4px 16px rgba(18, 96, 186, 0.07);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =========================================================
   CONTACTO
   ========================================================= */
#contacto { background: var(--bg-3); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(18, 96, 186, 0.08);
  border: 1px solid rgba(18, 96, 186, 0.2);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item .l {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact-info-item .v {
  font-size: 1rem;
  color: var(--text);
}
.contact-info-text {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  position: relative;
  box-shadow: 0 4px 24px rgba(18, 96, 186, 0.07);
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.field label .req { color: var(--primary); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6D90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  background: rgba(18, 96, 186, 0.04);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-msg {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-msg.show { display: block; animation: fadeIn 0.3s ease; }
.form-msg.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #0a7055;
}
.form-msg.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand .footer-logo { margin-bottom: 1rem; }
.footer-brand p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-links a {
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--primary); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(18, 96, 186, 0.06);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   MODAL COTIZAR
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 54, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(100%, 1080px);
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  position: relative;
  animation: slideUp 0.35s ease;
  box-shadow: 0 24px 80px rgba(6, 26, 54, 0.2);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 5;
}
.modal-close:hover {
  background: rgba(8, 43, 84, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}
.modal-aside {
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg,
    rgba(18, 96, 186, 0.07),
    rgba(55, 139, 235, 0.03));
  border-right: 1px solid var(--border);
}
.modal-aside h3 {
  font-size: 1.5rem;
  margin: 0.75rem 0 1rem;
}
.modal-aside p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.steps-list { display: grid; gap: 0.75rem; }
.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.step-item .step-num {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(8, 43, 84, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.step-item.active {
  color: var(--text);
}
.step-item.active .step-num {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: white;
  border-color: transparent;
}
.step-item.done .step-num {
  background: rgba(18, 96, 186, 0.10);
  color: var(--primary);
  border-color: rgba(18, 96, 186, 0.3);
}
.step-item.done .step-num::before {
  content: '✓';
  font-size: 0.95rem;
}
.step-item.done .step-num span { display: none; }

.modal-body {
  padding: 2.5rem 2rem;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.modal-step.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.modal-actions .btn { flex: 1; }
.modal-actions .btn.btn-secondary { flex: 0 0 auto; min-width: 110px; }

.modal-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.modal-success.show { display: flex; animation: fadeIn 0.4s ease; }
.success-check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.10);
  border: 2px solid var(--success);
  display: grid;
  place-items: center;
  color: var(--success);
  margin-bottom: 0.5rem;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-check svg { width: 40px; height: 40px; }
.modal-success h3 { font-size: 1.6rem; margin: 0; }
.modal-success p { color: var(--text-muted); margin: 0; max-width: 360px; }

/* =========================================================
   LOGIN
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
}
.login-card {
  width: min(100%, 440px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 48px rgba(6, 26, 54, 0.12);
}
.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(18, 96, 186, 0.45),
    rgba(55, 139, 235, 0.0) 50%,
    rgba(55, 139, 235, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-card img { height: 44px; margin: 0 auto 1.5rem; }
.login-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.login-card .login-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.login-card .field {
  text-align: left;
  margin-bottom: 1rem;
}
.login-card .btn { margin-top: 0.5rem; }
.login-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.login-back:hover { color: var(--primary); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-placeholder { aspect-ratio: 16 / 10; max-width: 520px; margin: 0 auto; width: 100%; }
  .modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-aside { display: none; }
  .modal-body { max-height: 92vh; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links, .nav-actions .lang-toggle, .nav-actions .btn-outline {
    display: none;
  }
  .nav-burger { display: inline-flex; }
  .nav-actions { gap: 0.5rem; }
  .nav-actions .btn-primary { padding: 0.55rem 1rem; font-size: 0.85rem; }

  .nav-mobile {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-mobile.open { transform: translateY(0); }
  .nav-mobile a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-mobile .lang-toggle {
    margin-top: 1.5rem;
    justify-content: flex-start;
    font-size: 1rem;
  }
  .nav-mobile .btn { margin-top: 1rem; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* hide nav-mobile on desktop */
@media (min-width: 769px) {
  .nav-mobile { display: none !important; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* TODO: re-enable cotizar buttons when quote flow is ready */
[data-action="open-quote"] { display: none; }
