/* =======================================================
   NoOne — styles.css (clean & optimized)
   Autor: Marcelo + asistente
   Notas:
   - Tipografías Poppins self-hosted (latin subset)
   - Variables, base, utilidades, componentes, secciones,
     modales, tooltips, performance y media queries.
======================================================= */

/* ===== Poppins self-hosted (latin subset) ===== */
@font-face{
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0180-024F;
}
@font-face{
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0180-024F;
}
@font-face{
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0180-024F;
}

/* -------------------------------------------------------
   Reset & Variables
--------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --bg-2: #0f0f0f;
  --panel: #111;
  --panel-2: #1a1a1a;
  --text: #f5f5f5;
  --muted: #A1A1AA;
  --accent: #A78BFA;
  --accent-2: #3B82F6;
  /* Escala de espaciados */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

/* -------------------------------------------------------
   Base tipográfica & enlaces
--------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 {
  font-weight: 700;
}
h1 {
  line-height: 1.1;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .25s ease;
}
a:hover {
  color: #A78BFA;
}

/* -------------------------------------------------------
   Utilidades
--------------------------------------------------------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-10) var(--space-5);
}
.morado {
  color: var(--accent);
}
.text-small {
  font-size: 1.2rem;
}
.justificado {
  text-align: justify;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------
   Componentes: botón, badge
--------------------------------------------------------*/
.btn{
  display: inline-block;
  margin-top: var(--space-5);
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: .3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}
.btn:hover{
  background: #6D28D9;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.60);
}

.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: 1.5px solid #3B3B3B;
  transition: .25s ease;
}
.btn-secondary:hover{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
}

.badge{
  display: inline-block;
  background: #27272A;
  color: #f5f5f5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  margin-bottom: var(--space-5);
}

/* -------------------------------------------------------
   Logo (anillo morado + gap + punto central)
--------------------------------------------------------*/
.logo {
  font-size: clamp(4.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
}
.logo .circle{
  --size: 1.2em;
  /* tamaño del círculo exterior */
  --ring: .25em;
  /* grosor del anillo exterior */
  --gap: .15em;
  /* franja TRANSPARENTE entre anillo y punto */
  --dot: #7c3aed;
  /* color del círculo pequeño (punto) */

  display: inline-block;
  width: var(--size);
  height: var(--size);
  margin: 0 .25em;
  border-radius: 50%;
  position: relative;
  vertical-align: -0.20em;
  background: transparent;
  border: var(--ring) solid #7c3aed;
  color: transparent;
  line-height: var(--size);
}
.logo .circle::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--size) - 2*var(--ring) - 2*var(--gap));
  height: calc(var(--size) - 2*var(--ring) - 2*var(--gap));
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--dot);
}

/* -------------------------------------------------------
   Sistema de íconos (SVG mask + currentColor)
--------------------------------------------------------*/
.icon {
  display: inline-block;
  width: 2.5em;
  height: 2.5em;
  background-color: currentColor;
  color: #A78BFA;
  /* color por defecto (se puede sobreescribir) */
  vertical-align: -0.15em;
}
.icon-whatsapp {
  background-color: #fff;
} /* pictograma blanco dentro de botón verde */

@supports (-webkit-mask: url("")) or (mask: url("")) {
  .icon{
    -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}
  .icon-brain            {
  -webkit-mask-image: url('/assets/icons/brain.svg');
  mask-image: url('/assets/icons/brain.svg');
}
  .icon-compass-drafting {
  -webkit-mask-image: url('/assets/icons/compass-drafting.svg');
  mask-image: url('/assets/icons/compass-drafting.svg');
}
  .icon-file-lines       {
  -webkit-mask-image: url('/assets/icons/file-lines.svg');
  mask-image: url('/assets/icons/file-lines.svg');
}
  .icon-rocket           {
  -webkit-mask-image: url('/assets/icons/rocket.svg');
  mask-image: url('/assets/icons/rocket.svg');
}
  .icon-hand-pointer     {
  -webkit-mask-image: url('/assets/icons/hand-pointer.svg');
  mask-image: url('/assets/icons/hand-pointer.svg');
}
  .icon-whatsapp         {
  -webkit-mask-image: url('/assets/icons/whatsapp.svg');
  mask-image: url('/assets/icons/whatsapp.svg');
}
  .icon-laptop-code      {
  -webkit-mask-image: url('/assets/icons/laptop-code.svg');
  mask-image: url('/assets/icons/laptop-code.svg');
}
  .icon-magnifying-glass {
  -webkit-mask-image: url('/assets/icons/magnifying-glass.svg');
  mask-image: url('/assets/icons/magnifying-glass.svg');
}
  .icon-keyboard         {
  -webkit-mask-image: url('/assets/icons/keyboard.svg');
  mask-image: url('/assets/icons/keyboard.svg');
}
  .icon-screwdriver-wrench {
  -webkit-mask-image: url('/assets/icons/screwdriver-wrench.svg');
  mask-image: url('/assets/icons/screwdriver-wrench.svg');
}
  .icon-xmark            {
  -webkit-mask-image: url('/assets/icons/xmark.svg');
  mask-image: url('/assets/icons/xmark.svg');
}
  .icon-cart-shopping         {
  -webkit-mask-image: url('/assets/icons/cart-shopping.svg');
  mask-image: url('/assets/icons/cart-shopping.svg');
}
}

