/* =========================
   TIPOGRAFÍA (SISTEMA YATYTECH)
   - Base: 400
   - Énfasis leve / links: 500
   - Títulos sección / cards / botones: 600
   - Logo / activos: 700
   - Hero principal: 800
========================= */

/* RESET + TIPOGRAFÍA GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  font-weight : 500; /* base */
}

/* =========================
   NAVBAR BASE
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(226, 232, 240, 0.6);
}

/* =========================
   LOGO
========================= */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo img {
  width: 70px;
  height: auto;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ff7a18;
}

.brand2 {
  color: #0b2c5d;
  font-weight: 700;
}

/* =========================
   LINKS (DESKTOP BASE)
========================= */

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

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: #0b2c5d;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Hover elegante */
.nav-links a:hover {
  color: #ff7a18;
  transform: translateY(-3px);
}

/* Activo */
.nav-links li.active a {
  font-weight: 600;
}

/* Punto activo */
.nav-links li.active::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #ff7a18;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
}

/* =========================
   RIGHT SIDE (IDIOMA + CTA + HAMBURGER)
========================= */

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* =========================
   LANGUAGE SWITCH (UNO SOLO)
========================= */

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

/* Glow muy sutil en hover */
.lang-switch:hover {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Botones */
.lang-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: 0.5px;
}

/* Hover elegante */
.lang-btn:hover {
  color: #0f172a;
}

/* Activo estilo SaaS */
.lang-btn.active {
  color: #0f172a;
  font-weight: 600;
  background: white;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Separador invisible (solo mantiene estructura) */
.lang-separator {
  display: none;
}

/* =========================
   BOTÓN DESKTOP
========================= */

.nav-btn {
  background: #ff7a18;
  color: white;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 122, 24, 0.2);
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .material-symbols-outlined {
  font-size: 32px;
  color: #0b2c5d;
  transition: 0.3s ease;
}

/* =========================
   VISIBILIDAD
========================= */

.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}

.mobile-contact {
  display: none;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */

@media (max-width: 900px) {
  .navbar {
    padding: 12px 24px;
  }

  .nav-logo img {
    width: 50px;
  }

  .brand {
    font-size: 16px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.35s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    transform: none;
  }

  .nav-links a:hover {
    transform: none;
  }

  .nav-links li.active a {
    font-weight: 700;
    color: #0f172a;
  }

  .mobile-contact {
    display: block;
    margin-top: 16px;
  }

  .nav-links .nav-btn-mobile {
    background: #ff7a18;
    color: white;
    padding: 12px 26px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
  }

  .nav-links .nav-btn-mobile:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(255, 122, 24, 0.2);
  }

  .lang-switch {
    padding: 6px 10px;
  }

  .lang-btn,
  .lang-separator {
    font-size: 14px;
  }
}

/* SECCIONES */
.section {
  min-height: 100vh;
  padding: 120px 48px;
  font-size: 32px;
  font-weight: 700;
  color: #0b2c5d;
}

section {
  scroll-margin-top: 90px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  overflow: hidden;
  background: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.hero-text h1 span {
  color: #f97316;
}

.hero-text p {
  font-size: 1.05rem;
  color: #ffffff;
  max-width: 520px;
  margin-bottom: 35px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #f97316;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #ea580c;
}

.btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #0f172a;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: auto;
}

/* VIDEO */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: -1;
}

/* Hero text entrance animations */
.hero .hero-text h1 {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .hero-text p {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero .hero-buttons {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.60s both;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .nav-links a {
    font-size: 16px;
    transform: none;
  }

  .nav-links a:hover {
    transform: none;
  }
}

/* =====================================================
   CLIENTS
===================================================== */

.clients {
  position: relative;
  padding: 100px 8%;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

/* Línea decorativa superior */
.clients::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f97316 30%, #f97316 70%, transparent);
  opacity: 0.25;
  pointer-events: none;
}

/* Glow central muy sutil */
.clients-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.07), transparent 70%);
  pointer-events: none;
}

.clients-title {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 60px;
  font-weight: 500;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  flex-wrap: wrap;
}

.clients-logos img {
  max-height: 70px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  filter: grayscale(100%);
}

.clients-logos img.show {
  opacity: 1;
  transform: translateY(0);
}

.clients-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.services {
  position: relative;
  padding: 140px 8%;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 15% 30%, rgba(249,115,22,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(11,44,93,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11,44,93,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ── HEADER ── */
.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* ── BADGE ── */
.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
}

.services-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
  animation: servicesPulse 2s ease-in-out infinite;
}

@keyframes servicesPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── TÍTULO ── */
.services-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0b2c5d;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}

