/* ============================================================
   Junior Gráfica — Estilos personalizados sobre Tailwind
   ============================================================ */

:root {
    --color-white: #FFFFFF;
    --color-ink: #2E2E2E;
    --color-bone: #F5F5F5;
    --color-brand: #0062FF;
}

html { scroll-behavior: smooth; }

body {
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* permite que sliders con transform extiendan fuera del viewport sin generar scroll horizontal */
}

/* Logo: por defecto la J del SVG es azul (brand). En navbar lo dejamos así. */
.logo-dark { display: block; }

/* Mask reveal por palabra (hero title) — la palabra emerge desde abajo */
.hero-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}
.hero-word-inner {
    display: inline-block;
    will-change: transform;
}


/* ============================================================
   MOBILE MENU (overlay) + BURGER
   ============================================================ */
.burger {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 60;
}
.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: transform .35s ease, opacity .25s ease;
    transform-origin: center;
}
.burger.is-active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.is-active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform .55s cubic-bezier(0.76, 0, 0.24, 1);
    visibility: hidden;
}
.mobile-menu.is-open {
    transform: translateY(0);
    visibility: visible;
}
.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.mobile-menu__links a {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-ink);
    transition: color .25s ease, transform .25s ease;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, color .25s ease;
}
.mobile-menu.is-open .mobile-menu__links a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu__links li:nth-child(1) a { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) a { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) a { transition-delay: .29s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) a { transition-delay: .36s; }

.mobile-menu__links a:hover { color: var(--color-brand); }

/* Botón de cierre dentro del overlay */
.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: var(--color-ink);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.mobile-menu__close:hover {
    background: var(--color-brand);
    transform: rotate(90deg);
}

body.menu-open { overflow: hidden; }
@media (min-width: 1024px) {
    .mobile-menu { display: none; }
    .burger { display: none; }
}


/* ============================================================
   NAVBAR
   ============================================================ */
.nav-link {
    color: var(--color-ink);
    transition: color .2s ease, opacity .2s ease;
    position: relative;
}
.nav-link:hover { color: var(--color-brand); }
.nav-link.is-active { color: var(--color-brand); }


/* ============================================================
   NOSOTROS — bloques específicos
   ============================================================ */

/* Lista de bullets con tilde azul */
.about-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-ink);
}
.about-bullets strong { font-weight: 700; }
.about-bullets__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--color-brand);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
@media (min-width: 1024px) {
    .about-bullets li { font-size: 16px; }
}

/* Pilares — cards blancas con ícono */
.pillar-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow:
        0 1px 2px rgba(46, 46, 46, 0.04),
        0 8px 24px rgba(46, 46, 46, 0.06);
    transition: transform .4s ease, box-shadow .4s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(46, 46, 46, 0.05),
        0 18px 40px rgba(46, 46, 46, 0.1);
}
@media (min-width: 1024px) {
    .pillar-card { padding: 32px 28px; border-radius: 24px; }
}
.pillar-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--color-brand);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.pillar-card__title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-ink);
    margin-bottom: 10px;
}
@media (min-width: 1024px) {
    .pillar-card__title { font-size: 32px; }
}
.pillar-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(46, 46, 46, 0.8);
}

/* Variante "standalone" del stats card — fuera del hero, con padding propio */
.stats-card--standalone {
    margin-top: 0;
    width: 100%;
    padding: 28px;
}
@media (min-width: 1024px) {
    .stats-card--standalone {
        margin-top: 0;
        padding: 40px 48px;
    }
}


/* ============================================================
   PROYECTOS — listado (proyectos.html)
   ============================================================ */