/* -------------------------------------------------------
   Hero
--------------------------------------------------------*/
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--space-5);
  color: #fff;
  background: #000;
  /* fallback */
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.20));
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
/* mismo ancho para ambos botones en el hero */
.hero .btn,
.hero .btn-secondary {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
  width: clamp(260px, 70vw, 340px);
  /* <- ANCHO IGUAL */
  text-decoration: none;
}

.hero p{
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: var(--space-4) 0 var(--space-7);
  color: #E4E4E7;
}
/* Evita conflicto visual con AOS en el hero */
.hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Hero tag secundario */
.hero p.morado.text-small {
  color: var(--accent);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem) !important;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* -------------------------------------------------------
   About Us
--------------------------------------------------------*/
.about-us{
  position: relative;
  z-index: 1;
  background-image: url('../assets/img/haz-horizontal.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-us::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.81);
}
.about-us .container{
  position: relative;
  z-index: 2;
}
.about-us h3, .about-us ul, .about-us p {
  text-align: center;
  color: #fff;
  margin-bottom: var(--space-6);
}
/* Más espacio entre el h2 y el texto en #nosotros */
.about-us h2 {
  margin-bottom: var(--space-8);
  /* 32px según tu escala */
}
@media (max-width: 768px){
  .about-us h2 { margin-bottom: var(--space-6);
} /* 24px en móvil (opcional) */
}

/* -------------------------------------------------------
   Servicios
--------------------------------------------------------*/
.servicios{
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  background-image: url('../assets/img/ondas-colores.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.servicios::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.50);
}
.servicios h2{
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.servicios .grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-10);
  align-items: stretch;
}
.servicios .card{
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.servicios .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: rgba(34, 34, 34, 0.95);
}
.servicios .card h3{
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.servicios .card p{
  color: #E5E7EB;
  text-align: left;
  line-height: 1.7;
}
.servicios h3 .icon {
  width: 2.5em;
  height: 2.5em;
  color: var(--accent);
  margin: 0;
}

/* -------------------------------------------------------
   Feature (Tu web en 4 días)
--------------------------------------------------------*/
.feature {
  background: var(--bg);
}
.feature-card{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-12);
}
.feature-card.reverse{
  flex-direction: row-reverse;
}

.feature-text{
  max-width: 1200px;
  margin: var(--space-5) auto;
  padding: var(--space-5) var(--space-5) 0;
  text-align: center;
}
.feature-text p{
  color: #E4E4E7;
}

/* Grilla de los días */
.feature-flow{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: var(--space-8);
  width: 100%;
  max-width: 1200px;
  margin: var(--space-10) auto 0;
  padding: 0;
}

/* Tarjetas de los días */
.flow-step{
  position: relative;
  cursor: pointer;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-2);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.flow-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.25);
}
.flow-step i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 5px;
}
.flow-step h3 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--accent);
}
.flow-step p  {
  font-size: .95rem;
  color: #fff;
  margin-top: 10px;
}
.flow-step .icon {
  width: 2.5em;
  height: 2.5em;
  opacity: .95;
} /* FIX: width con unidad */

