/* ==========================================================
   soluciones.html - estilos propios (no afecta a otras páginas)
   ========================================================== */
html { scroll-behavior: smooth; }

/* --- introducción --- */
.sg-intro { padding-bottom: 0; }

/* palabra que se escribe sola en el titular */
.sg-typed { color: #EE6F2D; white-space: nowrap; }
.sg-typed::after { content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 6px; background: #EE6F2D; vertical-align: -0.08em; animation: sg-caret .9s steps(1) infinite; }
@keyframes sg-caret { 50% { opacity: 0; } }
/* en móvil las frases largas pueden partirse en dos líneas sin mover el resto */
@media (max-width: 575px) { .sg-typed { white-space: normal; display: inline-block; min-height: 2.5em; } }

/* --- nombres de las aplicaciones: fila centrada de fichas --- */
.sg-product-nav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    margin: 44px auto 0; padding: 0;
}
@media (min-width: 1200px) { .sg-product-nav { margin-left: -95px; margin-right: -95px; } }
.sg-product-nav a {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
    min-height: 62px; min-width: 140px; padding: 10px 22px; text-align: center; white-space: nowrap;
    background: #111111; border: 1px solid rgba(255,255,255,.10);
    color: #ffffff; font-size: 20px; font-weight: 700; letter-spacing: 1.2px; line-height: 1; text-transform: uppercase;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s, background-color .35s, color .35s;
    opacity: 0; animation: sg-chip-in .6s cubic-bezier(.2,.8,.2,1) forwards;
}
.sg-product-nav a:nth-child(1) { animation-delay: .10s; }
.sg-product-nav a:nth-child(2) { animation-delay: .18s; }
.sg-product-nav a:nth-child(3) { animation-delay: .26s; }
.sg-product-nav a:nth-child(4) { animation-delay: .34s; }
.sg-product-nav a:nth-child(5) { animation-delay: .42s; }
.sg-product-nav a:nth-child(6) { animation-delay: .50s; }
@keyframes sg-chip-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sg-product-nav .sg-pre { color: #EE6F2D; transition: color .35s; }
/* línea naranja inferior que crece desde el centro */
.sg-product-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #EE6F2D; transform: scaleX(0); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
/* brillo que cruza la ficha */
.sg-product-nav a::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
    background-size: 250% 100%; background-position: 130% 0; transition: background-position .8s ease; }
.sg-product-nav a:hover, .sg-product-nav a:focus-visible {
    transform: translateY(-5px); border-color: #EE6F2D; color: #ffffff;
    box-shadow: 0 16px 34px -16px rgba(238,111,45,.75);
}
.sg-product-nav a:hover::after, .sg-product-nav a:focus-visible::after { transform: scaleX(1); }
.sg-product-nav a:hover::before { background-position: -30% 0; }
/* aplicación que se está viendo al bajar por la página */
.sg-product-nav a.is-active { background: #EE6F2D; border-color: #EE6F2D; color: #ffffff; }
.sg-product-nav a.is-active .sg-pre { color: #060606; }

@media (max-width: 575px) { .sg-product-nav { gap: 10px; }
    .sg-product-nav a { flex: 1 1 calc(50% - 10px); min-width: 0; padding: 10px 8px; font-size: 18px; min-height: 54px; letter-spacing: 1px; } }

/* al saltar a una aplicación, que no quede tapada por el menú fijo */
.event-card[id] { scroll-margin-top: 130px; }

/* --- tarjetas de soluciones --- */
/* el GIF se ve siempre entero, con su pequeño margen alrededor (antes se recortaba
   por los lados cuando el texto era más alto que la imagen); el hueco sobrante
   se rellena con el mismo fondo oscuro del GIF para que no se note */
.event-card .image-wrapper .image { background: #16171a; }
.event-card .image-wrapper .image img { object-fit: contain; }

/* portátiles pequeños: títulos algo más contenidos */
@media (max-width: 1199px) {
    .event-card .content-wrapper { padding: 40px; }
    .event-card .content-wrapper .title { font-size: 36px; }
}

/* tablet y móvil: imagen arriba a todo el ancho y texto debajo */
@media (max-width: 991px) {
    .event-card-wrapper { gap: 70px; }
    .event-card-wrapper .event-card:nth-child(odd),
    .event-card-wrapper .event-card:nth-child(even) { flex-direction: column; }
    .event-card .image-wrapper { width: 100%; aspect-ratio: 900 / 631; margin-bottom: 0; }
    .event-card .content-wrapper { padding: 32px 28px; }
    .event-card .content-wrapper .title { font-size: 30px; }
}
@media (max-width: 575px) {
    .event-card-wrapper { gap: 56px; }
    .event-card .image-wrapper .post-date { left: 12px; }
    .event-card .content-wrapper { padding: 26px 18px; }
    .event-card .content-wrapper .title { font-size: 24px; }
}

/* --- llamada final: botón centrado y con latido --- */
.sg-cta { text-align: center; }
.sg-cta-btn { display: flex; justify-content: center; align-items: center; width: 100%; margin-top: 32px; }
.sg-cta-btn .te-theme-btn { animation: sg-pulse 2.4s ease-out infinite; }
@keyframes sg-pulse { 0% { box-shadow: 0 0 0 0 rgba(238,111,45,.55); } 70%, 100% { box-shadow: 0 0 0 22px rgba(238,111,45,0); } }

/* quien pide menos movimiento en su sistema, no ve animaciones */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sg-typed::after, .sg-cta-btn .te-theme-btn { animation: none !important; }
    .sg-product-nav a { animation: none !important; opacity: 1; }
}