/* Filtros pill */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
@media (min-width: 1024px) {
    .filter-pills { gap: 10px; margin-bottom: 36px; }
}
.filter-pill {
    background: transparent;
    color: var(--color-ink);
    border: 1.5px solid rgba(46, 46, 46, 0.18);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.filter-pill:hover {
    border-color: var(--color-ink);
}
.filter-pill.is-active {
    background: var(--color-ink);
    color: var(--color-white);
    border-color: var(--color-ink);
}
@media (min-width: 1024px) {
    .filter-pill { padding: 10px 22px; font-size: 14px; }
}

/* Grilla del listado */
.projects-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .projects-list-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
    .projects-list-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.projects-list-grid .project-card {
    text-decoration: none;
    color: inherit;
}

/* Card del listado: solo imagen + pill + flecha (sin descripción) */
.projects-list-grid .project-card .project-card__media {
    aspect-ratio: 4 / 3;
}

/* Animación de filtro: card que se oculta */
.project-card.is-hidden {
    display: none;
}

/* Estado vacío */
.projects-empty {
    display: none;
    text-align: center;
    color: rgba(46, 46, 46, 0.6);
    font-size: 14px;
    padding: 60px 20px;
}
.projects-empty.is-visible {
    display: block;
}


/* ============================================================
   PROYECTO INDIVIDUAL (proyecto-*.html)
   ============================================================ */

/* Link "volver a proyectos" — variante invertida del link-arrow (flecha a la izq) */
.link-arrow--reverse {
    color: rgba(46, 46, 46, 0.7);
}
.link-arrow--reverse svg {
    order: -1;
    transition: transform .3s ease;
}
.link-arrow--reverse:hover svg {
    transform: translateX(-2px);
}
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Meta-info del hero del proyecto (lista de Cliente / Servicio / Año / Alcance) */
.project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    max-width: 360px;
    margin-left: auto;
}
@media (max-width: 1023px) {
    .project-meta { margin-left: 0; }
}
.project-meta li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.project-meta__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.55);
}
.project-meta__value {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink);
}

/* Ficha técnica (aside) */
.fact-sheet {
    background: var(--color-bone);
    border-radius: 20px;
    padding: 24px;
}
@media (min-width: 1024px) {
    .fact-sheet { padding: 32px; border-radius: 24px; }
}
.fact-sheet__title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-ink);
    margin-bottom: 18px;
}
.fact-sheet__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fact-sheet__list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(46, 46, 46, 0.1);
}
.fact-sheet__list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.fact-sheet__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand);
}
.fact-sheet__value {
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--color-ink);
}

/* Carrusel del proyecto individual */
.project-carousel {
    position: relative;
    isolation: isolate; /* asegura un stacking context propio para que los botones overlay queden por encima */
}
.project-slide {
    flex: 0 0 100%;
}
.project-slide .img-placeholder {
    width: 100%;
}

/* Galería asimétrica */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: dense;
        gap: 20px;
    }
}
.gallery-item .img-placeholder {
    width: 100%;
    height: 100%;
}

/* En desktop, items con span personalizado para layout asimétrico */
@media (min-width: 1024px) {
    .gallery-item--wide {
        grid-column: span 2;
    }
    .gallery-item--tall {
        grid-row: span 2;
    }
    .gallery-item--tall .img-placeholder {
        aspect-ratio: 3 / 5;
    }
    .gallery-item--wide .img-placeholder {
        aspect-ratio: 21 / 9;
    }
}


/* ============================================================
   BOTÓN PILL (Contacto)
   ============================================================ */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 22px;
    background: var(--color-ink);
    color: var(--color-white);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background .25s ease, transform .25s ease;
}
.btn-pill:hover { background: var(--color-brand); }

.btn-pill-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--color-white);
    color: var(--color-ink);
    border-radius: 999px;
    transition: transform .3s ease, background .25s ease, color .25s ease;
}
.btn-pill:hover .btn-pill-arrow {
    transform: rotate(-45deg);
}

/* Variante invertida: fondo blanco, texto ink, círculo de flecha en ink */
.btn-pill--invert {
    background: var(--color-white);
    color: var(--color-ink);
}
.btn-pill--invert:hover {
    background: var(--color-brand);
    color: var(--color-white);
}
.btn-pill--invert .btn-pill-arrow {
    background: var(--color-ink);
    color: var(--color-white);
}
.btn-pill--invert:hover .btn-pill-arrow {
    background: var(--color-white);
    color: var(--color-ink);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    padding-top: 8px;
    padding-bottom: 48px;
    background: var(--color-white);
}
@media (min-width: 1024px) {
    .footer {
        padding-top: 12px;
        padding-bottom: 64px;
    }
}