/* ── SUBTÍTULO ── */
.services-header p {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 560px;
  margin: 0;
}

/* GRID */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* CARD PREMIUM */
.service-card {
  position: relative;
  padding: 50px 35px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 122, 24, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.15), transparent 70%);
  top: -60px;
  right: -60px;
  transition: 0.4s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  border: 1px solid rgba(255, 122, 24, 0.4);
  box-shadow: 0 30px 60px rgba(255, 122, 24, 0.15);
}

.service-card:hover::before {
  transform: scale(1.3);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #ff7a18, #ff9a44);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 122, 24, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}

.icon-wrapper::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
}

.service-card:hover .icon-wrapper {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 18px 40px rgba(255, 122, 24, 0.45);
}

.service-card:hover .icon-wrapper::after {
  opacity: 1;
  transform: scale(1.1);
}

.icon-wrapper span {
  font-size: 34px;
  color: white;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #0b2c5d;
  font-weight: 600;
}

.service-card p {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.7;
  font-weight: 500;
}

.service-list {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.service-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #ff7a18;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,122,24,0.6);
}

.service-card:hover .service-list li {
  color: #475569;
}

@media (max-width: 992px) {
  .services-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-container { grid-template-columns: 1fr; }
  .services::before   { background-size: 24px 24px; }
}

/* =====================================================
   WHY US
===================================================== */

.why-us {
  padding: 140px 8%;
  background:
    radial-gradient(ellipse 80% 50% at 85% 20%, rgba(249,115,22,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(11,44,93,0.05) 0%, transparent 60%),
    #f8fafc;
  position: relative;
  overflow: hidden;
}

/* Línea decorativa superior */
.why-us::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.25) 40%, rgba(11,44,93,0.15) 60%, transparent);
  pointer-events: none;
}

.why-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
.why-header {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── BADGE ── */
.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
}

.why-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
  animation: whyPulse 2s ease-in-out infinite;
}

@keyframes whyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── TÍTULO ── */
.why-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0b2c5d;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
  max-width: 640px;
}

/* ── SUBTÍTULO ── */
.why-header p {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
}

/* ── GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── CARD ── */
.why-card {
  position: relative;
  padding: 44px 36px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Glow de fondo en hover */
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(249,115,22,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.why-card:hover {
  transform: translateY(-10px);
  border-color: rgba(249,115,22,0.35);
  box-shadow: 0 24px 48px rgba(249,115,22,0.10);
}

.why-card:hover::after {
  opacity: 1;
}

/* Línea naranja superior al hacer hover */
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ff9a44);
  border-radius: 22px 22px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover::before {
  transform: scaleX(1);
}

/* ── ICONO ── */
.why-card > .material-symbols-outlined {
  display: block;
  font-size: 36px;
  color: #f97316;
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  text-align: center;
  border-radius: 16px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.why-card:hover > .material-symbols-outlined {
  background: rgba(249,115,22,0.15);
  border-color: #f97316;
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(249,115,22,0.2);
}

/* ── TÍTULO CARD ── */
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b2c5d;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

.why-card:hover h3 {
  color: #0f172a;
}

/* ── TEXTO CARD ── */
.why-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-us   { padding: 100px 6%; }
}


/* =====================================================
   TECH STACK
===================================================== */

.tech-stack {
  padding: 120px 8%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249,115,22,0.04) 0%, transparent 65%),
    #ffffff;
  position: relative;
  overflow: hidden;
}

.tech-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11,44,93,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.tech-stack::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.2) 50%, transparent);
  pointer-events: none;
}

.tech-container {
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
.tech-header {
  text-align: center;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── BADGE ── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
}

.tech-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.8);
  animation: techPulse 2s ease-in-out infinite;
}

@keyframes techPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── TÍTULO ── */
.tech-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0b2c5d;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}

/* ── SUBTÍTULO ── */
.tech-header p {
  color: #64748b;
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  line-height: 1.7;
  margin: 0;
}

/* ── GRID ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── CARD ── */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 110px;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-item:hover {
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.35);
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(249,115,22,0.10);
}

.tech-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-item:hover img {
  transform: scale(1.12);
}

.tech-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.tech-item:hover span {
  color: #f97316;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .tech-stack { padding: 100px 6%; }
  .tech-item  { width: 90px; padding: 16px 18px; }
  .tech-item img { width: 32px; height: 32px; }
}

/* =====================================================
   PRODUCTS
===================================================== */

.products {
  padding: 120px 8%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(249,115,22,0.04) 0%, transparent 70%),
    #ffffff;
  color: #1e293b;
  position: relative;
  overflow: hidden;
}