/* Fondo con overlay por día */
.day-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url('../assets/img/dia1-v2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.day-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url('../assets/img/dia2-v2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.day-3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url('../assets/img/dia3-v2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.day-4 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url('../assets/img/dia4-v2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Indicador de clic (solo pointer fino / hover) */
@media (hover:hover) and (pointer:fine) {
  .flow-step .click-hint {
    position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 2;
  font-size: 1.125rem;
}
  .flow-step:hover .click-hint {
  opacity: 1;
  transform: translateY(0) scale(1);
}
}

/* “Ver más” pill solo en mobile */
.flow-step .more-mobile {
  display: none;
}
@media (max-width: 768px) {
  .flow-step .click-hint { display: none !important;
}
  .flow-step .more-mobile{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
  .flow-step .more-mobile::after {
  content: "›";
  font-size: 1rem;
}
}

/* -------------------------------------------------------
   Testimonios
--------------------------------------------------------*/
.testimonios{
  background: #111;
}
.testimonios h2{
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}
.testimonios .grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
@media (min-width: 1200px) {
  .testimonios .grid { grid-template-columns: repeat(4, 1fr);
}
  .testimonios .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
}
.testimonios .card{
  background: #1a1a1a;
  padding: var(--space-6);
  border-radius: 12px;
  font-style: italic;
}
.testimonios figcaption{
  margin-top: var(--space-3);
  color: var(--muted);
  font-style: normal;
}

/* -------------------------------------------------------
   Clientes (si se usa)
--------------------------------------------------------*/
.clientes{
  background: var(--bg-2);
}
.clientes h2{
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}
.clientes .logos{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-7);
  color: var(--muted);
  font-weight: 600;
}

/* -------------------------------------------------------
   Planes / Pricing
--------------------------------------------------------*/
.planes{
  background: var(--bg);
}
.planes .subtle{
  color: #E4E4E7;
  margin-top: 6px;
}

.planes-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
/* ===== Planes: 4 columnas en desktop ===== */
@media (min-width: 1100px) {
  .planes-grid{
    grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  /* un poco menos de gap para que quepan */
}
  .plan-card{
  padding: var(--space-7) var(--space-6);
  /* compacta leve el padding */
}
}

/* (Opcional) Más ancho útil en pantallas grandes */
@media (min-width: 1280px){
  .container{ max-width: 1280px;
}     /* antes 1200px */
  .planes-grid{
  gap: var(--space-8);
} /* recupera el gap normal */
}



.plan-card{
  position: relative;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid #222;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-7);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.plan-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.plan-ribbon{
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
}

.plan-head{
  text-align: center;
}
.plan-head h3{
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.plan-sub{
  color: #A1A1AA;
  font-size: .95rem;
}

.plan-price{
  text-align: center;
  margin-bottom: 4px;
}
.price-currency{
  font-size: 1.15rem;
  opacity: .95;
  vertical-align: top;
}
.price-value{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: .5px;
}
.price-note{
  display: block;
  color: #A1A1AA;
  margin-top: 2px;
}
.plan-price .from{
  display: inline-block;
  margin-right: 6px;
  color: #CFCFD4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.plan-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #E5E7EB;
  text-align: left;
}



.plan-card.destacado{
  border-color: color-mix(in oklab, var(--accent) 40%, #222);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.plan-card.destacado .plan-ribbon{
  background: linear-gradient(135deg, var(--accent), #7c3aed);
}

.plan-ctas{
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.plan-card .btn{
  margin-top: auto;
  align-self: center;
}

/* -------------------------------------------------------
   FAQ (details/summary accesible)
--------------------------------------------------------*/
.faq {
  background: var(--bg);
}
.faq .container {
  text-align: left;
}
.faq h2 {
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: var(--space-8);
}

.faq-item{
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid #222;
  border-radius: 14px;
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker{
  display: none;
}
.faq-caret {
  flex: none;
  transition: transform .2s ease;
  opacity: .9;
}
.faq-item[open] .faq-caret {
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 20px 16px 20px;
  color: #CFCFD4;
  line-height: 1.7;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* -------------------------------------------------------
   CTA
--------------------------------------------------------*/
.cta{
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: var(--space-20) var(--space-5);
  background-size: cover;
  background-position: bottom;
}
.cta::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.30);
}
.cta h2{
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: var(--space-7);
}
.cta .btn {
  position: relative;
  z-index: 2;
}

/* -------------------------------------------------------
   Footer
--------------------------------------------------------*/
.footer{
  background: #0a0a0a;
  text-align: center;
  padding: var(--space-5);
  font-size: .9rem;
  color: #aaa;
}

/* -------------------------------------------------------
   WhatsApp sticky
--------------------------------------------------------*/
.wa-sticky{
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 950;
}
.wa-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.wa-btn i{
  font-size: 28px;
}

@media (prefers-reduced-motion: no-preference){
  .wa-btn{ animation: wa-pulse 2.2s ease-out .8s 3;
}
  @keyframes wa-pulse{
    0%{   box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70%{
  box-shadow: 0 0 0 16px rgba(37, 211, 102, 0.00);
}
    100%{
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.00);
}
  }
}
@media (max-width:480px){
  .wa-btn{ width: 52px;
  height: 52px;
} }

/* -------------------------------------------------------
   Modal
--------------------------------------------------------*/
.modal-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.80);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}
.modal-container.is-visible {
  opacity: 1;
  visibility: visible;
  display: flex;
  transition-delay: 0s;
}

.modal-content {
  background: var(--bg-2);
  color: var(--text);
  padding: 40px;
  border-radius: 12px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  width: min(92vw, 720px);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-container.is-visible .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 3;
}
.modal-close-btn:hover         {
  background: rgba(0, 0, 0, 0.50);
}
.modal-close-btn:active        {
  transform: scale(.97);
}
.modal-close-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.modal-close-btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.modal-header h3 {
  color: var(--accent-2);
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.modal-body p {
  text-align: left;
  line-height: 1.6;
  color: var(--muted);
}
.modal-body .modal-figure {
  margin: 0 0 1rem;
}
.modal-body .modal-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(55vh, 560px);
  object-fit: contain;
  border-radius: 12px;
}

/* -------------------------------------------------------
   Tooltips accesibles (.hint)
--------------------------------------------------------*/
.hint{
  display: inline-block;
  position: relative;
  margin-left: .35rem;
}
.hint > summary{
  list-style: none;
}
.hint > summary::-webkit-details-marker{
  display: none;
}

.hint > summary{
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  border-radius: 9999px;
  line-height: 1;
  font-size: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: help;
  transition: transform .1s ease, background .2s ease, border-color .2s ease;
}
.hint > summary:hover  {
  background: rgba(255, 255, 255, 0.18);
}
.hint > summary:active {
  transform: scale(.95);
}
.hint > summary:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hint > summary::before{
  content: "?";
  display: block;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-0.5px);
}

.hint-card{
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  max-width: min(34ch, 88vw);
  padding: .65rem .75rem;
  background: #A78BFA;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #e6e8ef;
  font-size: .92rem;
  line-height: 1.4;
  display: none;
  max-height: min(60vh, 28rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.hint[open] .hint-card{
  display: block;
}

.hint-card::before{
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgb(18 20 24 / .96);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hint-close-btn{
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .06s ease;
}
.hint-close-btn:hover{
  background: rgba(0, 0, 0, 0.50);
}
.hint-close-btn:active{
  transform: scale(.97);
}
.hint-close-btn .icon{
  width: 1em;
  height: 1em;
}

.hint--center .hint-card {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.hint--left   .hint-card {
  left: 0;
  right: auto;
  transform: none;
}
.hint--right  .hint-card {
  right: 0;
  left: auto;
  transform: none;
}
.hint--below .hint-card {
  top: calc(100% + 6px);
  bottom: auto;
}
.hint--above .hint-card {
  bottom: calc(100% + 6px);
  top: auto;
}
.hint--right  .hint-card::before{
  right: 14px;
  left: auto;
  transform: rotate(45deg);
}
.hint--left   .hint-card::before{
  left: 14px;
  transform: rotate(45deg);
}

/* -------------------------------------------------------
   Performance helpers
--------------------------------------------------------*/
/* Lazy backgrounds: evita que el CSS dispare la descarga */
.about-us.lazy-bg, .servicios.lazy-bg, .flow-step.lazy-bg {
  background-image: none !important;
}

/* Perf-3.2: Evitar trabajo de render offscreen */
.about-us, .servicios, .feature-flow, .feature-flow .flow-step, .faq, .cta {
  content-visibility: auto;
}

/* Tamaños intrínsecos para evitar CLS */
.about-us {
  contain-intrinsic-size: 800px 600px;
}
.servicios {
  contain-intrinsic-size: 900px 700px;
}
.feature-flow {
  contain-intrinsic-size: 500px;
}
.feature-flow .flow-step {
  contain-intrinsic-size: 360px 320px;
}
.faq {
  contain-intrinsic-size: 600px;
}
.cta {
  contain-intrinsic-size: 280px;
}

/* Respeta reduced-motion y desactiva AOS si aplica */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
}

/* -------------------------------------------------------
   Tipografía & párrafos responsivos
--------------------------------------------------------*/
p {
  text-align: justify;
  hyphens: none;
}
@media (max-width: 768px) {
  p { text-align: left;
} }

/* Desktop: párrafo justificado y lista en About */
.about-us p.justificado {
  text-align: justify;
  hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}
.about-us ul {
  padding-left: 1.2rem;
  margin-top: 12px;
  margin-bottom: 0;
}
/* Mobile: más aire en About */
@media (max-width: 768px) {
  .about-us p.justificado, .about-us ul { text-align: left;
  padding-left: 14px;
  padding-right: 14px;
  max-width: 92%;
  margin: 0 auto 14px auto;
}
  .about-us ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}
}

/* -------------------------------------------------------
   Breakpoints
--------------------------------------------------------*/
/* <=1024px */
@media (max-width: 1024px){
  .container{ padding: var(--space-16) var(--space-5);
}
  .feature-card{
  padding: var(--space-10);
}
}
/* <=900px */
@media (max-width: 900px){
  .servicios .grid{ grid-template-columns: 1fr;
}
}
/* <=768px */
@media (max-width: 768px){
  .container{ padding: 60px 16px 32px;
}
  .feature-card, .feature-card.reverse{
  flex-direction: column;
  text-align: center;
  gap: var(--space-8);
}
  .feature-text{
  text-align: center;
  padding-top: var(--space-4);
  margin: var(--space-4) auto;
}
  .feature-flow{
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
  #servicios > .container {
  padding-bottom: 24px;
} /* reduce salto entre secciones */
}
/* <=640px */
@media (max-width: 640px) {
  h1 { font-size: 1.5rem;
  line-height: 1.2;
}
}
/* <=480px */
@media (max-width: 480px){
  .btn{ padding: 10px 20px;
  font-size: .95rem;
}
}
/* Formulario en modal */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-field--full {
  grid-column: 1 / -1;
}

.form-field span {
  font-weight: 600;
  color: #e8e8ee;
  font-size: .95rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  color: #f5f5f5;
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent input {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 768px){
  .form-grid { grid-template-columns: 1fr;
}
}
/* === Accesibilidad (contraste AA) === */

/* 1) Morado de fondo más oscuro para que el texto blanco pase AA */
:root{
  /* nuevo tono “fuerte” para fondos morados */
  --accent-strong: #7c3aed;
  /* contraste con #fff ≈ 5.7: 1 (OK) */;
}

/* Botón principal, cintillo de plan, pill "ver más" en mobile */
.btn,
.plan-ribbon,
.flow-step .more-mobile{
  background: var(--accent-strong);
}
.btn:hover{
  background: #6D28D9;
} /* ya lo usabas como hover, también pasa AA */

/* 2) Texto morado sobre fondo oscuro: usa un morado más claro para AA */
:root{
  --accent-text: #6D28D9;
  /* contraste sobre #1a1a1a ≈ 6.4: 1 (OK) */;
}

/* Titulares dentro de los pasos y el summary de detalles */
.feature-flow .flow-step h3,
.plan-details > summary{
  color: var(--accent-text);
}

/* 3) (Opcional) WhatsApp: mejora contraste del ícono blanco sobre el verde */
.wa-btn{
  background: #128C7E;
} /* contraste con #fff ≈ 4.13:1 (pasa no-text 3:1) */
/* ==== AOS mínimo (fade-up) sin archivo externo ==== */
[data-aos]{
  opacity: 0;
  transform: translate3d(0,16px,0);
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.2,.8,.2,1);
  transition-duration: .6s;
}
/* ===== AOS mínimo (sin archivo externo) ===== */
[data-aos]{
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.2,.8,.2,1);
  transition-duration: .6s;
  /* AOS JS puede sobrescribir con data-aos-duration */
  will-change: opacity, transform;
}

/* Estados iniciales por efecto */
[data-aos="fade"]       {
  transform: none;
}
[data-aos="fade-up"]    {
  transform: translate3d(0, 16px, 0);
}
[data-aos="fade-down"]  {
  transform: translate3d(0, -16px, 0);
}
[data-aos="fade-left"]  {
  transform: translate3d(-16px, 0, 0);
}
[data-aos="fade-right"] {
  transform: translate3d(16px, 0, 0);
}

/* Estado animado (cuando AOS agrega la clase) */
.aos-animate{
  opacity: 1 !important;
  transform: none !important;
}

/* Accesibilidad: si el usuario pide menos animación, no animar */
@media (prefers-reduced-motion: reduce){
  [data-aos]{ opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
}

/* (Ya lo tienes) Evitar animación en el hero si lo deseas */
.hero [data-aos]{
  opacity: 1 !important;
  transform: none !important;
}
/* ===== Footer enriquecido ===== */
.footer {
  background: #0a0a0a;
  color: #CFCFD4;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  text-align: left;
}

/* Marca y áreas de servicio */
.footer-brand .logo {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}
.footer-areas{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #E5E7EB;
}
.footer-areas span{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  font-weight: 600;
  color: #E5E7EB;
}

/* Nav del footer */
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}
.footer-nav a{
  color: var(--accent-text, #A78BFA);
  /* alto contraste sobre fondo oscuro */
  text-decoration: none;
  font-weight: 700;
}
.footer-nav a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal */
.footer-legal{
  grid-column: 1 / -1;
  border-top: 1px solid #1a1a1a;
  margin-top: 8px;
  padding-top: 14px;
  color: #A1A1AA;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px){
  .footer-grid{
    grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 16px;
}
  .footer-nav{
  justify-content: center;
}
}
/* Footer: centrar logo y áreas en mobile */
@media (max-width: 768px){
  .footer-brand{ text-align: center;
}
  .footer-brand .logo{
  display: inline-block;
  margin-inline: auto;
}

  .footer-areas{
  justify-content: center;
} /* ya es flex */
  /* (opcional) un poco de aire bajo los chips */
  .footer-areas{
  margin-bottom: 6px;
}
}
/* Footer: logo más grande en todos los dispositivos */
.footer-brand .logo{
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  /* base: tablet/desktop */;
}

/* En móvil, súbelo aún más */
@media (max-width: 768px){
  .footer-brand .logo{
    font-size: clamp(2.4rem, 7vw, 2.8rem);
}
}
/* Contorno morado con halo suave */
.modal-container .modal-content{
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.85),    /* anillo principal */
    0 0 22px rgba(124, 58, 237, 0.28),     /* halo exterior */
    0 28px 70px rgba(0, 0, 0, 0.70);
  /* sombra general */
}
/* franja diagonal con morado institucional arriba a la izquierda */
.testimonios{
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.25) 0%, rgba(124, 58, 237, 0.00) 38%),
    linear-gradient(180deg, #0b0b0e 20%, #101014 100%);
}


.feature-card{
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(124, 58, 237, 0.00) 38%),
    linear-gradient(180deg, #0b0b0e 20%, #101014 100%);
}
.faq{
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(124, 58, 237, 0.00) 38%),
    linear-gradient(180deg, #0b0b0e 20%, #101014 100%);
}
.hero-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  /* mejora la legibilidad en caps */
  line-height: 1.1;
}
@media (max-width: 480px) {
  .hero-title {
    text-transform: none;
  /* opcional: evita caps en móvil */;
}
}
/* 1) Apretar globalmente el logo (ligero) */
.logo{
  letter-spacing: 0.09em;
  /* cierra un poco N-ONE */
  font-kerning: normal;
  /* asegura kerning */
  text-rendering: optimizeLegibility;
}

/* 2) Acercar el círculo a las letras (N y O) */
.logo .circle{
  margin-left: -0.06em;
  /* se “mete” bajo la N */
  margin-right: 0.05em;
  /* acerca la O siguiente */
  /* vertical-align ya lo tienes en -0.20em: ajusta a ojo si lo ves descentrado */;
}

/* 3) Micro-responsivo: en móvil cierra un poco más */
@media (max-width: 480px){
  .logo{ letter-spacing: 0.0em;
}
  .logo .circle{
  margin-left: 0.07em;
}
}
/* ===== Carousel “Lo que nos hace diferentes” ===== */
.diff-carousel {
  position: relative;
  margin-top: var(--space-6);
}

.diff-carousel__controls {
  position: absolute;
  top: -8px;
  right: 0;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.diff-carousel__btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .06s ease, border-color .2s ease;
}
.diff-carousel__btn:hover {
  background: rgba(0, 0, 0, 0.50);
  border-color: var(--accent);
}
.diff-carousel__btn:active{
  transform: scale(.97);
}
.diff-carousel__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Pista deslizable con scroll-snap */
.diff-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 520px);
  /* 1 slide por vista en mobile
  520px máx en desktop */
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

/* Ocultar scrollbar visual sin romper accesibilidad */
.diff-carousel__track::-webkit-scrollbar {
  height: 8px;
}
.diff-carousel__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.diff-carousel__track {
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  scrollbar-width: thin;
}

.diff-slide {
  scroll-snap-align: start;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 20px 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.diff-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: rgba(34, 34, 34, 0.95);
}
.diff-slide h4 {
  font-size: 1.05rem;
  line-height: 1.2;
}
.diff-slide p  {
  color: #E5E7EB;
  text-align: left;
  line-height: 1.7;
}

/* Dots indicadores */
.diff-carousel__dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.diff-carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.diff-carousel__dots button[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.25);
}