/* Card contenedor blanco con sombra sutil — el footer no es full width */
.footer-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 16px 28px 0;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(46, 46, 46, 0.04),
        0 12px 32px rgba(46, 46, 46, 0.07);
}
@media (min-width: 1024px) {
    .footer-card {
        padding: 24px 40px 0;
        border-radius: 28px;
    }
}

/* Fila 1: nav idéntica al header */
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 24px;
}
.footer-links {
    display: none;
    gap: 40px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@media (min-width: 1024px) {
    .footer-links { display: flex; }
}
.footer-nav .btn-pill { padding: 10px 22px; }

/* Separador sutil */
.footer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    padding: 48px 0 12px;
    border-top: 1px solid rgba(46, 46, 46, 0.08);
    text-align: center;
}
@media (min-width: 1024px) {
    .footer-info {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
        padding: 64px 0 16px;
    }
}

.footer-contact {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-ink);
}
.footer-contact a {
    color: inherit;
    transition: color .2s ease;
}
.footer-contact a:hover { color: var(--color-brand); }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .25s ease;
}
.social-icon:hover {
    background: var(--color-brand);
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(46, 46, 46, 0.7);
}
@media (min-width: 1024px) {
    .footer-copyright { text-align: right; }
}
.footer-credit {
    display: inline-block;
    margin-top: 4px;
    font-size: 11.5px;
    color: rgba(46, 46, 46, 0.5);
}
.footer-credit a {
    color: inherit;
    transition: color .2s ease;
}
.footer-credit a:hover {
    color: var(--color-brand);
}

/* Textura inferior dentro del card — rompe el padding horizontal para llegar de borde a borde */
.footer-texture {
    height: 110px;
    margin: 24px -28px 0;
    background-image: url('../recursos/textura_footer.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
@media (min-width: 1024px) {
    .footer-texture {
        height: 160px;
        margin: 32px -40px 0;
    }
}


/* ============================================================
   FABs flotantes — Contacto (mobile) + WhatsApp (siempre)
   ============================================================ */
.fab {
    position: fixed;
    bottom: 16px;
    z-index: 70;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: background .25s ease, transform .25s ease;
}
.fab:hover { transform: scale(1.05); }
.fab:active { transform: scale(0.95); }
@media (min-width: 1024px) {
    .fab { width: 60px; height: 60px; bottom: 24px; }
}

/* WhatsApp — siempre visible, anclado a la derecha */
.fab--whatsapp {
    right: 16px;
    background: var(--color-brand);
}
.fab--whatsapp:hover { background: #1f76ff; }
@media (min-width: 1024px) {
    .fab--whatsapp { right: 24px; }
}

/* Contacto — solo mobile/tablet, a la izquierda del de WhatsApp */
.fab--contact {
    right: calc(16px + 54px + 12px); /* edge + whatsapp + gap */
    background: var(--color-ink);
}
.fab--contact:hover { background: var(--color-brand); }

@media (min-width: 1024px) {
    .fab--contact { display: none; }
}


/* ============================================================
   HERO
   ============================================================ */

/* Placeholder de imagen (mientras no haya foto definitiva) */
.img-placeholder {
    background: var(--color-bone);
    background-image:
        linear-gradient(135deg, rgba(0,98,255,0.04) 0%, rgba(46,46,46,0.04) 100%);
    border: 1px dashed rgba(46, 46, 46, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.img-placeholder-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.45);
    font-weight: 500;
}

/* Carrusel automático del hero — fade + Ken Burns sutil */
.hero-carousel {
    position: relative;
    background: var(--color-bone);
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.6s ease, transform 7s ease;
    pointer-events: none;
    will-change: opacity, transform;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.06); /* zoom lento mientras está activa = Ken Burns */
    pointer-events: auto;
}

/* Botón circular sobre la imagen del hero */
.hero-circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .35s ease;
}
.hero-circle-btn:hover {
    background: var(--color-brand);
    transform: rotate(45deg);
}
@media (min-width: 1024px) {
    .hero-circle-btn { width: 64px; height: 64px; }
}


/* ============================================================
   STATS CARD (se monta sobre la imagen del hero)
   ============================================================ */
.stats-card {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    border-radius: 24px;
    padding: 24px;
    /* En mobile la stats-card va DEBAJO de la imagen (no overlap) */
    margin: 16px auto 0;
    width: 100%;
    align-items: center;
    box-shadow:
        0 1px 2px rgba(46, 46, 46, 0.04),
        0 12px 32px rgba(46, 46, 46, 0.07);
}
@media (min-width: 1024px) {
    .stats-card {
        border-radius: 28px;
        padding: 32px 40px;
        margin-top: -64px; /* en desktop sí monta sobre la imagen */
        width: calc(100% - 56px);
    }
}

/* ============================================================
   STATS (fila inferior del hero)
   ============================================================ */
.stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.stat-number {
    font-family: 'Bebas Neue', Impact, sans-serif;
    color: var(--color-brand);
    font-size: clamp(56px, 6vw, 84px);
    line-height: 0.9;
    letter-spacing: 0.01em;
}
.stat-label {
    font-size: 13px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    color: var(--color-ink);
}


/* ============================================================
   SERVICIOS — slider + cards
   ============================================================ */

/* Botones de control del slider (← →) */
.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid rgba(46, 46, 46, 0.18);
    background: transparent;
    color: var(--color-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.slider-btn:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-white);
}
.slider-btn:active { transform: scale(.95); }
.slider-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .slider-btn { width: 52px; height: 52px; }
}