.products::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.3) 50%, transparent);
  pointer-events: none;
}

.products-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* ── HEADER ── */
.products-header {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── BADGE ── */
.products-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
}

.products-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
  animation: productsPulse 2s ease-in-out infinite;
}

@keyframes productsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── TÍTULO ── */
.products-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0b2c5d;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}

/* ── GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* ── CARDS ── */
.product-card {
  position: relative;
  padding: 50px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  border: 1px solid #f97316;
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.08);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    circle at top left,
    rgba(249, 115, 22, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #0f172a;
  font-weight: 600;
}

.product-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 500;
}

.product-link {
  text-decoration: none;
  color: #f97316;
  font-weight: 500;
  transition: all 0.3s ease;
}

.product-link:hover {
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* ── ICON ── */
.product-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid #f97316;
}

.product-icon svg {
  width: 28px;
  height: 28px;
  stroke: #f97316;
}

/* ── CANVAS BG ── */
.products-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}

#networkCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.about {
  padding: 120px 8%;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(11,44,93,0.04) 0%, transparent 60%),
    #f8fafc;
  color: #1e293b;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(11,44,93,0.025) 28px,
    rgba(11,44,93,0.025) 29px
  );
  pointer-events: none;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
.about-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── BADGE ── */
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
}

.about-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
  animation: aboutPulse 2s ease-in-out infinite;
}

@keyframes aboutPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── TÍTULO ── */
.about-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0b2c5d;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
  max-width: 700px;
}

/* ── TEXTO ── */
.about-content {
  text-align: center;
  margin-bottom: 80px;
}

.about-text {
  max-width: 680px;
  margin: auto;
  color: #64748b;
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 400;
}

/* ── METRICS ── */
.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 80px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.about-metrics::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.metric {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}

.metric:last-child { border-right: none; }
.metric:hover      { background: #fafafa; }

.metric h3 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 8px;
  line-height: 1;
}

