/* ====== Estilos del sitio (extraídos desde index.php) ====== */

.glass {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.hero-grad {
    background:
        radial-gradient(1200px 600px at 5% 0%, rgba(0, 163, 255, .25), transparent),
        radial-gradient(900px 600px at 95% 15%, rgba(26, 170, 135, .22), transparent),
        linear-gradient(180deg, #08283f 0%, #0B3A5B 60%, #0B3A5B 100%);
}

.card {
    border-radius: 16px;
    box-shadow: var(--card-shadow, 0 8px 24px rgba(2, 6, 23, .08));
}

.focus-ring:focus {
    outline: 3px solid #1AAA87;
    outline-offset: 2px;
}

.section-surface {
    background: #f8fafc;
}

[data-theme="dark"] .section-surface {
    background: rgba(30, 41, 59, .4);
}

/* Callout + pipeline dentro del contenedor */
.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.hero-callout {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.hero-callout::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + .6rem);
    right: 1rem;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .06);
    outline: 1px solid rgba(255, 255, 255, .12);
}

/* Marquesina Clientes */
.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.marquee-track>div {
    min-width: 260px;
}

@keyframes scroll-left {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Accesibilidad / reduce motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Utilidades pequeñas (opcional) */
img.rounded-2xl {
    border-radius: 1rem;
}




/* ===== Clientes & Aliados (versión grande, consistente) ===== */
.marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: jm-marquee 16s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes jm-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Tarjeta más grande y uniforme */
.client-card {
    width: 260px;
    /* ancho estándar */
    height: 160px;
    /* alto estándar */
    border-radius: 18px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    border-color: rgba(0, 0, 0, .12);
}

.dark .client-card {
    --card-bg: rgb(30 41 59);
    /* slate-800 */
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.dark .client-card:hover {
    border-color: rgba(255, 255, 255, .14);
}

/* Contenido interno en columna (logo arriba, nombre abajo) */
.client-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Logo más grande y siempre contenido */
.client-logo {
    max-width: 180px;
    /* controla el ancho máximo del logo */
    max-height: 70px;
    /* controla el alto máximo del logo */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .92;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.client-card:hover .client-logo {
    filter: none;
    opacity: 1;
    transform: translateY(-1px);
}

/* Nombre SIEMPRE visible (con o sin logo) */
.client-name {
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.25rem;
    color: rgb(30 41 59);
    /* slate-800 */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .client-name {
    color: rgb(203 213 225);
}

/* slate-300 */

/* Cuando no hay logo, agrandamos el texto para que no “flote” */
.client-card.no-logo .client-name {
    font-size: 1.05rem;
}

/* Evita scroll horizontal por cualquier desborde accidental */
html, body {
  overflow-x: hidden;
}

/* Iframes e imágenes nunca más anchos que el contenedor */
img, iframe {
  max-width: 100%;
}

/* Mapa responsive con relación 16:9 (ajústala si quieres) */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;        /* o usa 4/3 si prefieres más alto */
  background: #0b1220;         /* color de fondo mientras carga */
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* (Opcional) Por si algún contenedor interno intenta crecer sin límite */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Marquee: ya tiene overflow:hidden; esto evita cualquier “empujón” raro */
.marquee,
.marquee-track {
  max-width: 100%;
}


/* Marca del header: evita saltos y recortes feos */
.brand-name{
  display:inline-block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  /* ancho máximo adaptable: no invadir los iconos de la derecha */
  max-width: clamp(140px, 48vw, 560px);
  letter-spacing: -0.015em;
}

/* Afinar en pantallas muy estrechas */
@media (max-width: 420px){
  .brand-name{ max-width: 58vw; }
}