/* Variante overlay: para los botones que van sobre la imagen del carrusel */
.slider-btn--overlay {
    position: absolute;
    top: 50%;
    z-index: 20;
    background: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%);
}
.slider-btn--overlay:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.05);
}
.slider-btn--prev { left: 16px; }
.slider-btn--next { right: 16px; }
@media (min-width: 1024px) {
    .slider-btn--prev { left: 24px; }
    .slider-btn--next { right: 24px; }
}

/* Viewport del slider — overflow visible para que las sombras de las cards
   no se corten. El recorte de cards off-frame lo maneja `body { overflow-x: hidden }`. */
.services-viewport {
    position: relative;
    overflow: visible;
}

/* Track con transform-based slider (no scroll nativo).
   Sin overflow → las sombras renderizan libremente a izq/der. */
.services-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    transform: translate3d(0, 0, 0);
    transition: transform .55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
    /* Padding vertical para que la sombra inferior/superior tampoco se recorte */
    padding: 12px 0 24px;
    margin: -12px 0 -24px;
}
.services-track.is-dragging {
    transition: none;
    cursor: grabbing;
    user-select: none;
}
.services-track.is-dragging * { pointer-events: none; }

/* Cards: 1 visible mobile, 2 tablet, 3 desktop (exactos, sin peeking) */
.service-card {
    flex: 0 0 calc(100% - 16px);
}
@media (min-width: 640px) {
    .services-track { gap: 20px; }
    .service-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (min-width: 1024px) {
    .services-track { gap: 24px; }
    .service-card { flex-basis: calc((100% - 48px) / 3); }
}

/* Card — contenedor blanco con sombra sutil */
.service-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 20px;
    padding: 14px;
    box-shadow:
        0 1px 2px rgba(46, 46, 46, 0.04),
        0 8px 24px rgba(46, 46, 46, 0.06);
    transition: transform .4s ease, box-shadow .4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(46, 46, 46, 0.05),
        0 18px 40px rgba(46, 46, 46, 0.1);
}
@media (min-width: 1024px) {
    .service-card { padding: 16px; border-radius: 24px; }
}

.service-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 16px;
}
.service-card__media .img-placeholder {
    border-radius: 14px;
    width: 100%;
}
@media (min-width: 1024px) {
    .service-card__media { border-radius: 16px; margin-bottom: 18px; }
    .service-card__media .img-placeholder { border-radius: 16px; }
}