.metric p {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── TIMELINE ── */
.about-timeline {
  position: relative;
  max-width: 860px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: #e2e8f0;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 44%;
  padding: 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

.timeline-item:nth-child(odd)  { align-self: flex-start; text-align: right; transform: translateX(-16px); }
.timeline-item:nth-child(even) { align-self: flex-end;   text-align: left;  transform: translateX(16px); }
.timeline-item.show            { opacity: 1; transform: translateX(0); }
.timeline-item:hover           { border-color: #f97316; }

.timeline-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.65;
  font-weight: 400;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 32px;
  width: 10px; height: 10px;
  background: #f97316;
  border-radius: 50%;
  border: 2px solid #f8fafc;
  box-shadow: 0 0 0 2px #f97316;
}

.timeline-item:nth-child(odd)::after  { right: -6.2%; }
.timeline-item:nth-child(even)::after { left:  -6.2%; }

.timeline-item::before {
  content: '';
  position: absolute;
  top: 36px;
  width: 8%;
  height: 1px;
  background: #e2e8f0;
}

.timeline-item:nth-child(odd)::before  { right: 0; }
.timeline-item:nth-child(even)::before { left: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1),
  .metric:nth-child(2) { border-bottom: 1px solid #e2e8f0; }
}

@media (max-width: 768px) {
  .about-timeline::before { left: 16px; transform: none; }

  .timeline-item {
    width: 100%;
    align-self: unset !important;
    text-align: left !important;
    padding: 24px 20px 24px 44px !important;
    transform: translateY(12px) !important;
  }

  .timeline-item.show      { transform: translateY(0) !important; }
  .timeline-item::after    { left: 11px !important; right: auto !important; top: 28px; }
  .timeline-item::before   { display: none; }
}

@media (max-width: 480px) {
  .about-metrics          { grid-template-columns: 1fr; }
  .metric                 { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .metric:last-child      { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item { transition: none; opacity: 1; transform: none !important; }
}

.faq-section {
  padding: 120px 8%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: -140px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.faq-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(11,44,93,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* BADGE */
.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.faq-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
  animation: faqPulse 2s ease-in-out infinite;
}

@keyframes faqPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* HEADER */
.faq-top {
  max-width: 560px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.faq-top h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0b2c5d;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.faq-top p {
  color: #64748b;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* LAYOUT */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 52px;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 960px;
}

/* ASIDE CARD */
.faq-aside-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: sticky;
  top: 100px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-aside-card:hover {
  border-color: rgba(249,115,22,0.35);
  box-shadow: 0 8px 32px rgba(249,115,22,0.08);
}

.faq-aside-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  margin-bottom: 4px;
}

.faq-aside-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b2c5d;
}

.faq-aside-sub {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 400;
}

.faq-aside-btn {
  margin-top: 8px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: #f97316;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Poppins", sans-serif;
}

.faq-aside-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249,115,22,0.25);
}

/* ACORDEÓN */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.faq-item:first-child {
  border-top: 1px solid #e2e8f0;
}

.faq-item-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: #f97316;
  border-radius: 0 3px 3px 0;
  transition: width 0.3s ease;
}

.faq-item.active .faq-item-bar { width: 3px; }
.faq-item.active               { padding-left: 18px; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.faq-question span {
  font-size: 0.97rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.faq-question:hover span { color: #0b2c5d; }

.faq-icon-wrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-chevron {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-question span { color: #f97316; font-weight: 600; }
.faq-item.active .faq-icon-wrap     { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.3); color: #f97316; transform: scale(1.05); }
.faq-item.active .faq-chevron       { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 0 24px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.8;
  font-weight: 400;
}

.faq-item.active .faq-answer { max-height: 300px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .faq-section { padding: 90px 6%; }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-aside-card {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 20px;
  }

  .faq-aside-icon  { margin-bottom: 0; }
  .faq-aside-label,
  .faq-aside-sub   { flex: 1 1 120px; }
  .faq-aside-btn   { margin-top: 0; }
  .faq-top h2      { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */

.contact {
  padding: 120px 8%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(11,44,93,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(249,115,22,0.05) 0%, transparent 60%),
    #f8fafc;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11,44,93,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 20%, transparent 100%);
}

.contact-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.contact-glass {
  width: 100%;
  max-width: 580px;
  padding: 56px 52px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease;
}

.contact-glass:hover {
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.10);
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.contact-header p {
  color: #64748b;
  margin-bottom: 40px;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ── INPUT GROUP BASE ── */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 400;
  color: #0f172a;
  box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #f97316;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 16px;
  color: #94a3b8;
  font-size: 0.88rem;
  pointer-events: none;
  transition: 0.25s ease;
  background: transparent;
  font-weight: 400;
}

/* FIX LABEL FLOTANTE — usa :not(:placeholder-shown) en vez de :valid */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 10px;
  font-size: 0.72rem;
  color: #f97316;
  background: #ffffff;
  padding: 0 5px;
  border-radius: 4px;
  font-weight: 600;
}

/* ── PHONE GROUP ── */
.phone-group {
  margin-bottom: 24px;
  position: relative;
}

.phone-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
  padding-left: 4px;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.phone-group:focus-within .phone-label {
  color: #f97316;
}

.phone-group .iti {
  width: 100%;
}

.phone-group #phone-input {
  width: 100%;
  padding: 16px 14px 16px 56px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 400;
  color: #0f172a;
  box-sizing: border-box;
}

.phone-group #phone-input:focus {
  border-color: #f97316;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.phone-group .iti__selected-flag {
  background: transparent !important;
  border-right: 1px solid #e2e8f0;
  padding: 0 8px 0 12px;
  border-radius: 10px 0 0 10px;
  transition: background 0.2s ease;
}

.phone-group .iti__selected-flag:hover,
.phone-group .iti__selected-flag:focus {
  background: rgba(249, 115, 22, 0.05) !important;
}

.phone-group:focus-within .iti__selected-flag {
  border-right-color: #f97316;
}

.phone-group .iti__country-list {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.88rem;
  color: #0f172a;
  max-height: 220px;
  margin-top: 4px;
}

.phone-group .iti__country.iti__highlight {
  background: #fff7ed;
  color: #f97316;
}

.phone-group .iti__dial-code {
  color: #64748b;
}

/* ── BTN PREMIUM ── */
.btn-premium {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  overflow: hidden;
  margin-top: 8px;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: #0f172a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-premium::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #f97316;
  transition: width 0.35s ease;
  border-radius: 0 0 10px 10px;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.btn-premium:hover::before { left: 140%; }
.btn-premium:hover::after  { width: 100%; }

.btn-premium:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── CUSTOM SELECT ── */
.custom-select-group {
  position: relative;
}

.custom-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.custom-select:focus,
.custom-select.open {
  border-color: #f97316;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  gap: 10px;
}

.custom-select__text {
  font-size: 0.92rem;
  font-weight: 400;
  color: #94a3b8;
  transition: color 0.2s;
}

.custom-select__text.selected {
  color: #0f172a;
}

.custom-select__arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s ease;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
  color: #f97316;
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  list-style: none;
  padding: 6px;
  margin: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.custom-select.open .custom-select__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-select__option:hover {
  background: #fff7ed;
  color: #f97316;
}

.custom-select__option.active {
  background: #fff7ed;
  color: #f97316;
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .faq-section { padding: 90px 8%; }
  .contact     { padding: 90px 8%; }
  .faq-section::before,
  .faq-section::after { display: none; }
}

@media (max-width: 600px) {
  .contact-glass { padding: 40px 28px; }
  .faq-question  { font-size: 14.5px; padding: 18px 4px; }
  .faq-answer p  { font-size: 14px; }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.footer {
  background: #fff;
  padding: 80px 48px 40px;
  border-top: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

/* Línea tricolor superior */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f97316 30%, #0b2c5d 70%, transparent 100%);
  opacity: 0.6;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 14px;
  color: #9a9a9a;
  line-height: 1.7;
  font-weight: 500;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #9a9a9a;
}

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

.footer-col li {
  margin-bottom: 14px;
}

.footer-col a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
}

.footer-col a:hover {
  text-decoration: underline;
}

.newsletter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter input {
  border: none;
  border-bottom: 1px solid #000;
  padding: 6px 0;
  font-size: 14px;
  outline: none;
  width: 100%;
  font-weight: 500;
}

.newsletter button {
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.footer-bottom p {
  font-size: 13px;
  color: #000;
  font-weight: 500;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter button {
    margin-top: 10px;
  }
}

/* ================= WHATSAPP ================= */
.whatsapp-float {
  position: fixed;
  width: 68px;
  height: 68px;
  bottom: 30px;
  right: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
}

.whatsapp-float:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 18px 45px rgba(37, 211, 102, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  transition: transform 0.4s ease;
}

.whatsapp-float:hover svg {
  transform: rotate(-8deg);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* =====================================================
   ANIMACIONES DE ENTRADA — CLASES BASE
===================================================== */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-mid:   650ms;
  --dur-slow:  900ms;
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--dur-mid) var(--ease-out-expo),
    transform var(--dur-mid) var(--ease-out-expo);
  will-change: opacity, transform;
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity var(--dur-mid) var(--ease-out-expo),
    transform var(--dur-mid) var(--ease-out-expo);
  will-change: opacity, transform;
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity var(--dur-mid) var(--ease-out-expo),
    transform var(--dur-mid) var(--ease-out-expo);
  will-change: opacity, transform;
}

.anim-pop {
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity var(--dur-mid) var(--ease-out-back),
    transform var(--dur-mid) var(--ease-out-back);
  will-change: opacity, transform;
}

.anim-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out-expo);
  will-change: clip-path;
}

/* Activados */
.anim-fade-up.in-view,
.anim-fade-left.in-view,
.anim-fade-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

.anim-pop.in-view {
  opacity: 1;
  transform: scale(1);
}

.anim-clip.in-view {
  clip-path: inset(0 0 0% 0);
}

/* =====================================================
   YT-REVEAL (sistema previo, mantenido por compatibilidad)
===================================================== */
.yt-reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.yt-reveal.yt-inview {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.yt-reveal-soft {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.yt-reveal-soft.yt-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-left, .anim-fade-right, .anim-pop, .anim-clip,
  .yt-reveal, .yt-reveal-soft {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}

/* Mobile: reducir desplazamiento */
@media (max-width: 768px) {
  .anim-fade-up    { transform: translateY(20px); }
  .anim-fade-left  { transform: translateX(-20px); }
  .anim-fade-right { transform: translateX(20px); }
  .services::before { background-size: 24px 24px; }
  .contact::before  { background-size: 30px 30px; }
}

/* ── FIELD STATES ── */
.input-group.has-error input,
.input-group.has-error textarea,
.phone-group.has-error #phone-input,
.custom-select-group.has-error .custom-select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.input-group.has-success input,
.input-group.has-success textarea,
.phone-group.has-success #phone-input {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.07);
}

.input-group.has-error label,
.input-group.has-error .phone-label {
  color: #ef4444;
}

.input-group.has-success label,
.phone-group.has-success .phone-label {
  color: #22c55e;
}

.field-hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #ef4444;
  margin-top: 5px;
  padding-left: 4px;
  min-height: 14px;
}

/* ── BTN STATES ── */
.btn-premium.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-premium.loading::after {
  width: 30%;
  animation: btn-progress 1.2s ease-in-out infinite alternate;
}

@keyframes btn-progress {
  from { width: 10%; left: 0; }
  to   { width: 60%; left: 30%; }
}

.btn-premium.success {
  background: #16a34a;
  cursor: default;
}

.btn-premium.success::after {
  width: 100%;
  background: rgba(255,255,255,0.2);
}

.btn-premium.btn-error {
  background: #ef4444;
}