/* Desktop: muestra 2–3 columnas si hay ancho */
@media (min-width: 900px) {
  .diff-carousel__track { grid-auto-columns: min(46%, 520px);
}
}
@media (min-width: 1200px) {
  .diff-carousel__track { grid-auto-columns: min(32%, 520px);
}
}
.ally-card{
  display: flex;
  align-items: center;
  gap: 16px;
  background: #131316;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 18px 20px;
}
.ally-card img{
  filter: contrast(1.05);
}
@media (max-width:640px){
  .ally-card{ flex-direction: column;
  text-align: center;
} }
/* Accesibilidad para títulos invisibles */
.visually-hidden{
  position: absolute!important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Footer base */
.site-footer{
  background: var(--panel, #0f0f0f);
  border-top: 1px solid #222;
}
.site-footer .container{
  padding-top: var(--space-10);
  /* compacto */
  padding-bottom: var(--space-10);
}

/* Logo centrado y reseña */
.footer-center{
  text-align: center;
  margin-bottom: var(--space-8);
}
.footer-logo{
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.footer-desc{
  color: var(--muted, #A1A1AA);
  margin-top: var(--space-3);
  text-align: center;
}

/* Chips de ciudades */
.footer-cities{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-4);
  list-style: none;
  padding: 0;
}
.footer-cities li{
  background: #191919;
  border: 1px solid #2a2a2a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .95rem;
}

/* Grid inferior: izquierda (redes), centro (spacer), derecha (nav) */
.footer-grid{
  display: grid;
  gap: var(--space-8);
}
.footer-col h3{
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}
.footer-links, .footer-nav{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-nav a{
  color: #e5e7eb;
  text-decoration: none;
}
.footer-links a:hover, .footer-nav a:hover{
  color: var(--accent, #8B5CF6);
}

/* Derecha alineada a la derecha */
.footer-col.right{
  text-align: right;
}

/* Teléfono destacado en el listado */
.footer-phone a{
  font-weight: 700;
}

/* Legal */
.footer-legal{
  margin-top: var(--space-8);
  border-top: 1px solid #1f1f1f;
  padding-top: var(--space-4);
  text-align: center;
  color: var(--muted, #A1A1AA);
  font-size: .95rem;
}

/* Responsive */
@media (min-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr 1fr 1fr;
  /* izquierda | (espacio) | derecha */
    align-items: start;
}
  .footer-col.spacer{
  min-height: 1px;
} /* placeholder */
}
/* Footer: 2 columnas también en mobile */
.site-footer .footer-grid{
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr 1fr;
  /* izquierda | derecha */
  align-items: start;
}

/* Alineaciones */
.footer-col.right {
  text-align: right;
}
.footer-col.left  {
  text-align: left;
}


/* Listas: izquierda hacia la izquierda, derecha hacia la derecha */
.footer-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-nav  {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* Oculta el “spacer” cuando hay 2 columnas */
.footer-col.spacer{
  display: none;
}

/* Desktop: 3 columnas con spacer central */
@media (min-width: 900px){
  .site-footer .footer-grid{ grid-template-columns: 1fr 1fr 1fr;
}
  .footer-col.spacer{
  display: block;
  min-height: 1px;
}
}
/* Accesibilidad para títulos invisibles */
.visually-hidden{
  position: absolute!important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Footer base */
.site-footer{
  background: #0f0f0f;
  border-top: 1px solid #222;
}
.site-footer .container{
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* Logo centrado y reseña */
.footer-center{
  text-align: center;
  margin-bottom: var(--space-8);
}
.footer-logo{
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.footer-desc{
  color: #A1A1AA;
  margin-top: var(--space-3);
}

/* Chips de ciudades */
.footer-cities{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-4);
  list-style: none;
  padding: 0;
}
.footer-cities li{
  background: #191919;
  border: 1px solid #2a2a2a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .95rem;
}

/* Grid inferior: 2 columnas también en mobile */
.site-footer .footer-grid{
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr 1fr;
  /* izquierda | derecha */
  align-items: start;
}
.footer-col.left  {
  text-align: left;
}
.footer-col.right {
  text-align: right;
}
.footer-links, .footer-nav{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links{
  align-items: flex-start;
}
.footer-nav  {
  align-items: flex-end;
}
.footer-col.spacer{
  display: none;
}

/* Desktop: 3 columnas con spacer central */
@media (min-width:900px){
  .site-footer .footer-grid{ grid-template-columns: 1fr 1fr 1fr;
}
  .footer-col.spacer{
  display: block;
  min-height: 1px;
}
}

/* Colores enlaces */
.site-footer .footer-links a,
.site-footer .footer-nav a {
  color: #e5e7eb;
  text-decoration: none;
}
.site-footer .footer-links a:hover,
.site-footer .footer-nav a:hover {
  color: var(--accent, #8B5CF6);
}

/* --- SOLO negrita en “Visítanos”, “Enlaces” y “Contacto” --- */
.site-footer .footer-links a,
.site-footer .footer-nav a,
.site-footer .footer-phone a {
  font-weight: 400;
}          /* base normal */
.site-footer #tit-redes,
.site-footer #tit-enlaces {
  font-weight: 700;
}             /* títulos en negrita */
.site-footer .footer-nav a[href*="#contacto"] {
  font-weight: 700;
} /* Contacto en negrita */
.site-footer .footer-phone a {
  font-weight: 400;
}          /* teléfono normal */

/* Legal */
.footer-legal{
  margin-top: var(--space-8);
  border-top: 1px solid #1f1f1f;
  padding-top: var(--space-4);
  text-align: center;
  color: #A1A1AA;
  font-size: .95rem;
}
/* Fuerza H1 del hero en mayúsculas (prioridad alta) */
.hero-content .hero-title{
  text-transform: uppercase !important;
  letter-spacing: .02em;
  /* opcional: compensa tracking en mayúsculas */
  font-variant-caps: normal;
  /* evita small-caps de la fuente, por si acaso */
}

/* --- Footer compacto --- */
.footer--compact .footer-compact-grid{ display:grid; gap:16px }
.footer--compact .fc-lines{ display:grid; gap:6px; font-style:normal }
.footer--compact .fc-social{ display:flex; gap:12px; flex-wrap:wrap; margin-top:8px }
.footer--compact .two-cols{ display:grid; grid-template-columns:1fr 1fr; gap:8px; list-style:none; padding:0; margin:0 }
@media (min-width: 900px){
  .footer--compact .footer-compact-grid{ grid-template-columns: 1fr 1fr }
  .footer--compact .two-cols{ grid-template-columns:1fr }
}
/* ===== Alineación RRSS: móvil centrado, desktop a la columna izquierda ===== */

/* Estilos base para el contenedor de RRSS (cubre .fc-social y .footer-social) */
.fc-social,
.footer-social{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* MÓVIL: centrado */
@media (max-width: 899px){
  .fc-social,
  .footer-social{
    justify-content: center;
    text-align: center;
    margin-inline: auto;  /* asegura centrado incluso si es inline-block */
  }
}

/* DESKTOP: alinear con la columna izquierda */
@media (min-width: 900px){
  /* Caso footer compacto propuesto (dos columnas) */
  .footer--compact .footer-compact-grid{
    display: grid;                 /* por si algún override lo quitó */
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer--compact .fc-block{      /* bloque izquierdo */
    justify-self: start;
    text-align: left;
  }
  .footer--compact .fc-social{
    justify-content: flex-start;   /* RRSS alineadas con la izquierda del bloque */
  }

  /* Caso footer original con grid de 3 columnas */
  .site-footer .footer-grid{
    display: grid;                 /* reforzamos layout */
    grid-template-columns: 1fr 1fr 1fr;
  }
  /* Si usas .footer-social en esa grilla, colócala en la 1ª columna */
  .site-footer .footer-grid .footer-social{
    grid-column: 1 / span 1;
    justify-content: flex-start;
    text-align: left;
  }
}

/* Ajuste fino opcional: misma separación vertical que los demás bloques */
.fc-social a,
.footer-social a{
  text-decoration: none;
  font-weight: 600;
}
/* ===== Footer: pegar columna derecha al margen derecho en desktop ===== */

/* Estructura general (footer original con .footer-grid y .footer-col.*) */
@media (min-width: 900px){
  /* Cambiamos a 2 columnas: contenido izq + bloque der “Enlaces” */
  .site-footer .footer-grid{
    display: grid;
    grid-template-columns: 1fr auto;      /* derecha se ajusta a su contenido */
    column-gap: clamp(24px, 5vw, 56px);
    align-items: start;
  }

  /* Oculta la columna “spacer” si existe */
  .site-footer .footer-grid .footer-col.spacer{
    display: none !important;
  }

  /* Columna derecha pegada al borde del contenedor */
  .site-footer .footer-grid .footer-col.right{
    justify-self: end;                     /* ancla a la derecha del grid */
    text-align: right;
    margin-right: 0;                       /* por si hay márgenes heredados */
    max-width: none;                       /* evita límites que centren */
  }
}

/* Mantener móvil limpio (apilado y centrado si así lo tenías) */
@media (max-width: 899px){
  .site-footer .footer-grid{
    grid-template-columns: 1fr;
  }
  .site-footer .footer-grid .footer-col.right{
    justify-self: center;
    text-align: center;
  }
}

/* ===== Si usas la variante "footer compacto" (.footer--compact) ===== */
@media (min-width: 900px){
  .footer--compact .footer-compact-grid{
    display: grid;
    grid-template-columns: 1fr auto;    /* izquierda + derecha pegada */
    column-gap: clamp(24px, 5vw, 56px);
    align-items: start;
  }
  .footer--compact .fc-links{
    justify-self: end;
    text-align: right;
  }
}

/* Opcional: alinear las redes sociales con la columna izquierda en desktop
   y centrarlas en móvil (por si no aplicaste el parche anterior). */
@media (max-width: 899px){
  .fc-social, .footer-social{ justify-content: center; text-align: center; }
}
@media (min-width: 900px){
  .fc-social, .footer-social{ justify-content: flex-start; text-align: left; }
}