/* Pill blanco con el nombre del servicio (sobre la imagen) */
.service-pill {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: var(--color-white);
    color: var(--color-brand);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 18px;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    border-radius: 999px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    white-space: nowrap;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 1024px) {
    .service-pill { font-size: 20px; padding: 9px 16px; left: 18px; bottom: 18px; }
}

/* Pie de la card: descripción + número grande
   Se ancla al TOP (justo después de la imagen) para que el número quede a la
   misma altura en todas las cards, sin importar el largo de la descripción. */
.service-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.service-card__desc {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(46, 46, 46, 0.85);
    flex: 1;
    max-width: 70%;
}
/* Línea de specs (formato/dpi/medidas) sobre la descripción — usada en Tecnología */
.service-card__text { flex: 1; max-width: 70%; }
.service-card__text .service-card__desc { max-width: none; }
.service-card__spec {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 6px;
}

/* Cards del slider de Tecnología: sin número, descripción a ancho completo */
[data-tech-track] .service-card__num { display: none; }
[data-tech-track] .service-card__text { max-width: 100%; }
.service-card__num {
    font-family: 'Bebas Neue', Impact, sans-serif;
    color: var(--color-brand);
    font-size: clamp(56px, 5vw, 78px);
    line-height: 0.85;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .service-card__desc { font-size: 14.5px; }
}


/* ============================================================
   CLIENTES — marquee de dos filas dentro de una card blanca
   ============================================================ */
.clients-strip {
    background: var(--color-white);
    border-radius: 24px;
    padding: 28px 0;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(46, 46, 46, 0.04),
        0 12px 32px rgba(46, 46, 46, 0.07);
}
@media (min-width: 1024px) {
    .clients-strip {
        border-radius: 32px;
        padding: 36px 0;
    }
}

.clients-marquee {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 1024px) {
    .clients-marquee { gap: 32px; }
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: clients-scroll 90s linear infinite;
}
@media (min-width: 1024px) {
    .clients-track { gap: 80px; animation-duration: 110s; }
}
.clients-track--reverse {
    animation-direction: reverse;
}
.clients-strip:hover .clients-track {
    animation-play-state: paused;
}

@keyframes clients-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); } /* el JS duplica el set, así que -50% = un ciclo */
}

/* Logo: solo la imagen, sin contenedor individual */
.clients-track img {
    flex-shrink: 0;
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
    user-select: none;
    -webkit-user-drag: none;
}
@media (min-width: 1024px) {
    .clients-track img { height: 56px; max-width: 180px; }
}
.clients-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}


/* ============================================================
   LINK CON FLECHA (Ver más proyectos, etc.)
   ============================================================ */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color .25s ease, gap .25s ease;
}
.link-arrow:hover {
    color: var(--color-brand);
    gap: 12px;
}
.link-arrow svg { transition: transform .3s ease; }
.link-arrow:hover svg { transform: translateX(2px); }


/* ============================================================
   PROYECTOS DESTACADOS
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        gap: 20px;
    }
}

/* Card base */
.project-card {
    position: relative;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 1px 2px rgba(46, 46, 46, 0.04),
        0 8px 24px rgba(46, 46, 46, 0.06);
    transition: transform .4s ease, box-shadow .4s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(46, 46, 46, 0.05),
        0 18px 40px rgba(46, 46, 46, 0.1);
}
@media (min-width: 1024px) {
    .project-card { border-radius: 24px; }
}

