/* ============================================================
   stc.css — Estilos específicos de la página STC
   ============================================================ */

/* ── SERVICIOS ──────────────────────────────── */
#servicios { background: var(--bg-alt); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem; max-width: 1100px; margin: 0 auto;
}
.service-card { padding: 2.2rem 2rem; }
.service-icon {
  display: flex; justify-content: center; align-items: center;
  width: 80px; height: 80px; margin: 0 auto 20px;
  border-radius: 50%; font-size: 40px;
}
.service-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: .8rem; text-align: center; }
.service-card p { color: var(--silver); font-size: .95rem; line-height: 1.7; }
.service-list { list-style: none; margin-top: 1rem; }
.service-list li { color: var(--silver); font-size: .9rem; padding: 3px 0; }
.service-list li::before { content: '▸ '; color: var(--blue); }

/* ── SOBRE NOSOTROS ─────────────────────────── */
#sobre { background: var(--bg-main); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto;
}
.about-text h2 { text-align: left; color: var(--navy); }
.about-text .section-line { margin: 0 0 1.5rem; }
.about-text p { color: var(--silver); line-height: 1.8; margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat-box {
  background: var(--bg-alt); border: 1px solid rgba(21,101,192,0.18);
  border-radius: 10px; padding: 1.2rem; text-align: center;
}
.stat-number { font-family: 'Rajdhani', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--blue); }
.stat-label { font-size: .85rem; color: var(--silver); margin-top: 2px; }
.about-image { display: flex; justify-content: center; }
.about-card {
  background: linear-gradient(135deg, #eaf3ff, #f5f9ff);
  border: 1px solid rgba(21,101,192,0.2); border-radius: 16px;
  padding: 2.5rem 2rem; text-align: center;
  width: 100%; max-width: 380px; box-shadow: 0 4px 24px rgba(13,31,78,0.08);
}
.about-card img { width: 120px; border-radius: 50%; margin-bottom: 1.2rem; filter: drop-shadow(0 0 20px rgba(21,101,192,0.25)); }
.about-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.about-card .title { color: var(--blue); font-size: .9rem; margin-bottom: 1rem; }
.cert-badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.badge {
  background: rgba(41,182,246,0.1); border: 1px solid rgba(41,182,246,0.3);
  color: var(--cyan); font-size: .78rem; padding: 4px 12px; border-radius: 20px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
}

/* ── REFERENCIAS / CARTAS ───────────────────── */
#referencias { background: var(--bg-alt); }
.letters-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem; max-width: 1000px; margin: 0 auto;
}
.letter-card {
  cursor: pointer; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(13,31,78,0.1); border: 1px solid rgba(21,101,192,0.15);
  background: #fff; transition: transform .3s, box-shadow .3s;
}
.letter-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(13,31,78,0.18); }
.letter-preview { position: relative; overflow: hidden; aspect-ratio: 4/5.6; }
.letter-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.letter-card:hover .letter-preview img { transform: scale(1.04); }
.letter-hover {
  position: absolute; inset: 0; background: rgba(13,31,78,0.5);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s;
}
.letter-card:hover .letter-hover { opacity: 1; }
.letter-hover span {
  color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem;
  background: rgba(21,101,192,0.8); padding: 8px 18px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}
.letter-footer { display: flex; align-items: center; gap: 10px; padding: 1rem 1.2rem; border-top: 1px solid rgba(21,101,192,0.1); }
.letter-icon { font-size: 1.4rem; }
.letter-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .95rem; color: var(--navy); }
.letter-client { font-size: .8rem; color: var(--silver); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(10,23,56,0.92); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; display: flex; align-items: center; gap: 1rem; max-width: 90vw; }
.lb-img { max-height: 85vh; max-width: 70vw; border-radius: 10px; box-shadow: 0 8px 48px rgba(0,0,0,0.6); display: block; object-fit: contain; }
.lb-close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: background .25s; z-index: 10; }
.lb-close:hover { background: rgba(255,255,255,0.3); }
.lb-arrow { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.35); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; transition: all .25s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lb-arrow:hover { background: rgba(255,255,255,0.28); transform: scale(1.1); }
.lb-counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 600; }

