/* Páginas interiores de WAM DIGITAL: Servicios (qué vendemos, ordenado y directo). */

.sv-hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(70% 90% at 80% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(50% 70% at 5% 100%, rgba(236, 72, 153, 0.16), transparent 70%),
    #07060d;
  overflow: hidden;
}
.sv-glow {
  position: absolute;
  right: -10%;
  top: -30%;
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  background: #3b82f6;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}
.sv-inner { position: relative; max-width: min(1280px, 92%); margin: 0 auto; }

.sv-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sv-lead {
  max-width: 44rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: rgba(245, 243, 255, 0.85);
  margin: 0 0 2.2rem;
}

/* De un vistazo: las seis cosas que vendemos */
.sv-glance {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 52rem;
}
.sv-glance a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  color: #fff;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 2px;
  background: rgba(20, 14, 42, 0.55);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.sv-glance a i { color: #a78bfa; width: 1.3rem; text-align: center; font-size: 1.1rem; }
.sv-glance a:hover { border-color: #ec4899; background: rgba(139, 92, 246, 0.16); transform: translateY(-2px); }
.sv-plan { margin-top: 0.4rem; }

/* Tarjetas de servicio */
.sv-main { padding: clamp(3rem, 7vw, 6rem) 0; background: #07060d; }
.sv-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.6rem;
}
.sv-sub { color: rgba(245, 243, 255, 0.7); font-size: 1.1rem; margin: 0 0 clamp(2rem, 4vw, 3.2rem); }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sv-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.7rem 1.7rem;
  background: linear-gradient(180deg, rgba(24, 16, 52, 0.85), rgba(12, 8, 30, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 3px;
  scroll-margin-top: 110px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sv-card:hover, .sv-card:target { border-color: #ec4899; transform: translateY(-4px); box-shadow: 0 24px 60px -28px rgba(236, 72, 153, 0.55); }
.sv-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.sv-icon { font-size: 2rem; color: #a78bfa; }
.sv-badge {
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: var(--brand-grad);
  border-radius: 2px;
}
.sv-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; color: #fff; margin: 0 0 0.6rem; }
.sv-desc { color: rgba(245, 243, 255, 0.75); line-height: 1.6; margin: 0 0 1.3rem; }
.sv-features { list-style: none; margin: 0 0 1.6rem; padding: 1.2rem 0 0; border-top: 1px solid rgba(139, 92, 246, 0.22); display: grid; gap: 0.65rem; flex: 1; align-content: start; }
.sv-features li { display: flex; gap: 0.7rem; color: rgba(245, 243, 255, 0.88); font-size: 0.97rem; }
.sv-features i { color: #3b82f6; font-size: 0.8rem; margin-top: 0.32rem; }
.sv-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(245, 243, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.sv-add:hover { background: var(--brand-grad); border-color: transparent; }
.sv-empty { color: rgba(245, 243, 255, 0.7); }

@media (max-width: 1000px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sv-grid, .sv-glance { grid-template-columns: 1fr; }
}

/* ---------- Plan Sitio Web ---------- */
.pl-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(139, 92, 246, 0.26), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(236, 72, 153, 0.14), transparent 70%),
    #07060d;
  overflow: hidden;
}
.pl-hero .sv-title { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1rem; }
.pl-hero .sv-lead { margin-bottom: 1.6rem; }
.pl-hero .hw-btn i, .pl-help .hw-btn i { color: #25d366; margin-right: 0.5rem; }
.pl-hero .hw-btn-ghost i { color: #25d366; }
.pl-help .hw-btn-main i { color: #fff; }

.pl-plans { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); background: #07060d; }
.pl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.pl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem 1.8rem;
  background: linear-gradient(180deg, rgba(24, 16, 52, 0.9), rgba(12, 8, 30, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 3px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pl-card:hover { transform: translateY(-4px); border-color: #ec4899; box-shadow: 0 24px 60px -28px rgba(236, 72, 153, 0.55); }

/* El plan recomendado: borde de degradado de marca y un poco más alto */
.pl-featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, #1c1240, #0e0926) padding-box,
    var(--brand-grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.7);
}
.pl-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.8rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: var(--brand-grad);
  border-radius: 2px;
}
.pl-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: #fff; margin: 0 0 0.2rem; }
.pl-sub { color: rgba(245, 243, 255, 0.65); margin: 0 0 1.2rem; }
.pl-tag {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  margin: 0 0 1rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pl-desc { color: rgba(245, 243, 255, 0.8); line-height: 1.55; margin: 0 0 1.3rem; }
.pl-feats {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  display: grid;
  gap: 0.7rem;
  flex: 1;
  align-content: start;
}
.pl-feats li { display: flex; gap: 0.7rem; color: rgba(245, 243, 255, 0.9); font-size: 0.98rem; line-height: 1.45; }
.pl-feats i { color: #3b82f6; font-size: 0.8rem; margin-top: 0.35rem; }
.pl-btn {
  display: block;
  text-align: center;
  padding: 0.95rem 1rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid rgba(245, 243, 255, 0.35);
  border-radius: 2px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.pl-btn:hover { background: var(--brand-grad); border-color: transparent; }
.pl-featured .pl-btn { background: var(--brand-grad); border-color: transparent; }

/* Ayuda corta */
.pl-help {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 3px;
  background: rgba(20, 14, 42, 0.6);
}
.pl-help p { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #fff; }

/* Preguntas frecuentes */
.pl-faq { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5.5rem); background: #07060d; }
.pl-faq .sv-h2 { margin-bottom: 1.6rem; }
.pl-q { max-width: 52rem; border-top: 1px solid rgba(139, 92, 246, 0.28); padding: 1.2rem 0; }
.pl-q:last-of-type { border-bottom: 1px solid rgba(139, 92, 246, 0.28); }
.pl-q summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 500;
}
.pl-q summary::-webkit-details-marker { display: none; }
.pl-q summary::after { content: "+"; color: #a78bfa; font-size: 1.5rem; line-height: 1; transition: transform 0.25s ease; }
.pl-q[open] summary::after { transform: rotate(45deg); }
.pl-q p { margin: 0.9rem 0 0; color: rgba(245, 243, 255, 0.78); line-height: 1.65; max-width: 42rem; }

@media (max-width: 1180px) {
  .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pl-grid { grid-template-columns: 1fr; max-width: 34rem; }
}

/* Planes acumulativos: cada uno incluye al anterior */
.pl-card .pl-desc { margin-bottom: 1.1rem; }
.pl-inc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  font-weight: 500;
  font-size: 0.98rem;
  color: #fff;
}
.pl-inc i { color: #ec4899; font-size: 0.8rem; }
.pl-inc-base { color: rgba(245, 243, 255, 0.7); font-weight: 400; }
.pl-feats { border-top: 0; padding-top: 0; }

/* Plan Libre: a medida para empresas mayores */
.pl-libre { border-style: dashed; border-color: rgba(236, 72, 153, 0.55); }
.pl-badge-alt { background: transparent; border: 1px solid #ec4899; color: #f9a8d4; }
.pl-card { padding: 2rem 1.5rem 1.6rem; }
.pl-card h2 { font-size: 1.6rem; }

/* Solo la fila de planes: 95% del ancho de la pantalla */
.pl-plans .sv-inner { max-width: 95%; }

/* ---------- Nosotros ---------- */
.ns-historia { padding: clamp(3rem, 7vw, 6rem) 0; background: #07060d; }
.ns-historia-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.ns-historia-text p { color: rgba(245, 243, 255, 0.8); font-size: 1.1rem; line-height: 1.75; margin: 0 0 1.1rem; max-width: 36rem; }
.ns-historia-text .sv-h2 { margin-bottom: 1.4rem; }

/* Línea de tiempo vertical con rombos, como el proceso */
.ns-timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; display: grid; gap: 2.6rem; }
.ns-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--brand-grad);
  opacity: 0.8;
}
.ns-timeline li { position: relative; }
.ns-timeline li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  background: #07060d;
  border: 2px solid #ec4899;
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.6);
}
.ns-year {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ns-event { display: block; margin-top: 0.4rem; color: rgba(245, 243, 255, 0.82); font-size: 1.05rem; }

.ns-mv { padding: 0 0 clamp(3rem, 7vw, 6rem); background: #07060d; }
.ns-mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ns-card {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: linear-gradient(180deg, rgba(24, 16, 52, 0.85), rgba(12, 8, 30, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 3px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ns-card:hover { border-color: #ec4899; transform: translateY(-4px); }
.ns-card h3 { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: #fff; margin: 1rem 0 0.7rem; }
.ns-card p { color: rgba(245, 243, 255, 0.78); line-height: 1.7; margin: 0; font-size: 1.05rem; }
.ns-icon { font-size: 2.2rem; color: #a78bfa; }

.ns-valores { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(180deg, #07060d, #0b0719); }
.ns-valores .sv-h2 { margin-bottom: 2.4rem; }
.ns-valores-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.ns-valores-grid article { padding: 1.8rem 1.5rem; border-top: 1px solid rgba(139, 92, 246, 0.4); }
.ns-valores-grid h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: #fff; margin: 1rem 0 0.5rem; }
.ns-valores-grid p { color: rgba(245, 243, 255, 0.75); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .ns-historia-grid, .ns-mv-grid { grid-template-columns: 1fr; }
  .ns-valores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ns-valores-grid { grid-template-columns: 1fr; }
}

/* ---------- Contacto ---------- */
.ct-main { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6.5rem); background: #07060d; }
.ct-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.ct-list { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: 0.9rem; }
.ct-list > li > a,
.ct-horario {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.3rem;
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 3px;
  background: rgba(20, 14, 42, 0.6);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.ct-list > li > a:hover, .ct-horario:hover { border-color: #ec4899; background: rgba(139, 92, 246, 0.14); }
.ct-list i { color: #a78bfa; font-size: 1.3rem; width: 1.6rem; text-align: center; }
.ct-list span { display: grid; gap: 0.15rem; color: rgba(245, 243, 255, 0.85); }
.ct-list strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: #fff; }

.ct-social p { margin: 0 0 0.9rem; color: rgba(245, 243, 255, 0.7); }
.ct-social div { display: flex; gap: 1.4rem; }
.ct-social a { color: #a78bfa; font-size: 1.5rem; transition: color 0.2s ease, transform 0.2s ease; }
.ct-social a:hover { color: #fff; transform: translateY(-2px); }

/* Formulario: mismos campos de siempre, con el estilo nuevo */
.ct-form-col .sv-sub { margin-bottom: 1.8rem; }
.ct-form-col .contacto-form {
  background: linear-gradient(180deg, rgba(24, 16, 52, 0.85), rgba(12, 8, 30, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.ct-form-col .contacto-form input,
.ct-form-col .contacto-form textarea { border-bottom: 1px solid rgba(245, 243, 255, 0.3); font: inherit; color: #fff; }
.ct-form-col .contacto-form label { color: rgba(245, 243, 255, 0.6); }
.ct-form-col .contacto-form input:focus + label,
.ct-form-col .contacto-form input:valid + label,
.ct-form-col .contacto-form textarea:focus + label,
.ct-form-col .contacto-form textarea:valid + label { color: #c4b5fd; }
.ct-form-col .contacto-submit-btn {
  width: 100%;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  color: #fff;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--brand-grad);
  border: 0;
  border-radius: 2px;
  box-shadow: 0 10px 34px -12px rgba(139, 92, 246, 0.8);
  cursor: pointer;
}
.ct-form-col .contacto-submit-btn:hover { box-shadow: 0 16px 40px -12px rgba(236, 72, 153, 0.7); }

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

/* Horarios: misma medida y alineación que las otras filas de contacto */
.ct-list .ct-horario { width: 100%; max-width: none; margin: 0; text-align: left; box-sizing: border-box; justify-content: flex-start; }
.ct-list .ct-horario span { text-align: left; }

/* ---------- Animaciones de Nosotros y Contacto ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease var(--d, 0ms), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms);
}
.rv.rv-left { transform: translateX(-30px); }
.rv.rv-in { opacity: 1; transform: none; }

/* Nosotros: la línea de tiempo se dibuja, los años se llenan de color y el rombo se enciende */
.ns-timeline { --p: 0; }
.ns-timeline::before { transform: scaleY(var(--p)); transform-origin: top; transition: none; }
.ns-timeline li::before { transition: background 0.6s ease, box-shadow 0.6s ease; transition-delay: var(--d, 0ms); }
.ns-timeline li.rv-in::before { background: #ec4899; box-shadow: 0 0 22px 4px rgba(236, 72, 153, 0.8); }
.ns-year {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px rgba(139, 92, 246, 0.6);
  background: var(--brand-grad) no-repeat bottom;
  background-size: 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0ms) + 200ms);
}
.ns-timeline li.rv-in .ns-year { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }

/* Iconos con vida propia, una vez que su tarjeta ya se ve */
.ns-icon { display: inline-block; transform-origin: center; }
.ns-card.rv-in .fa-bullseye { animation: ns-hit 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s both; }
@keyframes ns-hit { 0% { transform: scale(0.2) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.ns-card.rv-in .fa-eye { animation: ns-blink 6s ease-in-out 1.2s infinite; }
@keyframes ns-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }

.ns-valores-grid article.rv-in .fa-lightbulb { animation: ns-glow 3.2s ease-in-out 0.5s infinite; }
@keyframes ns-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(236, 72, 153, 0)); color: #a78bfa; } 50% { filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.9)); color: #f9a8d4; } }
.ns-valores-grid article.rv-in .fa-handshake { animation: ns-shake 4s ease-in-out 0.8s infinite; }
@keyframes ns-shake { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-10deg) translateY(-2px); } 72% { transform: rotate(8deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); } }
.ns-valores-grid article.rv-in .fa-trophy { animation: ns-shine 4.5s ease-in-out 1.1s infinite; }
@keyframes ns-shine { 0%, 70%, 100% { transform: translateY(0) scale(1); filter: none; } 80% { transform: translateY(-6px) scale(1.12); filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.9)); } 90% { transform: translateY(0) scale(1); } }
.ns-valores-grid article.rv-in .fa-users { animation: ns-bob 3.6s ease-in-out 1.4s infinite; }
@keyframes ns-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ns-valores-grid article { transition: border-color 0.3s ease; }
.ns-valores-grid article:hover { border-top-color: #ec4899; }

/* Contacto: luz que se mueve detrás del formulario y los iconos de contacto despiertan al entrar */
.ct-main { position: relative; overflow: hidden; }
.ct-main::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: 46vw;
  height: 46vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.14) 55%, transparent 70%);
  filter: blur(60px);
  animation: ct-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.ct-main > .sv-inner { position: relative; }
@keyframes ct-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 8vh) scale(1.2); } }

.ct-list > li.rv-in .fa-phone { animation: ct-ring 5s ease-in-out 1s infinite; transform-origin: 50% 50%; }
@keyframes ct-ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-18deg); } 78% { transform: rotate(16deg); } 82% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } 90% { transform: rotate(0); } }
.ct-list > li.rv-in .fa-envelope { animation: ct-lift 4.5s ease-in-out 1.3s infinite; }
@keyframes ct-lift { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
.ct-list > li.rv-in .fa-clock { animation: ct-tick 4s steps(8, end) 1.6s infinite; }
@keyframes ct-tick { 0%, 80% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

.ct-social a { display: inline-block; }
.ct-social a:nth-child(odd):hover { transform: translateY(-3px) rotate(-6deg); }
.ct-social a:nth-child(even):hover { transform: translateY(-3px) rotate(6deg); }

/* Botón de enviar: un brillo lo recorre de vez en cuando */
.ct-form-col .contacto-submit-btn { position: relative; overflow: hidden; }
.ct-form-col .contacto-submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: -80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: ct-shine 4.5s ease-in-out 2s infinite;
}
@keyframes ct-shine { 0%, 55% { left: -80px; } 100% { left: 110%; } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ns-timeline::before { transform: none; }
  .ns-year { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
  .ns-icon, .ct-list i, .ct-main::before, .ct-form-col .contacto-submit-btn::after { animation: none !important; }
}

/* ---------- Carrito, WhatsApp y avisos del formulario ---------- */

/* Carrito flotante: solo se ve cuando corresponde (atributo hidden) */
.cart-floating-btn { border: 0; font: inherit; background: var(--brand-grad); bottom: 172px; right: 24px; width: 58px; height: 58px; box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.8); }
.cart-floating-btn[hidden] { display: none; }
.cart-floating-btn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
.cart-count { background: #ec4899; width: 22px; height: 22px; font-size: 0.72rem; }

.cart-sidebar {
  background: linear-gradient(180deg, #14102b, #0a0716);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 4px;
  top: 12px;
  height: calc(100vh - 24px);
  margin-right: 12px;
  z-index: 2100;
}
.cart-overlay { z-index: 2050; }
.cart-sidebar-header { background: transparent; border-bottom: 1px solid rgba(139, 92, 246, 0.25); padding: 1.4rem 1.6rem; }
.cart-sidebar-header h3 { font-family: var(--serif); font-weight: 600; }
.cart-close { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.cart-item { border: 1px solid rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.08); border-radius: 3px; }
.cart-item-info h4 { color: #fff; font-weight: 500; }
.cart-item-remove { background: none; border: 0; color: #f9a8d4; cursor: pointer; }
.cart-footer { background: transparent; border-top: 1px solid rgba(139, 92, 246, 0.25); }
.cart-checkout-btn { background: var(--brand-grad); border-radius: 2px; font: inherit; font-weight: 500; letter-spacing: 0.03em; box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.8); }
.cart-checkout-btn:disabled { background: rgba(245, 243, 255, 0.12); box-shadow: none; color: rgba(245, 243, 255, 0.5); }
.cart-notification { background: #14102b; border-left-color: #8b5cf6; border-radius: 3px; z-index: 3000; bottom: 110px; right: 24px; }

/* Botón de la tarjeta cuando el servicio ya está elegido */
.sv-add.is-added { background: var(--brand-grad); border-color: transparent; }

/* WhatsApp flotante, abajo a la izquierda */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  color: #fff;
  font-weight: 500;
  background: #1faa59;
  border-radius: 3px;
  box-shadow: 0 12px 30px -10px rgba(31, 170, 89, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float i { font-size: 1.5rem; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(31, 170, 89, 0.9); }
.wa-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float span { display: none; }
  .wa-float { padding: 0.9rem; }
  .cart-floating-btn { bottom: 150px; right: 14px; }
}

/* Avisos del formulario de contacto */
.ct-alerts { margin: 0 0 1.4rem; }
.ct-alert { margin: 0; padding: 1rem 1.2rem; border-radius: 3px; border: 1px solid; line-height: 1.5; }
.ct-alert-success { color: #d1fae5; background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.5); }
.ct-alert-error { color: #fecdd3; background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.55); }

/* Servicios elegidos dentro del formulario, con botón para quitarlos */
.ct-form-col .servicios-cotizar-wrapper { border-radius: 3px; padding: 1.2rem 1.3rem; }
.ct-form-col .servicio-tag { border-radius: 2px; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.4); display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.4rem 0.45rem 0.9rem; }
.servicio-tag-x { background: none; border: 0; color: #f9a8d4; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 0.4rem; }
.servicio-tag-x:hover { color: #fff; }

/* Autocompletado del navegador: que no pinte los campos de blanco */
.ct-form-col .contacto-form input:-webkit-autofill,
.ct-form-col .contacto-form input:-webkit-autofill:hover,
.ct-form-col .contacto-form input:-webkit-autofill:focus,
.ct-form-col .contacto-form input:-webkit-autofill:active,
.ct-form-col .contacto-form textarea:-webkit-autofill,
.ct-form-col .contacto-form textarea:-webkit-autofill:hover,
.ct-form-col .contacto-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #150f30 inset;
  box-shadow: 0 0 0 1000px #150f30 inset;
  border-bottom-color: rgba(245, 243, 255, 0.3);
  transition: background-color 9999s ease-in-out 0s;
}
/* La etiqueta sube cuando el campo viene autocompletado, para no pisar el texto */
.ct-form-col .contacto-form input:-webkit-autofill + label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: #c4b5fd;
}
.ct-form-col .contacto-form input:autofill { color: #fff; }
.ct-form-col .contacto-form { color-scheme: dark; }

/* Los tres botones flotantes ordenados en una sola columna, abajo a la derecha:
   bot (abajo), WhatsApp (centro) y carrito (arriba, solo cuando corresponde). */
.chat-toggle,
.wa-float,
.cart-floating-btn {
  position: fixed;
  right: 24px;
  left: auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-toggle { bottom: 24px; background: var(--brand-grad); }
.wa-float { bottom: 94px; background: #1faa59; }
.cart-floating-btn { bottom: 164px; background: linear-gradient(135deg, #7c3aed, #ec4899); }
.chat-toggle:hover, .wa-float:hover, .cart-floating-btn:hover { transform: translateY(-3px) scale(1.06); }
.chat-toggle .chat-icon, .wa-float i, .cart-floating-btn > i { font-size: 1.45rem; color: #fff; }
.wa-float span { display: none; }
.cart-floating-btn[hidden] { display: none; }
.cart-notification { right: 96px; bottom: 30px; }

@media (max-width: 600px) {
  .chat-toggle, .wa-float, .cart-floating-btn { right: 14px; width: 52px; height: 52px; }
  .chat-toggle { bottom: 14px; }
  .wa-float { bottom: 78px; }
  .cart-floating-btn { bottom: 142px; }
  .cart-notification { right: 80px; bottom: 20px; }
}

/* Diseño de los tres botones flotantes: cristal oscuro con filete de marca.
   Al pasar el cursor se llenan con el color de su marca y sale una etiqueta a la izquierda. */
.chat-toggle,
.wa-float,
.cart-floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  background: rgba(16, 12, 36, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.9);
  overflow: visible;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.chat-toggle .chat-icon, .chat-toggle .chat-icon i { font-size: 1.35rem; color: #c4b5fd; line-height: 1; transition: color 0.3s ease; }
.wa-float i { font-size: 1.5rem; color: #25d366; transition: color 0.3s ease; }
.cart-floating-btn > i { font-size: 1.3rem; color: #f9a8d4; transition: color 0.3s ease; }

.chat-toggle:hover, .chat-toggle:focus-visible { background: var(--brand-grad); border-color: transparent; transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(139, 92, 246, 0.9); }
.wa-float:hover, .wa-float:focus-visible { background: #1faa59; border-color: transparent; transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(31, 170, 89, 0.9); }
.cart-floating-btn:hover, .cart-floating-btn:focus-visible { background: linear-gradient(135deg, #7c3aed, #ec4899); border-color: transparent; transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(236, 72, 153, 0.9); }
.chat-toggle:hover .chat-icon i, .wa-float:hover i, .cart-floating-btn:hover > i,
.chat-toggle:focus-visible .chat-icon i, .wa-float:focus-visible i, .cart-floating-btn:focus-visible > i { color: #fff; }

/* Etiqueta que sale a la izquierda */
.chat-toggle::before, .wa-float::before, .cart-floating-btn::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: rgba(16, 12, 36, 0.96);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 3px;
  opacity: 0;
  transform: translate(10px, -50%);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.chat-toggle:hover::before, .wa-float:hover::before, .cart-floating-btn:hover::before,
.chat-toggle:focus-visible::before, .wa-float:focus-visible::before, .cart-floating-btn:focus-visible::before { opacity: 1; transform: translate(0, -50%); }

/* Avisos numéricos: cuadrito rosa en la esquina */
.notification-badge, .cart-count {
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #ec4899;
  border: 2px solid #07060d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.chat-toggle:focus-visible, .wa-float:focus-visible, .cart-floating-btn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }

@media (max-width: 600px) {
  .chat-toggle, .wa-float, .cart-floating-btn { width: 50px; height: 50px; }
  .chat-toggle::before, .wa-float::before, .cart-floating-btn::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-toggle, .wa-float, .cart-floating-btn, .chat-toggle::before, .wa-float::before, .cart-floating-btn::before { transition: none; }
}

/* "¿No sabes cuál elegir?": al 80% del ancho, centrado */
.pl-help { width: 80%; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .pl-help { width: 100%; } }

/* Tecnologías que dominamos: fondo más claro (violeta medio) para que el cubo y los logos resalten */
.tc {
  background: linear-gradient(135deg, #2f2273 0%, #4b32a3 52%, #6a3db8 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.tc .tc-lead { color: rgba(255, 255, 255, 0.9); }
.tc .tc-group h3 { color: #fbcfe8; }
.tc .tc-chip { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.tc .tc-chip:hover { background: rgba(255, 255, 255, 0.22); border-color: #fbcfe8; }
.tc .tc-chip i { color: #e9d5ff; }

/* ---------- Chat de Wamy con la marca ---------- */
.chat-container {
  right: 24px;
  bottom: 24px;
  width: 380px;
  height: min(580px, calc(100vh - 48px));
  background: #0f0a24;
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(139, 92, 246, 0.6);
  z-index: 1100;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  color: #f5f3ff;
}
.chat-header { background: linear-gradient(120deg, #6d3fe0, #3b6fe0 55%, #d6409f); padding: 14px 16px; }
.bot-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); font-size: 1.1rem; }
.bot-info h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 2px; }
.status { font-size: 0.78rem; opacity: 0.9; }
.close-btn { border-radius: 3px; width: 32px; height: 32px; display: grid; place-items: center; }
.chat-messages { background: transparent; padding: 16px; }
.message-content { font-size: 0.93rem; line-height: 1.5; white-space: pre-line; }
.bot-message .message-content { background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.32); color: #f5f3ff; border-radius: 3px 14px 14px 14px; }
.user-message .message-content { background: linear-gradient(120deg, #7c3aed, #3b82f6); color: #fff; border-radius: 14px 3px 14px 14px; }
.message-time { color: rgba(245, 243, 255, 0.45); }
.typing-indicator { background: rgba(139, 92, 246, 0.14); border-radius: 12px; }
.typing-dots span { background: #c4b5fd; }
.typing-text { color: rgba(245, 243, 255, 0.7); }
.quick-options { gap: 6px; padding: 8px 16px; }
.quick-btn { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.4); color: #f5f3ff; border-radius: 3px; padding: 7px 11px; font: inherit; font-size: 0.8rem; }
.quick-btn:hover { background: linear-gradient(120deg, #7c3aed, #ec4899); border-color: transparent; color: #fff; }
.input-wrapper { border-top: 1px solid rgba(139, 92, 246, 0.35); padding: 12px 16px; }
#messageInput { background: #150f30; color: #fff; border: 1px solid rgba(139, 92, 246, 0.4); border-radius: 3px; font: inherit; font-size: 0.93rem; }
#messageInput::placeholder { color: rgba(245, 243, 255, 0.45); }
#messageInput:focus { border-color: #c4b5fd; }
#messageInput:disabled { opacity: 0.6; }
#sendBtn { border-radius: 3px; width: 42px; height: 42px; background: linear-gradient(120deg, #7c3aed, #ec4899); display: grid; place-items: center; }
#sendBtn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.whatsapp-btn, .email-btn { margin: 0; border-radius: 3px; font: inherit; font-size: 0.85rem; padding: 9px 13px; }
.whatsapp-btn { background: #1faa59; }
.whatsapp-btn:hover { background: #17934b; }
.email-btn { background: transparent; border: 1px solid #c4b5fd; color: #e9d5ff; }
.email-btn:hover { background: rgba(139, 92, 246, 0.3); }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.5); }

/* Con el chat abierto los otros botones se apartan para no taparlo */
body.chat-open .chat-toggle,
body.chat-open .wa-float,
body.chat-open .cart-floating-btn { opacity: 0; pointer-events: none; transform: translateY(12px); }

@media (max-width: 480px) {
  .chat-container { width: calc(100vw - 20px); height: calc(100vh - 20px); right: 10px; bottom: 10px; left: 10px; border-radius: 6px; }
  .quick-options { flex-direction: row; }
  .quick-btn { width: auto; }
}


/* Título de tecnologías en blanco sobre el fondo más claro */
.tc .tc-title { color: #fff; background: none; -webkit-text-fill-color: #fff; }

/* Redes sociales en el menú principal, justo después de "Contáctanos" */
.nav-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: 0.2rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(139, 92, 246, 0.4);
}
.nav-social a { color: #c4b5fd; font-size: 1.1rem; line-height: 1; transition: color 0.2s ease, transform 0.2s ease; }
.nav-social a:hover, .nav-social a:focus-visible { color: #fff; transform: translateY(-2px); }
@media (max-width: 768px) {
  .nav-social { border-left: 0; padding-left: 0; margin: 1rem 0 0; }
}

/* ---------- Menú oscuro cuyo color cambia al bajar (lo calcula menu_color.js) ---------- */
.main-nav {
  background-color: var(--nav-fondo, rgba(7, 6, 13, 0.92));
  border-bottom: 1px solid var(--nav-borde, rgba(139, 92, 246, 0.3));
  box-shadow: 0 1px 26px -6px var(--nav-brillo, rgba(139, 92, 246, 0.25));
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.main-nav.nav-sin-transicion { transition: none; }
/* La línea bajo la opción actual y el logo toman el mismo color que el menú en ese momento */
.nav-link::after { background: var(--nav-acento, #8b5cf6); }

/* Menú más negro del lado del logo (se funde hacia el tono sutil de la derecha) y logo más claro y nítido */
.main-nav {
  background-color: transparent;
  background-image: linear-gradient(90deg, rgba(1, 1, 4, 0.99) 0%, rgba(2, 1, 6, 0.98) 38%, var(--nav-fondo, rgba(7, 6, 13, 0.94)) 100%);
}
.main-nav .brand-text {
  font-weight: 600;
  background: linear-gradient(120deg, #e9e2ff 0%, #a5c8ff 50%, #ffc2e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(196, 181, 253, 0.4));
}

/* Lado del logo en negro puro, opaco hasta la mitad del menú; el tono sutil solo aparece hacia la derecha */
.main-nav {
  background-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(2, 1, 6, 0.98) 68%, var(--nav-fondo, rgba(7, 6, 13, 0.94)) 100%);
}

/* ---------- Menú del celular y tablet: se abre a pantalla completa ---------- */
@media (max-width: 1024px) {
  /* El cristal borroso del menú crea un "marco" que impide que el panel ocupe toda la pantalla: se quita aquí */
  .main-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

  .main-nav .nav-container { padding: 0 1.2rem; height: 60px; }
  .nav-toggle {
    position: relative;
    z-index: 1200;                   /* queda por encima del panel para poder cerrarlo */
    display: flex;
    padding: 14px 6px;
    margin-right: -6px;
    gap: 5px;
  }
  .nav-toggle span { width: 26px; height: 2px; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav .nav-brand { position: relative; z-index: 1200; }

  .main-nav .nav-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5.5rem 1.6rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background:
      radial-gradient(70% 45% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
      radial-gradient(60% 40% at 50% 100%, rgba(236, 72, 153, 0.16), transparent 70%),
      #04030a;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    z-index: 1100;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, visibility 0s linear 0.5s;
  }
  .main-nav .nav-menu.active {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, visibility 0s;
  }

  .main-nav .nav-list { width: 100%; max-width: 26rem; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; }
  .main-nav .nav-link {
    display: block;
    padding: 1.15rem 0.4rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    color: #fff;
  }
  /* La opción actual se marca con una línea corta de color bajo el texto, centrada */
  .main-nav .nav-link::after { display: block; left: calc(50% - 1.3rem); width: 2.6rem; bottom: 0.55rem; transform: scaleX(0); }
  .main-nav .nav-link.active::after { transform: scaleX(1); }

  .main-nav .nav-cta { width: 100%; max-width: 26rem; margin: 0; }
  .main-nav .nav-cta .cta-button { display: block; padding: 1.15rem 0.4rem; width: 100%; text-align: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
  .main-nav .nav-cta .cta-button::after { display: none; }

  .main-nav .nav-social {
    margin: 2rem 0 0;
    padding: 0;
    border: 0;
    gap: 1.8rem;
    justify-content: center;
  }
  .main-nav .nav-social a { font-size: 1.6rem; }

  /* Las opciones entran una tras otra al abrir el menú */
  .main-nav .nav-menu.active .nav-item,
  .main-nav .nav-menu.active .nav-cta,
  .main-nav .nav-menu.active .nav-social { animation: menu-entra 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .main-nav .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.12s; }
  .main-nav .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.18s; }
  .main-nav .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.24s; }
  .main-nav .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.30s; }
  .main-nav .nav-menu.active .nav-cta { animation-delay: 0.36s; }
  .main-nav .nav-menu.active .nav-social { animation-delay: 0.44s; }

  /* Con el menú abierto: sin scroll de fondo y sin botones flotantes encima */
  body.menu-abierto { overflow: hidden; }
  body.menu-abierto .chat-toggle,
  body.menu-abierto .wa-float,
  body.menu-abierto .cart-floating-btn { opacity: 0; pointer-events: none; }
}
@keyframes menu-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .main-nav .nav-menu, .main-nav .nav-menu.active { transition: none; }
  .main-nav .nav-menu.active .nav-item, .main-nav .nav-menu.active .nav-cta, .main-nav .nav-menu.active .nav-social { animation: none; }
}

/* Carrito: cerrado no debe asomar ni un borde en pantallas angostas */
.cart-sidebar { width: min(400px, calc(100vw - 24px)); right: calc(-1 * min(400px, 100vw) - 60px); visibility: hidden; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.5s; }
.cart-sidebar.active { visibility: visible; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s; }

/* Botones flotantes más pequeños y pegados al borde en celular, para que tapen menos texto */
@media (max-width: 600px) {
  .chat-toggle, .wa-float, .cart-floating-btn { width: 44px; height: 44px; right: 8px; font-size: 1.15rem; opacity: 0.92; }
  .chat-toggle { bottom: 12px; }
  .wa-float { bottom: 62px; }
  .cart-floating-btn { bottom: 112px; }
  .chat-toggle .chat-icon, .wa-float i, .cart-floating-btn > i { font-size: 1.15rem; }
}

/* Cabecera de contacto: sin el bloque pulsante ni los puntos flotantes, que dejaban un borde cortado */
.contacto-hero-bg, .contacto-hero-particles { display: none; }
.contacto-hero { min-height: auto; padding: 2rem 0 1rem; }

/* ---------- Nosotros: fondo tecnológico y años de trayectoria ---------- */
.ns-hero { position: relative; overflow: hidden; padding-bottom: clamp(3rem, 6vw, 5rem); }
.ns-red { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ns-red-suave { opacity: 0.55; }
.ns-hero .sv-inner, .ns-historia .sv-inner { z-index: 1; }
.ns-historia { position: relative; overflow: hidden; }
.ns-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ns-hero-text .sv-lead { max-width: 34rem; }
.ns-anios { text-align: center; padding: clamp(1.5rem, 3vw, 2.4rem) 1rem; border: 1px solid rgba(139, 92, 246, 0.35); background: rgba(8, 5, 20, 0.55); backdrop-filter: blur(6px); position: relative; overflow: hidden; }
.ns-anios::before { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.25), transparent); animation: ns-barrido 4.5s linear infinite; }
@keyframes ns-barrido { to { top: 120%; } }
.ns-anios-num { display: flex; align-items: baseline; justify-content: center; gap: 0.6rem; line-height: 1; position: relative; }
.ns-anios-cuenta { font-family: var(--serif); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.55)); }
.ns-anios-mas { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; }
.ns-anios-txt { margin: 0.8rem 0 2.2rem; color: rgba(245, 243, 255, 0.85); font-size: 1.05rem; position: relative; }
.ns-anios-linea { position: relative; height: 2px; margin: 0 1.6rem 1.8rem; background: rgba(255, 255, 255, 0.15); }
.ns-anios-relleno { position: absolute; inset: 0; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 14px rgba(236, 72, 153, 0.8); }
.ns-anios-linea b { position: absolute; top: 12px; transform: translateX(-50%); font-size: 0.85rem; font-weight: 500; color: rgba(245, 243, 255, 0.75); }
.ns-anios-linea b::before { content: ""; position: absolute; left: 50%; top: -17px; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: #ec4899; box-shadow: 0 0 12px #ec4899; }
.ns-anios.listo .ns-anios-cuenta { animation: ns-pulso 3.5s ease-in-out infinite; }
@keyframes ns-pulso { 50% { filter: drop-shadow(0 0 44px rgba(236, 72, 153, 0.75)); } }
@media (max-width: 900px) { .ns-hero-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ns-anios::before, .ns-anios.listo .ns-anios-cuenta { animation: none; } }

/* ---------- Footer claro: se distingue del resto del sitio oscuro ---------- */
.ft { background: radial-gradient(60% 80% at 100% 100%, rgba(236, 72, 153, 0.12), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(59, 130, 246, 0.14), transparent 70%), #f4f0ff; padding-top: 0; overflow: hidden; }
.ft::before { display: none; }
.ft::after { content: "WAM"; position: absolute; right: -2%; bottom: 2rem; font-family: var(--serif); font-weight: 700; font-size: clamp(8rem, 24vw, 22rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(124, 58, 237, 0.16); pointer-events: none; user-select: none; }
.ft-banda { background: linear-gradient(100deg, #7c3aed 0%, #3b82f6 55%, #ec4899 100%); position: relative; overflow: hidden; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ft-banda::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, transparent); }
.ft-banda-in { position: relative; max-width: min(1280px, 92%); margin: 0 auto; padding: clamp(2rem, 5vw, 3.4rem) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.ft-banda h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); color: #fff; line-height: 1.1; }
.ft-banda-bt { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.ft-banda-wa, .ft-banda-ct { padding: 0.95rem 1.7rem; font-weight: 600; border-radius: 2px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ft-banda-wa { background: #fff; color: #5b21b6; }
.ft-banda-ct { border: 1px solid rgba(255, 255, 255, 0.8); color: #fff; }
.ft-banda-wa:hover, .ft-banda-ct:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(30, 10, 80, 0.7); }
.ft-inner, .ft-bottom { position: relative; z-index: 1; }
.ft-brand p { color: #4c4668; }
.ft-logo { background: linear-gradient(90deg, #6d28d9, #2563eb 60%, #db2777); -webkit-background-clip: text; background-clip: text; }
.ft-col h4 { color: #1e1038; }
.ft-col a { color: #4c4668; }
.ft-col a:hover { color: #6d28d9; }
.ft-col a i, .ft-social a { color: #7c3aed; }
.ft-social a:hover { color: #db2777; }
.ft-bottom { border-top-color: rgba(124, 58, 237, 0.2); }
.ft-bottom p { color: #6b6488; }

/* ---------- Servicios: un poco más de diseño ---------- */
.sv-hero .ns-red { opacity: 0.8; }
.sv-hero .sv-inner { z-index: 1; }
.sv-main { position: relative; background:
  linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
  radial-gradient(60% 40% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%), #07060d; }
.sv-card { position: relative; overflow: hidden; counter-increment: svn; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.sv-grid { counter-reset: svn; }
.sv-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.22), transparent 65%); }
.sv-card::after { content: "0" counter(svn); position: absolute; right: 1.2rem; top: 3.6rem; font-family: var(--serif); font-weight: 700; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(167, 139, 250, 0.22); pointer-events: none; }
.sv-card:hover { transform: translateY(-6px); border-color: #ec4899; box-shadow: 0 24px 50px -24px rgba(139, 92, 246, 0.7); }
.sv-card:hover::before { opacity: 1; }
.sv-card > * { position: relative; z-index: 1; }
.sv-icon { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.2rem; }
.sv-card h3 { position: relative; padding-bottom: 0.9rem; }
.sv-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.6rem; height: 2px; background: var(--brand-grad); transition: width 0.35s ease; }
.sv-card:hover h3::after { width: 5.5rem; }
.sv-glance a:hover i { color: #f9a8d4; }

/* ---------- Footer: negro que cambia de color como el menú (anula la versión clara) ---------- */
.ft { --ft-a: rgb(139, 92, 246); --ft-a2: rgba(139, 92, 246, 0.22); --ft-a3: rgba(139, 92, 246, 0.45); --ft-fondo: rgb(10, 8, 20);
  background: radial-gradient(60% 90% at 85% 100%, var(--ft-a2), transparent 70%), radial-gradient(45% 70% at 5% 100%, rgba(59, 130, 246, 0.12), transparent 70%), var(--ft-fondo);
  transition: background 0.4s linear; }
.ft::before { display: block; content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ft-a), transparent); opacity: 1; z-index: 2; }
.ft::after { -webkit-text-stroke: 1.5px var(--ft-a3); opacity: 0.35; }
.ft-banda { background: linear-gradient(100deg, rgba(8, 6, 16, 0.9), var(--ft-a2) 60%, rgba(8, 6, 16, 0.9)); border-bottom: 1px solid var(--ft-a3); }
.ft-banda::before { background-image: linear-gradient(var(--ft-a2) 1px, transparent 1px), linear-gradient(90deg, var(--ft-a2) 1px, transparent 1px); opacity: 0.6; }
.ft-banda h2 { background: linear-gradient(90deg, #fff, #c4b5fd 60%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-banda-ct { border-color: var(--ft-a3); }
.ft-banda-wa { color: #1e1038; }
.ft-brand p { color: rgba(245, 243, 255, 0.72); }
.ft-logo { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; }
.ft-col h4 { color: #fff; }
.ft-col a { color: rgba(245, 243, 255, 0.72); }
.ft-col a:hover { color: #fff; }
.ft-col a i, .ft-social a { color: var(--ft-a); }
.ft-social a:hover { color: #fff; }
.ft-bottom { border-top-color: var(--ft-a3); }
.ft-bottom p { color: rgba(245, 243, 255, 0.5); }

/* ---------- Plan sitio web: más diseño ---------- */
.pl-hero { position: relative; }
.pl-hero .ns-red { opacity: 0.8; }
.pl-hero .sv-inner, .pl-plans .sv-inner { z-index: 1; }
.pl-plans { position: relative; overflow: hidden; background:
  linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
  radial-gradient(60% 40% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%), #07060d; }
.pl-card { position: relative; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.pl-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.22), transparent 65%); }
.pl-card:hover { transform: translateY(-6px); border-color: #ec4899; box-shadow: 0 24px 50px -24px rgba(139, 92, 246, 0.7); }
.pl-card:hover::before { opacity: 1; }
.pl-card > *:not(.pl-badge) { position: relative; z-index: 1; }
.pl-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease; }
.pl-card:hover::after, .pl-featured::after { transform: scaleX(1); }
.pl-featured { box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35), 0 30px 70px -30px rgba(139, 92, 246, 0.8); animation: pl-latido 4.5s ease-in-out infinite; }
@keyframes pl-latido { 50% { box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 30px 80px -26px rgba(236, 72, 153, 0.75); } }
.pl-help { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pl-featured { animation: none; } }

.pl-badge { z-index: 3; }
.pl-card::after { z-index: 0; }

/* Menú: negro solo detrás del logo; el resto toma el color de contraste que calcula menu_color.js */
.main-nav { background-image: linear-gradient(90deg, #000 0, #000 270px, var(--nav-fondo, rgba(7, 6, 13, 0.94)) 520px); }

/* ---------- Rendimiento ---------- */
/* La imagen del planeta solo se usa en modo lite (sin 3D): si se mostrara antes, se vería un planeta distinto que luego cambia */
.hw-poster { display: none; }
.lite .hw-3d canvas { display: none; }
.lite .hw-poster { display: block; position: absolute; width: min(38vw, 400px); aspect-ratio: 1; right: 14%; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background-size: auto 100%; background-repeat: repeat-x; background-position: 0 0;
  box-shadow: inset -30px -10px 60px 18px rgba(0, 0, 0, 0.88), 0 0 70px 6px rgba(139, 92, 246, 0.45), 0 0 0 2px rgba(165, 180, 252, 0.25);
  animation: hw-poster-gira 70s linear infinite; }
@keyframes hw-poster-gira { to { background-position: -200% 0; } }
@media (max-width: 900px) { .lite .hw-poster { right: auto; left: 50%; top: calc(var(--hw-alto) / 2); width: min(62vw, 300px); transform: translate(-50%, -50%); } }
/* equipos justos o conexión lenta: sin vidrio esmerilado ni animaciones continuas que cuestan batería */
.lite *, .lite *::before, .lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lite .ns-red, .lite .hw-grain, .lite .sv-glow, .lite .hw-blob { display: none; }
.lite .ns-anios::before, .lite .ns-anios.listo .ns-anios-cuenta, .lite .pl-featured { animation: none; }
.lite .sv-card::before, .lite .pl-card::before { display: none; }
.media .hw-grain { display: none; }
.media *, .media *::before, .media *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
@media (prefers-reduced-data: reduce) { .hw-grain { display: none; } }
@media (prefers-reduced-motion: reduce) { .lite .hw-poster { animation: none; } }

/* ---------- Inicio: conserva su menú y su footer originales (los cambios nuevos son para las otras páginas) ---------- */
.main-nav { background-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(2, 1, 6, 0.98) 68%, var(--nav-fondo, rgba(7, 6, 13, 0.94)) 100%); }
.nav-link::after { background: var(--nav-acento, #8b5cf6); }
.ft { background: radial-gradient(50% 120% at 15% 0%, rgba(139, 92, 246, 0.14), transparent 70%), radial-gradient(40% 100% at 90% 100%, rgba(236, 72, 153, 0.1), transparent 70%), #06040f; padding-top: clamp(3rem, 6vw, 5rem); transition: none; }
.ft::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--brand-grad); opacity: 0.8; z-index: auto; }
.ft::after { display: none; }
.ft-banda { display: none; }
.ft-brand p, .ft-col a { color: rgba(245, 243, 255, 0.72); }
.ft-col a:hover { color: #fff; }
.ft-col h4 { color: #fff; }
.ft-col a i, .ft-social a { color: #a78bfa; }
.ft-social a:hover { color: #fff; }
.ft-bottom { border-top-color: rgba(139, 92, 246, 0.22); }
.ft-bottom p { color: rgba(245, 243, 255, 0.5); }

/* ---------- Servicios: cerebro 3D a la derecha ---------- */
.sv-hero { min-height: clamp(420px, 62vh, 640px); }
.sv-cerebro { position: absolute; top: 0; bottom: 0; right: 0; width: min(52%, 760px); z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.sv-cerebro.listo { opacity: 1; }
.sv-cerebro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sv-hero .sv-inner { z-index: 2; }
.sv-hero .sv-lead, .sv-hero .sv-glance { max-width: min(44rem, 52%); }
.lite .sv-cerebro { display: none; }
.lite .sv-hero .sv-lead, .lite .sv-hero .sv-glance { max-width: 52rem; }
@media (max-width: 900px) {
  .sv-hero { min-height: 0; }
  .sv-cerebro { position: relative; width: 100%; height: 260px; margin: -1.5rem 0 0.5rem; }
  .sv-hero .sv-lead, .sv-hero .sv-glance { max-width: none; }
}

/* ---------- Servicios: letras que entran una a una (como el slider) e íconos con movimiento propio ---------- */
.sv-ltr { -webkit-text-fill-color: currentColor; background: none; }
.sv-title.sv-ltr { color: #fff; }
.sv-w { display: inline-block; white-space: nowrap; }
.sv-ch { display: inline-block; opacity: 0; transform: translateY(105%) rotate(7deg); filter: blur(7px); }
.sv-in .sv-ch { animation: sv-letra 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) forwards; animation-delay: calc(0.1s + var(--i) * 42ms); }
@keyframes sv-letra { to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .sv-ch { opacity: 1; transform: none; filter: none; animation: none !important; } }


.sv-poder { margin: -1rem 0 1.6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: #f9a8d4; max-width: min(44rem, 52%); }
.lite .sv-poder { max-width: 52rem; }
@media (max-width: 900px) { .sv-poder { max-width: none; margin-top: 0; } }

/* ---------- Servicios: composición de la cabecera (la imagen queda alineada al contenedor, no pegada al borde) ---------- */
.sv-hero { min-height: clamp(520px, 78vh, 720px); }
.sv-cerebro { top: 1rem; bottom: 1.2rem; right: calc((100% - min(1280px, 92%)) / 2); width: min(44%, 620px); }
@media (max-width: 900px) { .sv-cerebro { top: auto; bottom: auto; right: auto; } .sv-hero { min-height: 0; } }
.sv-poder { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

/* ---------- Servicios: coreografía de entrada, en orden y sin repetir el mismo gesto ---------- */
@keyframes sv-sube { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes sv-izq { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes sv-der { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes sv-barrido { from { opacity: 0.2; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes sv-zoom { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes sv-linea { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes sv-pop { 0% { opacity: 0; transform: scale(0.3) rotate(-25deg); } 70% { opacity: 1; transform: scale(1.15) rotate(4deg); } 100% { opacity: 1; transform: none; } }
@keyframes sv-pegar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cabecera, por orden: título (letras) > texto > frase > servicios > botón */
.sv-hero .sv-lead { animation: sv-sube 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 0.85s backwards; }
.sv-hero .sv-poder { animation: sv-izq 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) 1.15s backwards; }
.sv-hero .sv-glance li { animation: sv-barrido 0.55s cubic-bezier(0.3, 0.7, 0.3, 1) backwards; }
.sv-hero .sv-glance li:nth-child(1) { animation-delay: 1.35s; } .sv-hero .sv-glance li:nth-child(2) { animation-delay: 1.45s; }
.sv-hero .sv-glance li:nth-child(3) { animation-delay: 1.55s; } .sv-hero .sv-glance li:nth-child(4) { animation-delay: 1.65s; }
.sv-hero .sv-glance li:nth-child(5) { animation-delay: 1.75s; } .sv-hero .sv-glance li:nth-child(6) { animation-delay: 1.85s; }
.sv-hero .sv-plan { animation: sv-zoom 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) 2.05s backwards; }

/* Tarjetas: cada columna entra distinto (izquierda, abajo, derecha) y por dentro se arman en secuencia */
.hw-js .sv-card:not(.sv-card-in) { opacity: 0; }
.sv-card.sv-card-in[data-col="0"] { animation: sv-izq 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) backwards; }
.sv-card.sv-card-in[data-col="1"] { animation: sv-sube 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) backwards; }
.sv-card.sv-card-in[data-col="2"] { animation: sv-der 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) backwards; }
.sv-card.sv-card-in .sv-icon { animation: sv-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--d, 0ms) + 0.3s) backwards; }
.sv-card.sv-card-in .sv-badge { animation: sv-zoom 0.5s ease calc(var(--d, 0ms) + 0.6s) backwards; }
.sv-card.sv-card-in .sv-desc { animation: sv-pegar 0.6s ease calc(var(--d, 0ms) + 0.75s) backwards; }
.sv-card.sv-card-in .sv-features li { animation: sv-linea 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0ms) + 0.95s + var(--k, 0) * 90ms) backwards; }
.sv-card.sv-card-in .sv-add { animation: sv-barrido 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--d, 0ms) + 1.4s) backwards; }
@media (prefers-reduced-motion: reduce) {
  .sv-hero .sv-lead, .sv-hero .sv-poder, .sv-hero .sv-glance li, .sv-hero .sv-plan, .sv-card.sv-card-in, .sv-card.sv-card-in * { animation: none !important; }
  .hw-js .sv-card:not(.sv-card-in) { opacity: 1; }
}

/* el nombre de cada tarjeta se escribe después de que la tarjeta entra */
.sv-card h3.sv-in .sv-ch { animation-delay: calc(var(--d, 0ms) + 0.5s + var(--i) * 42ms); }

/* Servicios: texto más a la izquierda y el cubo más a la derecha (contenedor más ancho solo en esta cabecera) */
.sv-hero:has(#cerebro3d) .sv-inner { max-width: min(1560px, 95%); }
.sv-hero:has(#cerebro3d) .sv-cerebro { right: calc((100% - min(1560px, 95%)) / 2); width: min(46%, 700px); }
@media (max-width: 900px) { .sv-hero:has(#cerebro3d) .sv-cerebro { right: auto; width: 100%; } }

/* Servicios: misma posición que el slider del inicio (texto alineado con el logo, imagen en la zona derecha) */
.sv-hero:has(#cerebro3d) .sv-inner { max-width: min(1680px, 94%); padding: 0 40px; box-sizing: border-box; }
.sv-hero:has(#cerebro3d) .sv-cerebro { left: 46%; right: auto; width: 50%; }
@media (max-width: 900px) {
  .sv-hero:has(#cerebro3d) .sv-inner { padding: 0 1.2rem; }
  .sv-hero:has(#cerebro3d) .sv-cerebro { left: auto; width: 100%; }
}

/* Servicios: cabecera más baja para que se alcance a ver la sección de servicios debajo */
.sv-hero:has(#cerebro3d) { min-height: 0; height: clamp(400px, 52vh, 480px); padding: 2.6rem 0 1.6rem; display: flex; align-items: center; }
.sv-hero:has(#cerebro3d) .sv-inner { width: 100%; }
.sv-hero:has(#cerebro3d) .sv-title { margin-bottom: 1rem; }
.sv-hero:has(#cerebro3d) .sv-lead { margin-bottom: 1.4rem; }
.sv-hero:has(#cerebro3d) .sv-glance { margin-bottom: 0; }
.sv-hero:has(#cerebro3d) .sv-cerebro { top: 0.4rem; bottom: 0.4rem; }
.sv-hero:has(#cerebro3d) + .sv-main { padding-top: clamp(2rem, 4vw, 3.2rem); }
@media (max-width: 900px) { .sv-hero:has(#cerebro3d) { height: auto; display: block; padding: 3rem 0 2rem; } }
.sv-hero:has(#cerebro3d) + .sv-main .sv-inner { max-width: min(1680px, 94%); padding: 0 40px; box-sizing: border-box; }
@media (max-width: 900px) { .sv-hero:has(#cerebro3d) + .sv-main .sv-inner { padding: 0 1.2rem; } }
.sv-hero:has(#cerebro3d) { height: clamp(440px, 60vh, 540px); padding: 3rem 0 2rem; }
@media (max-width: 900px) { .sv-hero:has(#cerebro3d) { height: auto; } }
.sv-hero:has(#cerebro3d) { height: clamp(500px, 70vh, 640px); }
@media (max-width: 900px) { .sv-hero:has(#cerebro3d) { height: auto; } }

/* bordes suaves del lienzo 3D: nada se corta en seco arriba ni abajo */
.sv-cerebro canvas { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 88%, transparent 100%); }

/* ---------- Nosotros: trayectoria en línea de tiempo horizontal (los años van a escala: 2020, 2024, 2026) ---------- */
.ns-historia-grid { grid-template-columns: 1fr; gap: clamp(2.2rem, 5vw, 3.6rem); align-items: start; }
.ns-historia-text p { max-width: 46rem; }
.ns-timeline { display: block; position: relative; padding: 0; height: clamp(12rem, 20vw, 14rem); margin: 0 1.2rem; --p: 0; }
.ns-timeline::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 3px; transform: scaleX(var(--p)); transform-origin: left; background: var(--brand-grad); box-shadow: 0 0 14px rgba(236, 72, 153, 0.7); }
.ns-timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 3px; background: rgba(255, 255, 255, 0.12); z-index: -1; }
.ns-timeline li { position: absolute; left: var(--x, 0%); top: 0; padding-top: 2.4rem; width: max-content; max-width: 15rem; transform: translateX(0); }
.ns-timeline li:nth-child(2) { transform: translateX(-50%); text-align: center; }
.ns-timeline li:nth-child(3) { transform: translateX(-100%); text-align: right; }
.ns-timeline li.rv { opacity: 0; }
.ns-timeline li.rv.rv-in { opacity: 1; }
.ns-timeline li:nth-child(2).rv:not(.rv-in) { transform: translateX(-50%) translateY(18px); }
.ns-timeline li:nth-child(3).rv:not(.rv-in) { transform: translateX(-100%) translateY(18px); }
.ns-timeline li:nth-child(1).rv:not(.rv-in) { transform: translateY(18px); }
.ns-timeline li::before { left: 0; top: 0; }
.ns-timeline li:nth-child(2)::before { left: calc(50% - 7px); }
.ns-timeline li:nth-child(3)::before { left: auto; right: 0; }
.ns-timeline .ns-year { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.ns-timeline .ns-event { max-width: 14rem; }
.ns-timeline li:nth-child(2) .ns-event { margin-left: auto; margin-right: auto; }
.ns-timeline li:nth-child(3) .ns-event { margin-left: auto; }
@media (max-width: 700px) {
  .ns-timeline { height: auto; margin: 0; padding-left: 2rem; display: grid; gap: 2.2rem; }
  .ns-timeline::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; transform: scaleY(var(--p)); transform-origin: top; }
  .ns-timeline::after { display: none; }
  .ns-timeline li, .ns-timeline li:nth-child(n) { position: relative; left: auto; padding-top: 0; transform: none !important; text-align: left; max-width: none; width: auto; }
  .ns-timeline li::before, .ns-timeline li:nth-child(n)::before { left: -2rem; right: auto; top: 0.55rem; }
  .ns-timeline li:nth-child(n) .ns-event { margin: 0.4rem 0 0; max-width: none; }
}

/* ---------- Nosotros: acabado elegante (misma paleta, tonos más sobrios y trazos finos) ---------- */
.ns-historia { --ns-grad: linear-gradient(90deg, #a999d8, #8fa6d6 55%, #cfa3c2); --ns-acento: #cfa3c2; }
.ns-timeline::before { height: 1px; top: 8px; background: var(--ns-grad); box-shadow: 0 0 10px rgba(170, 160, 220, 0.35); }
.ns-timeline::after { height: 1px; top: 8px; background: rgba(255, 255, 255, 0.14); }
.ns-timeline li::before, .ns-timeline li.rv-in::before { width: 11px; height: 11px; border: 1px solid var(--ns-acento); background: #0b0914; box-shadow: 0 0 0 4px rgba(207, 163, 194, 0.08); }
.ns-timeline li.rv-in::before { background: var(--ns-acento); box-shadow: 0 0 12px 1px rgba(207, 163, 194, 0.45); }
.ns-timeline .ns-year { font-weight: 400; letter-spacing: 0.02em; background: var(--ns-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.ns-timeline .ns-event { color: rgba(245, 243, 255, 0.68); font-size: 0.98rem; letter-spacing: 0.02em; }
.ns-timeline li.rv-in .ns-year { -webkit-text-stroke-color: transparent; }

/* cuadro de años de la cabecera: más sobrio */
.ns-anios { border: 1px solid rgba(190, 175, 235, 0.22); background: rgba(10, 8, 22, 0.55); }
.ns-anios::before { background: linear-gradient(180deg, transparent, rgba(170, 160, 220, 0.08), transparent); }
.ns-anios-cuenta { font-weight: 400; background: linear-gradient(90deg, #b3a5e0, #93abd8 55%, #d3a9c6); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 14px rgba(170, 160, 220, 0.22)); }
.ns-anios.listo .ns-anios-cuenta { animation: none; }
.ns-anios-relleno { background: linear-gradient(90deg, #a999d8, #cfa3c2); box-shadow: 0 0 8px rgba(207, 163, 194, 0.4); }
.ns-anios-linea { height: 1px; }
.ns-anios-linea b { color: rgba(245, 243, 255, 0.6); font-weight: 400; letter-spacing: 0.05em; }
.ns-anios-linea b::before { background: #cfa3c2; box-shadow: 0 0 6px rgba(207, 163, 194, 0.5); width: 6px; height: 6px; }
.ns-anios-mas { font-weight: 400; color: rgba(245, 243, 255, 0.85); }
.ns-anios-txt { color: rgba(245, 243, 255, 0.7); letter-spacing: 0.02em; }

/* Nosotros: cabecera e historia en una sola sección */
.ns-hero.ns-historia { padding-bottom: clamp(3rem, 6vw, 5rem); }
.ns-hero-grid { grid-template-columns: 1fr minmax(0, 0.9fr); }
.ns-fusion { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(190, 175, 235, 0.14); }
.ns-fusion .sv-h2 { margin-bottom: 1.2rem; }

/* Contacto: formulario directo, título y descripción a la izquierda */
.ct-main { padding-top: clamp(5.5rem, 8vw, 7rem); background: radial-gradient(70% 60% at 85% 0%, rgba(139, 92, 246, 0.22), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(236, 72, 153, 0.12), transparent 70%), #07060d; }
.ct-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.ct-titulo { font-size: clamp(2.2rem, 4.2vw, 3.6rem); margin-bottom: 1rem; }
.ct-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); margin-bottom: 2rem; max-width: 28rem; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } .ct-main { padding-top: 5rem; } }

/* ---------- Contacto: entrada en orden, cada elemento con su gesto ---------- */
.ct-titulo.sv-ltr .sv-ch { animation-delay: calc(0.15s + var(--i) * 40ms); }
.ct-lead { animation: sv-sube 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 1.0s backwards; }
.ct-form-col .sv-h2 { animation: sv-der 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 0.35s backwards; }
.ct-form-col .sv-sub { animation: sv-sube 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) 0.65s backwards; }
.ct-form-col .contacto-form-group { animation: sv-pegar 0.6s ease backwards; }
.ct-form-col .contacto-form-row:nth-of-type(1) .contacto-form-group:nth-child(1) { animation-delay: 1.1s; }
.ct-form-col .contacto-form-row:nth-of-type(1) .contacto-form-group:nth-child(2) { animation-delay: 1.2s; }
.ct-form-col .contacto-form-row:nth-of-type(2) .contacto-form-group:nth-child(1) { animation-delay: 1.3s; }
.ct-form-col .contacto-form-row:nth-of-type(2) .contacto-form-group:nth-child(2) { animation-delay: 1.4s; }
.ct-form-col .contacto-form-full { animation: sv-pegar 0.6s ease 1.5s backwards; }
.ct-form-col .contacto-submit-btn { animation: sv-barrido 0.7s cubic-bezier(0.3, 0.7, 0.3, 1) 1.8s backwards; }
/* la línea de cada campo se dibuja al enfocarlo */
.contacto-form-line { transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .ct-lead, .ct-form-col * { animation: none !important; } }

/* El sitio ya es oscuro: así el navegador no le aplica su modo oscuro automático (que apagaba el logo y los títulos con degradado) */
:root { color-scheme: dark; }

/* Contacto: fondo más claro (mismo violeta y rosa, base menos negra) */
.ct-main { background: radial-gradient(75% 65% at 85% 0%, rgba(139, 92, 246, 0.42), transparent 72%), radial-gradient(60% 55% at 0% 100%, rgba(236, 72, 153, 0.24), transparent 72%), radial-gradient(50% 50% at 50% 50%, rgba(59, 130, 246, 0.10), transparent 75%), #15102c; }
.ct-main::before { opacity: 0.6; }
.ct-info .ct-list > li > a, .ct-info .ct-horario { background: rgba(30, 22, 62, 0.75); border-color: rgba(167, 139, 250, 0.32); }
.ct-form-col .contacto-form { background: linear-gradient(180deg, rgba(34, 26, 70, 0.78), rgba(22, 16, 48, 0.78)); border-color: rgba(167, 139, 250, 0.28); }

/* Contacto: formulario y tarjetas en tono oscuro para que se distingan del fondo claro */
.ct-info .ct-list > li > a, .ct-info .ct-horario { background: rgba(8, 6, 18, 0.88); border-color: rgba(167, 139, 250, 0.35); }
.ct-form-col .contacto-form { background: linear-gradient(180deg, rgba(10, 8, 22, 0.92), rgba(6, 5, 14, 0.92)); border-color: rgba(167, 139, 250, 0.32); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }

/* Contacto: servicios seleccionados en el mismo tono oscuro, con etiquetas sobrias */
.ct-form-col .servicios-cotizar-wrapper { background: rgba(20, 15, 40, 0.85); border: 1px solid rgba(167, 139, 250, 0.3); }
.ct-form-col .servicios-cotizar-title { color: #d8cdfa; font-weight: 500; }
.ct-form-col .servicio-tag { background: rgba(8, 6, 18, 0.9); border: 1px solid rgba(167, 139, 250, 0.4); color: rgba(245, 243, 255, 0.9); }
.ct-form-col .servicio-tag:hover { border-color: #cfa3c2; background: rgba(30, 22, 62, 0.9); }
.ct-form-col .servicio-tag i { color: #b9a8e8; }

/* Contacto: redes sociales con su color */
.ct-social a .fa-facebook-f { color: #38bdf8; }
.ct-social a .fa-instagram { color: #ec4899; }
.ct-social a .fa-whatsapp { color: #25d366; }
.ct-social a .fa-envelope { color: #ef4444; }
.ct-social a:hover { filter: brightness(1.25) drop-shadow(0 0 8px currentColor); }

/* Contacto: contenedor más ancho, alineado con el logo del menú, y más aire entre columnas */
.ct-main .sv-inner { max-width: min(1680px, 94%); padding: 0 40px; box-sizing: border-box; }
.ct-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); }
.ct-info { max-width: 34rem; }
@media (max-width: 900px) { .ct-main .sv-inner { padding: 0 1.2rem; } .ct-grid { grid-template-columns: 1fr; gap: 2.5rem; } .ct-info { max-width: none; } }

/* Contacto: título y descripción más compactos */
.ct-info { max-width: 38rem; }
.ct-titulo { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.ct-lead { font-size: 1rem; line-height: 1.5; margin-bottom: 1.5rem; max-width: 30rem; }
.ct-info .ct-list { margin-bottom: 1.6rem; gap: 0.7rem; }

/* Contacto: formulario más compacto y alineado con el título de la izquierda */
.ct-form-col { padding-top: 0.3rem; }
.ct-form-col .sv-h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.ct-form-col .sv-sub { font-size: 1rem; margin-bottom: 1.2rem; }
.ct-form-col .contacto-form { padding: 1.4rem 1.8rem 1.6rem; max-width: 40rem; }
.ct-form-col .contacto-form-row { gap: 1.6rem; margin-bottom: 0.4rem; }
.ct-form-col .contacto-form textarea { min-height: 5.5rem; }
.ct-form-col .contacto-submit-btn { margin-top: 0.6rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }

/* Contacto en celular y tablet: primero el formulario, abajo el título y los datos */
@media (max-width: 900px) {
  .ct-form-col { order: -1; }
  .ct-info { order: 1; }
}

/* Nosotros: los números en celeste, más vivos */
.ns-anios-cuenta { background: linear-gradient(180deg, #bae6fd, #38bdf8 70%, #0ea5e9); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.4)); }
.ns-timeline .ns-year { background: linear-gradient(180deg, #bae6fd, #38bdf8 75%, #0ea5e9); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3)); }
.ns-anios-linea b { color: #7dd3fc; }
.ns-anios-mas { color: #e0f2fe; }

/* ---------- Plan: coreografía de entrada, en orden y sin repetir el mismo gesto ---------- */
.pl-hero .sv-lead { animation: sv-sube 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 0.85s backwards; }
.pl-hero .hw-btn { animation: sv-zoom 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) 1.2s backwards; }
.hw-js .pl-card:not(.pl-in) { opacity: 0; }
.pl-card.pl-in { animation: sv-sube 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) backwards; }
.pl-card.pl-in[data-col="0"] { animation-name: sv-izq; }
.pl-card.pl-in[data-col="3"] { animation-name: sv-der; }
.pl-card.pl-in .pl-badge { animation: sv-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--d, 0ms) + 0.6s) backwards; }
.pl-card.pl-in h2 { animation: sv-barrido 0.7s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--d, 0ms) + 0.35s) backwards; }
.pl-card.pl-in .pl-sub, .pl-card.pl-in .pl-desc, .pl-card.pl-in .pl-inc { animation: sv-pegar 0.6s ease calc(var(--d, 0ms) + 0.6s) backwards; }
.pl-card.pl-in .pl-feats li { animation: sv-linea 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0ms) + 0.85s + var(--k, 0) * 90ms) backwards; }
.pl-card.pl-in .pl-btn { animation: sv-barrido 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--d, 0ms) + 1.5s) backwards; }
.hw-js .pl-help:not(.pl-in), .hw-js .pl-q:not(.pl-in), .hw-js .pl-faq .sv-h2:not(.pl-in) { opacity: 0; }
.pl-help.pl-in { animation: sv-zoom 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) backwards; }
.pl-faq .sv-h2.pl-in { animation: sv-izq 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) backwards; }
.pl-q.pl-in { animation: sv-linea 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) backwards; }
@media (prefers-reduced-motion: reduce) {
  .pl-hero .sv-lead, .pl-hero .hw-btn, .pl-card.pl-in, .pl-card.pl-in *, .pl-help.pl-in, .pl-q.pl-in, .pl-faq .sv-h2.pl-in { animation: none !important; }
  .hw-js .pl-card:not(.pl-in), .hw-js .pl-help:not(.pl-in), .hw-js .pl-q:not(.pl-in), .hw-js .pl-faq .sv-h2:not(.pl-in) { opacity: 1; }
}

/* Plan Libre: la etiqueta "Para empresas" se destaca */
.pl-badge.pl-badge-alt { background: linear-gradient(100deg, #ec4899, #8b5cf6); border: 0; color: #fff; font-weight: 600; letter-spacing: 0.04em; padding: 0.5rem 1.2rem; font-size: 0.9rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 8px 24px -6px rgba(236, 72, 153, 0.7); animation: pl-brilla 3.2s ease-in-out infinite; }
@keyframes pl-brilla { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 8px 30px -4px rgba(236, 72, 153, 0.95); filter: brightness(1.12); } }
.pl-libre { border-color: rgba(236, 72, 153, 0.7); box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.25), 0 24px 60px -30px rgba(236, 72, 153, 0.6); }
.pl-card.pl-in .pl-badge.pl-badge-alt { animation: sv-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--d, 0ms) + 0.6s) backwards, pl-brilla 3.2s ease-in-out calc(var(--d, 0ms) + 1.4s) infinite; }
@media (prefers-reduced-motion: reduce) { .pl-badge.pl-badge-alt, .pl-card.pl-in .pl-badge.pl-badge-alt { animation: none !important; } }

/* ---------- Nosotros en celular y tablet: el título y el contador de años van uno bajo el otro, sin aplastarse ---------- */
@media (max-width: 900px) {
  .ns-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .ns-hero-text .sv-title { overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .ns-anios { padding: 1.4rem 0.8rem 1.2rem; }
  .ns-anios-cuenta { font-size: clamp(4.6rem, 26vw, 6.6rem); }
  .ns-anios-txt { margin: 0.6rem 0 1.8rem; font-size: 0.98rem; }
  .ns-anios-linea { margin: 0 1.1rem 1.6rem; }
  .ns-anios-linea b { font-size: 0.78rem; }
  .ns-anios-linea b:first-of-type { transform: none; }
  .ns-anios-linea b:last-of-type { transform: translateX(-100%); }
}

/* ---------- Formulario de contacto: un solo espaciado entre campos, se acomoda a cualquier ancho ---------- */
.ct-form-col .contacto-form { display: grid; gap: clamp(1.1rem, 3.2vw, 1.7rem); box-sizing: border-box; width: 100%; min-width: 0; }
.ct-form-col .contacto-form-row {
  display: grid; margin: 0; gap: inherit;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));   /* dos columnas si caben, una si no */
}
.ct-form-col .contacto-form > .contacto-form-group,
.ct-form-col .contacto-form-row > .contacto-form-group { margin: 0; min-width: 0; }
.ct-form-col .contacto-form input,
.ct-form-col .contacto-form textarea { box-sizing: border-box; padding: 0.85rem 0; font-size: 1rem; }
.ct-form-col .contacto-form textarea { display: block; min-height: 7.5rem; resize: vertical; }
.ct-form-col .contacto-form label { top: 0.85rem; }
.ct-form-col .contacto-submit-btn { width: 100%; margin: 0.2rem 0 0; }
.ct-form-col .servicios-cotizar-wrapper { margin: 0; }
@media (max-width: 900px) {
  .ct-main { padding-top: 1rem; }
  .ct-grid { gap: 1.6rem; }
  .ct-form-col .sv-h2 { margin-top: 0; }
  .ct-form-col .sv-sub { margin-bottom: 1.2rem; }
  .ct-form-col .contacto-form { padding: 1.4rem 1.2rem; }
}

/* ---------- Tablets y celulares: sin los difuminados gigantes ni fondos que se mueven ----------
   Un círculo de 700 px con blur(110px) que además se mueve se vuelve a pintar entero en cada cuadro: es lo que más cuesta en una tablet.
   Se cambia por el mismo resplandor hecho con un degradado (se ve casi igual) y quieto. */
.media .hw-blob { filter: none; animation: none; will-change: auto; }
.media .hw-blob-1 { background: radial-gradient(circle, rgba(124, 58, 237, 0.7) 0%, transparent 68%); }
.media .hw-blob-2 { background: radial-gradient(circle, rgba(37, 99, 235, 0.65) 0%, transparent 68%); }
.media .hw-blob-3 { background: radial-gradient(circle, rgba(219, 39, 119, 0.6) 0%, transparent 68%); }
.media .sv-glow { filter: none; background: radial-gradient(circle, rgba(59, 130, 246, 0.9) 0%, transparent 68%); }
.media .tc::before, .media .tc::after, .media .ct-main::before { filter: none; animation: none; }
.media .ns-anios::before, .media .pl-featured { animation: none; }
.media .hw-line-grad > span, .media .hw-slide .hw-line-grad > span { filter: none; }

/* Redes: todas del mismo color y tamaño */
.nav-social a { color: #c4b5fd; }
.nav-social a i { font-size: 1em; }

/* Selector de idioma junto a las redes sociales */
.nav-idioma { position: relative; display: flex; align-items: center; flex: none; }
.ni-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.35rem; border: 1px solid rgba(139, 92, 246, 0.4); border-radius: 0.4rem; background: rgba(139, 92, 246, 0.1); color: #c4b5fd; cursor: pointer; font: inherit; line-height: 1; transition: border-color 0.2s, background 0.2s; }
.ni-btn:hover, .ni-btn:focus-visible, .nav-idioma.abierto .ni-btn { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.1); }
.ni-btn .fi { width: 1.25rem; height: 0.94rem; border-radius: 2px; background-size: cover; }
.ni-flecha { font-size: 0.6rem; transition: transform 0.2s; }
.nav-idioma.abierto .ni-flecha { transform: rotate(180deg); }
.ni-menu { position: absolute; top: calc(100% + 0.7rem); right: 0; min-width: 10.5rem; padding: 0.4rem; border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 0.7rem; background: rgba(12, 9, 24, 0.97); backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); z-index: 1300; }
.ni-menu[hidden] { display: none; }
.nav-social .ni-op { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 0.5rem; font-size: 0.92rem; line-height: 1.2; color: rgba(245, 243, 255, 0.9); transform: none; }
.nav-social .ni-op:hover, .nav-social .ni-op:focus-visible { background: rgba(139, 92, 246, 0.22); color: rgba(245, 243, 255, 0.9); transform: none; }
.nav-social .ni-op .fi { width: 1.4rem; height: 1.05rem; border-radius: 2px; flex: none; background-size: cover; }
.nav-social .ni-activo { background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.22)); color: #fff; }
@media (max-width: 768px) {
  .ni-menu { right: auto; left: 50%; transform: translateX(-50%); }
  .main-nav .nav-social .ni-op { font-size: 1.1rem; }
}