/* Featured: ocupa 2 columnas y 2 filas en desktop */
.project-card--featured {
    grid-row: span 1;
}
@media (min-width: 640px) {
    .project-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (min-width: 1024px) {
    .project-card--featured {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Media (imagen + overlays) */
.project-card__media {
    position: relative;
    flex: 1;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
/* Compactas: más anchas que altas para diferenciarlas de la featured */
.project-card:not(.project-card--featured) .project-card__media {
    aspect-ratio: 16 / 9;
}
@media (min-width: 1024px) {
    .project-card:not(.project-card--featured) .project-card__media {
        aspect-ratio: 16 / 11;
    }
}
.project-card__media .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 0;
    border: none;
    width: 100%;
    height: 100%;
}
.project-card--featured .project-card__media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 320px;
}
@media (min-width: 1024px) {
    .project-card--featured .project-card__media {
        min-height: 0;
    }
}

/* Botón circular (flecha) arriba-derecha */
.project-card__arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .35s ease;
    z-index: 2;
}
.project-card__arrow:hover {
    background: var(--color-brand);
    transform: rotate(45deg);
}
@media (min-width: 1024px) {
    .project-card--featured .project-card__arrow {
        width: 48px;
        height: 48px;
        top: 18px;
        right: 18px;
    }
}

/* Pill blanca con el nombre del proyecto */
.project-card__pill {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: var(--color-white);
    color: var(--color-ink);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 17px;
    letter-spacing: 0.04em;
    padding: 7px 12px;
    border-radius: 999px;
    line-height: 1;
    text-transform: capitalize;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    white-space: nowrap;
    z-index: 2;
}
@media (min-width: 1024px) {
    .project-card--featured .project-card__pill {
        font-size: 20px;
        padding: 9px 14px;
        left: 18px;
        bottom: 18px;
    }
}

/* Bloque flotante (solo featured): pill negra arriba + card blanca con descripción */
.project-card__floating {
    position: absolute;
    left: 14px;
    bottom: 14px;
    right: 14px;
    max-width: 360px;
    z-index: 2;
}
@media (min-width: 1024px) {
    .project-card__floating {
        left: 20px;
        bottom: 20px;
        right: auto;
        max-width: 380px;
    }
}

.project-card__panel {
    background: var(--color-white);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1024px) {
    .project-card__panel {
        padding: 16px 18px 18px;
        border-radius: 18px;
    }
}
/* Pill invertida (fondo ink, texto blanco) — solo dentro del panel featured */
.project-card__panel-pill {
    display: inline-block;
    background: var(--color-ink);
    color: var(--color-white);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 17px;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
    text-transform: capitalize;
    margin-bottom: 4px;
}
.project-card__panel-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(46, 46, 46, 0.78);
}
@media (min-width: 1024px) {
    .project-card__panel-pill { font-size: 19px; padding: 7px 14px; }
    .project-card__panel-desc { font-size: 13px; }
}

/* En la featured no usamos pill (lo reemplaza el panel) */
.project-card--featured .project-card__pill { display: none; }


/* ============================================================
   CTA — Solicitá asesoramiento
   ============================================================ */
.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 56px 24px;
    background: radial-gradient(ellipse at 20% 0%, #0a3d99 0%, #051a4a 45%, #050817 100%);
    color: var(--color-white);
    isolation: isolate;
    text-align: center;
}
@media (min-width: 768px) {
    .cta-card { padding: 80px 40px; border-radius: 32px; }
}
@media (min-width: 1024px) {
    .cta-card { padding: 100px 64px; border-radius: 40px; }
}

/* Blobs decorativos de fondo */
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}
.cta-blob--1 {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.6) 0%, transparent 70%);
    animation: cta-float-1 14s ease-in-out infinite;
}
.cta-blob--2 {
    width: 380px;
    height: 380px;
    bottom: -160px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.55) 0%, transparent 70%);
    animation: cta-float-2 18s ease-in-out infinite;
}
.cta-blob--3 {
    width: 260px;
    height: 260px;
    top: 30%;
    right: 10%;
    background: radial-gradient(circle, rgba(74, 145, 255, 0.35) 0%, transparent 70%);
    animation: cta-float-3 22s ease-in-out infinite;
}
@keyframes cta-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes cta-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, -25px) scale(1.05); }
}
@keyframes cta-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 20px) scale(0.92); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 18px;
}
.cta-word {
    display: inline-block;
}
.cta-word--accent {
    color: #4a91ff;
}

.cta-desc {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 460px;
    margin: 0 auto 28px;
}
@media (min-width: 1024px) {
    .cta-desc { font-size: 16px; margin-bottom: 36px; }
}