/* ── CARRUSEL ───────────────────────────────── */
.carousel-wrapper { position: relative; width: 100%; height: 520px; margin-top: 70px; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.77,0,.18,1); }
.carousel-slide { min-width: 100%; flex-shrink: 0; height: 100%; position: relative; display: flex; align-items: center; padding: 0 8%; overflow: hidden; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.slide-icon-bg { position: absolute; right: 8%; font-size: clamp(8rem, 18vw, 15rem); opacity: 0.12; pointer-events: none; user-select: none; line-height: 1; filter: blur(1px); }
.slide-content { position: relative; z-index: 2; max-width: 620px; animation: slideIn .6s ease both; }
@keyframes slideIn { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }
.slide-title { font-family: 'Rajdhani', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; color: rgba(255,255,255,0.9); line-height: 1.15; margin-bottom: 1rem; }
.slide-title strong { color: #fff; font-weight: 700; display: block; }
.slide-desc { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.7; margin-bottom: 1.2rem; max-width: 480px; }
.slide-features { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.6rem; }
.slide-features li { color: rgba(255,255,255,0.85); font-size: .92rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.slide-btn { display: inline-block; text-decoration: none; background: #fff; color: #1565C0; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .07em; padding: 12px 30px; border-radius: 6px; transition: all .3s; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.slide-btn:hover { background: #e3f2fd; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.4); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: all .3s; z-index: 10; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.carousel-arrow:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.1); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all .3s; border: 2px solid rgba(255,255,255,0.6); }
.dot.active { background: #fff; transform: scale(1.3); }

/* ── CONTACTO STC ───────────────────────────── */
#contacto { background: var(--bg-main); }

/* Barra horizontal compacta estilo referencia */
.contacto-compact { padding: 30px 5% !important; }
.contacto-compact .section-header { margin-bottom: 1.2rem; }

.contact-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-top: 1px solid rgba(21,101,192,0.12);
  border-bottom: 1px solid rgba(21,101,192,0.12);
}
.contact-horizontal .contact-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  margin: 0;
  border-right: 1px solid rgba(21,101,192,0.1);
}
.contact-horizontal .contact-item:last-child { border-right: none; }
.contact-horizontal .contact-item:hover { background: var(--bg-alt); }

.contact-divider { display: none; }

.contact-horizontal .contact-icon {
  width: 34px; height: 34px;
  font-size: 1rem; flex-shrink: 0;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
}
.contact-horizontal .contact-item-text {
  display: flex; flex-direction: column; gap: 1px;
}
.contact-horizontal .contact-item-text span {
  font-size: .72rem; color: var(--silver);
}
.contact-horizontal .contact-item-text strong {
  font-size: .85rem; color: var(--navy);
  display: block; line-height: 1.3;
}

@media(max-width: 900px) {
  .contact-horizontal { flex-direction: column; border: 1px solid rgba(21,101,192,0.12); border-radius: 10px; overflow: hidden; }
  .contact-horizontal .contact-item { width: 100%; border-right: none; border-bottom: 1px solid rgba(21,101,192,0.08); }
  .contact-horizontal .contact-item:last-child { border-bottom: none; }
}

@media(max-width: 768px) {
  .carousel-wrapper { height: 420px; }
  .slide-icon-bg { display: none; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
}
@media(max-width: 600px) {
  .lb-img { max-width: 90vw; max-height: 75vh; }
  .lb-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ============================================================
   PLANES DE DESARROLLO WEB
   ============================================================ */

#planes { background: var(--bg-alt); }
 
.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}
 
.plan-card {
  background: var(--white);
  border: 1px solid rgba(21,101,192,0.15);
  border-radius: 12px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,31,78,0.07);
  transition: all .35s;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity .35s;
}
.plan-card:hover { transform: translateY(-6px); border-color: rgba(21,101,192,0.35); box-shadow: var(--shadow); }
.plan-card:hover::before { opacity: 1; }
 
.plan-card.featured {
  background: linear-gradient(160deg, #0d1f4e 0%, #1565C0 100%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(13,31,78,0.25);
}
.plan-card.featured::before { opacity: 1; background: linear-gradient(90deg, #29b6f6, #fff); }
.plan-card.featured:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(13,31,78,0.35); }
 
.plan-popular {
  display: inline-block;
  background: rgba(41,182,246,0.15);
  border: 1px solid rgba(41,182,246,0.4);
  color: var(--cyan2);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.plan-card.featured .plan-popular { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
 
.plan-icon-wrap { font-size: 2.2rem; margin-bottom: 1rem; }
 
.plan-name { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.plan-card.featured .plan-name { color: #fff; }
 
.plan-desc { color: var(--silver); font-size: .9rem; line-height: 1.6; margin-bottom: 1.2rem; }
.plan-card.featured .plan-desc { color: rgba(255,255,255,0.75); }
 
.plan-price-block { margin-bottom: 1.2rem; }
.plan-price-block .price-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.plan-card.featured .price-amount { color: #fff; }
 
.plan-divider { border: none; border-top: 1px solid rgba(21,101,192,0.15); margin: 0 0 1rem; }
.plan-card.featured .plan-divider { border-color: rgba(255,255,255,0.15); }
 
.plan-list { list-style: none; flex: 1; margin-bottom: 1.8rem; }
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  padding: 5px 0;
  line-height: 1.4;
  color: var(--silver);
  border-bottom: 1px solid rgba(21,101,192,0.06);
}
.plan-list li:last-child { border-bottom: none; }
.plan-card.featured .plan-list li { color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.08); }
 
/* Iconos de estado */
.pi-yes { color: #22c55e; font-size: .85rem; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.pi-no  { color: #ef4444; font-size: .85rem; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.pi-info { color: var(--cyan); font-size: .85rem; flex-shrink: 0; margin-top: 1px; }
.plan-card.featured .pi-yes  { color: #4ade80; }
.plan-card.featured .pi-no   { color: #f87171; }
.plan-card.featured .pi-info { color: #7dd3fc; }
 
.plan-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .07em;
  border: 2px solid rgba(21,101,192,0.35);
  color: var(--blue);
  background: transparent;
  transition: all .3s;
}
.plan-cta:hover { background: rgba(21,101,192,0.07); border-color: var(--blue); transform: translateY(-2px); }
.plan-card.featured .plan-cta { background: #fff; color: var(--blue); border-color: transparent; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.plan-card.featured .plan-cta:hover { background: #e3f2fd; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
 
.planes-footer-note { text-align: center; margin-top: 2.5rem; color: var(--silver); font-size: .88rem; line-height: 1.8; }
.planes-footer-note a { color: var(--blue); text-decoration: none; font-weight: 600; }
.planes-footer-note a:hover { color: var(--cyan); }
 
@media (max-width: 900px) {
  .planes-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ============================================================
   CARRUSEL DE CLIENTES
   ============================================================ */
 
#clientes { overflow: hidden; }
 
.clientes-track-wrapper {
  overflow: hidden;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.clientes-track-wrapper::before,
.clientes-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.clientes-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-main), transparent);
}
.clientes-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-main), transparent);
}
 
.clientes-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollClientes 22s linear infinite;
  width: max-content;
}
.clientes-track:hover { animation-play-state: paused; }
 
@keyframes scrollClientes {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
 
.cliente-card {
  background: var(--white);
  border: 1px solid rgba(21,101,192,0.15);
  border-radius: 12px;
  padding: 1.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  box-shadow: 0 2px 12px rgba(13,31,78,0.06);
  transition: all .3s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cliente-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity .3s;
}
.cliente-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21,101,192,0.35);
  box-shadow: 0 8px 24px rgba(13,31,78,0.12);
}
.cliente-card:hover::before { opacity: 1; }
 
.cliente-logo {
  width: 130px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cliente-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none !important;
  opacity: 1 !important;
}
.cliente-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   NAVBAR — SUBMENÚ SERVICIOS (DROPDOWN)
   ============================================================ */
 
.nav-links .has-dropdown {
  position: relative;
}
.nav-links .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links .has-dropdown > a::after {
  content: '▾';
  font-size: .75em;
  transition: transform .25s;
}
.nav-links .has-dropdown:hover > a::after,
.nav-links .has-dropdown.open > a::after {
  transform: rotate(180deg);
}
 
/* Menú desplegable */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #0d1f4e;
  border: 1px solid rgba(41,182,246,.25);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  padding: 10px 0;
  z-index: 1000;
  animation: ddFadeIn .2s ease;
  list-style: none;
}
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-links .has-dropdown:hover .dropdown-menu,
.nav-links .has-dropdown.open   .dropdown-menu {
  display: block;
}
 
/* Items del dropdown */
.dropdown-menu li { list-style: none; padding: 0; }
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #e8f4fd;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.dropdown-menu li a:hover {
  background: rgba(41,182,246,.15);
  color: #29b6f6;
}
 
/* Icono cuadrado dentro de cada item */
.dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
 
/* Divisor horizontal */
.dd-divider {
  height: 1px;
  background: rgba(41,182,246,.15);
  margin: 6px 14px;
}
 
/* ── Responsive móvil ── */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 8px;
    border: none;
    background: rgba(13,31,78,.6);
    margin: 4px 0 8px 12px;
    padding: 4px 0;
    min-width: unset;
    animation: none;
  }
  /* en móvil solo se abre con .open (click), no con :hover */
  .nav-links .has-dropdown:hover .dropdown-menu { display: none; }
  .nav-links .has-dropdown.open  .dropdown-menu { display: block; }
}