/* Portada C (13/11/2026, ya es la portada de index.html): estructura inspirada en una referencia (titulo centrado, fondo sutil con esfera y lineas de luz, tres tarjetas abajo).
   (antes se probaba en prueba-portada-c.html). */
.heroC { position: relative; z-index: 1; overflow: hidden; min-height: calc(100svh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: clamp(1.5rem, 4vh, 3rem) 1.25rem clamp(1.5rem, 4vh, 2.5rem); isolation: isolate; }

/* fondo: esfera oscura con borde luminoso suave y lineas de luz finas (violeta a rosa) */
.heroC__fondo { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(90% 70% at 50% 40%, #0c0720 0%, #07050f 70%); }
.heroC__fondo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.heroC__cinta1 { animation: cintaC1 18s ease-in-out infinite alternate; transform-origin: 50% 70%; }
.heroC__cinta2 { animation: cintaC2 22s ease-in-out infinite alternate; transform-origin: 20% 60%; }
@keyframes cintaC1 { to { transform: translate3d(-30px, 14px, 0) scale(1.03); } }
@keyframes cintaC2 { to { transform: translate3d(26px, -10px, 0) scale(1.04); } }

.heroC__contenido, .heroC__tarjetas { position: relative; z-index: 2; }
.heroC__contenido { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.heroC__marcaCaja { position: relative; width: 100%; display: flex; justify-content: center; font-size: clamp(3.2rem, 8vw, 7.6rem); padding-bottom: 0.46em; margin-top: clamp(0.25rem, 2vh, 1.25rem); }
.heroC__logo { position: relative; display: inline-block; user-select: none; }
.heroC__marca { font: 700 1em/1 Arial, Helvetica, sans-serif; letter-spacing: 0.24em; padding-left: 0.24em; color: var(--hueso); filter: drop-shadow(0 0 30px rgba(139, 77, 255, 0.55));
  -webkit-box-reflect: below 0.05em linear-gradient(to bottom, transparent 55%, rgba(255, 255, 255, 0.26)); }
.heroC__marca i { font-style: normal; background: linear-gradient(20deg, #8B4DFF 0%, #C85CF2 50%, #FF4DA6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* AUTOMATION: del largo de LUNAIR, a la mitad de su reflejo */
.heroC__auto { position: absolute; left: 0.24em; right: 0.24em; top: 0.99em; pointer-events: none; }
.heroC__auto > div { display: flex; justify-content: space-between; font-family: var(--fuente-texto, Montserrat, sans-serif); font-weight: 500; font-size: 0.17em; line-height: 1; color: var(--lavanda); }
/* linea de luz que cruza toda la pagina por detras de LUNAIR */
.heroC__linea { position: absolute; z-index: 0; left: 50%; width: 112vw; margin-left: -56vw; top: calc(0.5em - 2px); height: 3px; transform: rotate(-3.5deg); pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 2%, rgba(139, 77, 255, 0) 12%, #8b4dff 36%, #ff4da6 58%, rgba(255, 77, 166, 0) 88%, transparent 98%); box-shadow: 0 0 22px 4px rgba(200, 92, 242, 0.5); animation: lineaC 2000ms cubic-bezier(.45, 0, .2, 1) 600ms both; }
@keyframes lineaC { from { clip-path: inset(-30px 100% -30px 0); } to { clip-path: inset(-30px 0 -30px 0); } }
.heroC h1 { font-size: clamp(1.3rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.6rem; }
.heroC h1 .firma { display: inline-block; margin-left: 0.2em; }
.heroC__apoyo { font-size: clamp(0.88rem, 0.95vw, 0.98rem); line-height: 1.5; color: var(--color-texto-suave); max-width: 56ch; margin: 0 0 1rem; }
.heroC__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.heroC__botones .boton { min-height: 46px; padding-inline: 1.5rem; font-size: 0.95rem; }

/* tres tarjetas de vidrio oscuro al pie, con un resplandor de la marca en una esquina */
.heroC__tarjetas { width: min(1180px, 100%); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin-top: clamp(1.25rem, 3vh, 2rem); }
.heroC__t { position: relative; overflow: hidden; border-radius: 24px; padding: 1.6rem; min-height: 214px; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.6rem; color: var(--hueso);
  background: linear-gradient(160deg, rgba(26, 15, 48, 0.8), rgba(11, 6, 22, 0.86));
  border: 1px solid rgba(207, 195, 238, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 50px rgba(3, 1, 12, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.heroC__t::before { content: ""; position: absolute; z-index: 0; width: 300px; height: 300px; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.heroC__t > * { position: relative; z-index: 1; }
.heroC__t h2 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.heroC__t p { font-size: 0.93rem; line-height: 1.5; margin: 0; color: rgba(237, 235, 244, 0.82); }
.heroC__t--quienes::before { right: -90px; bottom: -150px; background: radial-gradient(circle, rgba(255, 77, 166, 0.3), transparent 68%); }
.heroC__t--quienes .heroC__txt { max-width: 62%; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.heroC__t--quienes .boton { min-height: 40px; padding: 0 1.1rem; font-size: 0.9rem; background: #fff; color: #2a1458; border-color: transparent; }
.heroC__luna { position: absolute !important; right: 8%; top: 50%; width: clamp(110px, 11vw, 160px); height: auto; transform: translateY(-50%) rotate(-12deg); filter: drop-shadow(0 0 26px rgba(200, 92, 242, 0.55)); }
.heroC__t--dias { align-items: center; text-align: center; }
.heroC__t--dias::before { left: -120px; top: -170px; background: radial-gradient(circle, rgba(139, 77, 255, 0.3), transparent 68%); }
.heroC__t--dias p, .heroC__t--dias h2 { text-align: center; }
.heroC__fases { display: flex; gap: 0.5rem; margin: 0.35rem 0 0.2rem; }
.heroC__fases i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(237, 235, 244, 0.75); background: linear-gradient(90deg, #EDEBF4 var(--p), transparent var(--p)); }
.heroC__fases i:last-child { background: #EDEBF4; box-shadow: 0 0 16px rgba(228, 217, 255, 0.85); }
.heroC__t--prod { align-items: center; text-align: center; justify-content: center; }
.heroC__t--prod::before { right: -110px; top: -170px; background: radial-gradient(circle, rgba(255, 77, 166, 0.28), transparent 68%); }
.heroC__t--prod svg { width: 40px; height: 40px; fill: none; stroke: #FF7AC2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 77, 166, 0.6)); }
.heroC__t--prod p { text-align: center; font-size: 1rem; }
.heroC__t--prod strong { color: var(--hueso); }

/* la A 3D: grande a la derecha (la crea js/objeto3d.js); con el scroll baja hacia la izquierda y se desvanece.
   Va detras del texto y de las tarjetas. --sc (0 a 1) lo escribe objeto3d.js segun el scroll. */
.heroC .luna-caja { position: fixed; z-index: 1; inset: 0; width: 100vw; height: 100vh; margin: 0; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; animation: none; pointer-events: none;
  --objeto-escala: 0.62; --objeto-cx: 0.79; --objeto-cy: 0.44; transform-origin: 79% 44%; will-change: transform, opacity; transition: opacity 300ms ease-out; }
.heroC .luna-flota { animation: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.heroC .luna-flota::before { display: none; }

/* difuminado al pie de la portada hacia Servicios, que usa el mismo fondo oscuro; el degradado hacia el color de "El gestor" ya existe al final de .espacio */
.heroC::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; background: linear-gradient(to bottom, rgba(7, 5, 15, 0), #07050f); }
.espacio { background: linear-gradient(180deg, #07050f 0%, #08060f 40%, #0c0814 100%); }
.espacio #servicios::before { background: linear-gradient(180deg, rgba(7, 5, 15, 0) 0, rgba(7, 5, 15, 0.55) 200px, rgba(7, 5, 15, 0.6) 100%); }

/* lineas luminiscentes que cruzan por detras de las secciones (Servicios y El gestor), como las del fondo de la portada */
.lineasS { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 7px rgba(200, 92, 242, 0.6)); }
@media (max-width: 959px) { .lineasS { filter: none; opacity: 0.9; } }

.heroC__icono { position: absolute !important; right: 9%; top: 50%; width: clamp(110px, 10vw, 150px); height: auto; transform: translateY(-50%); filter: drop-shadow(0 0 26px rgba(200, 92, 242, 0.5)); }

/* media luna cromada de la tarjeta "Somos LunAIr" */
.heroC .luna-caja.luna-caja--tarjeta { z-index: 1; inset: 0 0 0 auto; left: auto; width: 46%; height: 100%; transform: none; opacity: 1; --objeto-escala: 0.72; --objeto-cx: 0.5; --objeto-cy: 0.5; }

@media (max-width: 959px) {
  .heroC { min-height: 0; padding-top: 0.5rem; padding-bottom: 1.5rem; }
  /* la A cromada, grande y arriba, gira sola y con el dedo */
  .heroC .luna-caja { display: block; position: relative; inset: auto; width: 100%; height: min(74vw, 320px); margin: 0 0 -0.4rem; transform: none !important; opacity: 1 !important; pointer-events: auto; touch-action: pan-y; z-index: 2;
    --objeto-escala: 0.8; --objeto-cx: 0.5; --objeto-cy: 0.5; }
  .heroC__marcaCaja { font-size: clamp(2.8rem, 13.4vw, 4.6rem); padding-bottom: 0.5em; margin-top: 0; }
  .heroC h1 { font-size: clamp(1.25rem, 5.6vw, 1.7rem); }
  .heroC h1 .firma { display: block; margin-left: 0; }
  .heroC__apoyo { font-size: 0.95rem; max-width: 34ch; }
  .heroC__botones { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .heroC__botones .boton { justify-content: center; }
  /* las tarjetas se deslizan de lado */
  .heroC__tarjetas { display: flex; width: calc(100% + 2.5rem); max-width: none; margin-inline: -1.25rem; padding: 0.4rem 1.25rem 1rem; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .heroC__tarjetas::-webkit-scrollbar { display: none; }
  .heroC__t { flex: 0 0 82%; scroll-snap-align: center; min-height: 0; }
  .heroC__t--quienes .heroC__txt { max-width: 100%; }
  .heroC__luna, .heroC__icono { display: none; }
  /* rendimiento en celular: sin efectos que obligan a redibujar toda la pantalla en cada cuadro */
  .heroC__cinta1, .heroC__cinta2 { animation: none; }
  .heroC__fondo svg [filter] { filter: none; }
  .heroC__t { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, #1a0f30, #0b0616); }
  .heroC__t::before { filter: none; }
  .heroC__marca { filter: none; }
  /* linea de luz detras de LUNAIR: mismos colores que en escritorio, fina y afilada en las puntas, con su resplandor */
  .heroC__linea { height: 26px; top: calc(0.5em - 13px); box-shadow: none; mix-blend-mode: normal;
    background: linear-gradient(90deg, rgba(139, 77, 255, 0) 6%, #8b4dff 34%, #ff4da6 62%, rgba(255, 77, 166, 0) 94%) center / 100% 2px no-repeat,
                linear-gradient(90deg, rgba(139, 77, 255, 0) 6%, rgba(139, 77, 255, 0.4) 34%, rgba(255, 77, 166, 0.4) 62%, rgba(255, 77, 166, 0) 94%) center / 100% 100% no-repeat;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%); }
  /* sin estrellas en el fondo; en su lugar, las lineas de luz de las secciones */
  .estrellas-base, .estrellas-capa { display: none; }
}
}
@media (prefers-reduced-motion: reduce) { .heroC__cinta1, .heroC__cinta2 { animation: none; } .heroC .luna-caja { transform: none; opacity: 1; } }

/* brillo que sigue al mouse en los botones de la portada (igual que en el resto del sitio) */
.heroC__botones .boton, .heroC__t .boton { position: relative; overflow: hidden; isolation: isolate; }
.heroC__botones .boton::before, .heroC__t .boton::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; will-change: opacity; transition: opacity 300ms var(--ease-out);
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), var(--brillo, rgba(255, 255, 255, 0.5)), transparent 72%); }
.heroC__botones .boton--principal { --brillo: rgba(255, 255, 255, 0.6); }
.heroC__botones .boton--secundario { --brillo: rgba(200, 92, 242, 0.55); }
.heroC__t .boton { --brillo: rgba(200, 92, 242, 0.5); }
.heroC__botones .boton--secundario::after { content: "\2192"; display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .heroC__botones .boton:hover::before, .heroC__t .boton:hover::before { opacity: 1; }
  .heroC__botones .boton--secundario:hover::after { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .heroC .luna-caja { position: absolute; width: auto; height: auto; } }

/* la A de la portada: sin barra y con la media luna unida a la pata izquierda (misma altura que las mayusculas) */
.heroC__A { display: inline-block; height: 0.716em; width: 0.722em; margin-right: 0.24em; vertical-align: baseline; }
