/* Shared CSS for iaConsultores */

/* Material Symbols Integration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.icon-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism & Blurred Backdrops */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shadows */
.ambient-shadow {
    box-shadow: 0 20px 60px -15px rgba(0, 61, 155, 0.08);
}

.shadow-ambient {
    box-shadow: 0 10px 40px -10px rgba(0, 82, 204, 0.06);
}

/* Transitions and Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(0, 61, 155, 0.12);
}

.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
    transform: scale(1.04);
}

.team-shot {
    transform-origin: center center;
    animation: team-pan 7s ease-in-out infinite alternate;
}

.img-zoom-container img.team-shot {
    transition: none;
}

.team-sweep {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 32%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), rgba(80, 220, 255, 0.28), transparent);
    transform: translateX(-140%);
    animation: team-sweep 4.6s ease-in-out infinite;
}

.img-zoom-container:hover .team-shot {
    animation: none;
    transform: scale(1.08);
}

.img-zoom-container:hover .team-sweep {
    animation-play-state: paused;
}

@keyframes team-pan {
    from { transform: scale(1.14) translate3d(-4%, 0, 0); }
    to { transform: scale(1.14) translate3d(4%, -3%, 0); }
}

@keyframes team-sweep {
    0% { transform: translateX(-150%); }
    62%, 100% { transform: translateX(430%); }
}

@media (prefers-reduced-motion: reduce) {
    .team-shot,
    .img-zoom-container:hover .team-shot,
    .team-sweep {
        animation: none;
        transform: none;
    }
}

/* Intersection Observer Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Drawer Menu Transitions */
#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu-panel {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-open #mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer-open #mobile-menu-panel {
    transform: translateX(0);
}

/* Custom Gradient Animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradientAnimation 6s ease infinite;
}

/* Logo: barrido de luz continuo sobre las letras */
.brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 168px;
    height: 24px;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.brand-logo-light {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: url("img/logo-wordmark.webp");
    mask-image: url("img/logo-wordmark.webp");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.brand-logo-light::before {
    content: "";
    position: absolute;
    top: -15%;
    bottom: -15%;
    width: 22%;
    left: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08) 28%,
        rgba(198, 242, 255, 0.92) 50%,
        rgba(255, 255, 255, 0.08) 72%,
        transparent
    );
    transform: translate3d(-140%, 0, 0);
    animation: logo-light 5.6s linear infinite;
    will-change: transform;
}

@keyframes logo-light {
    from { transform: translate3d(-140%, 0, 0); }
    to { transform: translate3d(560%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo-light {
        display: none;
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 12;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.capability-stage {
    width: min(100%, 860px);
    margin-inline: auto;
}

.capability-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #071833;
    box-shadow: 0 28px 64px -22px rgba(5, 26, 62, 0.45);
}

.capability-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 4.6s linear;
}

.capability-frame img.capability-shot-top {
    object-position: top center;
}

.capability-frame img.is-on {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.capability-caption {
    position: absolute;
    z-index: 2;
    left: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: calc(100% - 2.5rem);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: rgba(5, 26, 62, 0.86);
    color: #f7f9ff;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.capability-caption .material-symbols-outlined {
    font-size: 20px;
    color: #50dcff;
}

.capability-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem 1.5rem;
    margin-top: 1.25rem;
}

.capability-tabs button {
    position: relative;
    border: 0;
    border-bottom: 1px solid rgba(5, 26, 62, 0.12);
    background: transparent;
    padding: 0.85rem 0 0.75rem;
    color: #434654;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.capability-tabs button.is-on {
    color: #051a3e;
}

.capability-tabs button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #50dcff;
    transform: scaleX(0);
    transform-origin: left center;
}

.capability-tabs button.is-on::after {
    animation: capability-meter var(--capability-ms, 4.6s) linear both;
}

@keyframes capability-meter {
    to { transform: scaleX(1); }
}

@media (min-width: 768px) {
    .capability-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .capability-frame img {
        transition: none;
        transform: none;
    }

    .capability-tabs button.is-on::after {
        animation: none;
        transform: scaleX(1);
    }
}

/* Título del hero: cada palabra sube al cargar */
.hero-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.hero-word > span {
    display: inline-block;
    animation: hero-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-word:nth-child(1) > span { animation-delay: 0.04s; }
.hero-word:nth-child(2) > span { animation-delay: 0.1s; }
.hero-word:nth-child(3) > span { animation-delay: 0.16s; }
.hero-word:nth-child(4) > span { animation-delay: 0.22s; }
.hero-word:nth-child(5) > span { animation-delay: 0.34s; }
.hero-word:nth-child(6) > span { animation-delay: 0.44s; }

@keyframes hero-rise {
    from { transform: translate3d(0, 115%, 0); }
    to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-word > span {
        animation: none;
    }
}

.value-section {
    isolation: isolate;
}

.value-watermark {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.2;
    filter: saturate(0.65);
    pointer-events: none;
}

/* Página Servicios: red de IA como marca de agua */
.page-servicios {
    background-image: url("img/watermark-ia.svg");
    background-repeat: repeat;
    background-size: 560px 560px;
    background-attachment: fixed;
}

/* Cuadro «Nuestros Servicios de IA»: borde de luz y accesos */
.services-hero-card {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: 1.5px;
    background: #0a2148;
    box-shadow: 0 28px 64px -16px rgba(5, 26, 62, 0.48);
}

.services-hero-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: 160%;
    aspect-ratio: 1;
    background: conic-gradient(from 0deg, transparent 0deg 248deg, rgba(80, 220, 255, 0.2) 286deg, #50dcff 328deg, #003d9b 348deg, transparent 360deg);
    animation: services-orbit 9s linear infinite;
}

.services-hero-bg {
    position: absolute;
    z-index: 0;
    inset: 1.5px;
    overflow: hidden;
    border-radius: calc(1.75rem - 1.5px);
    background: #071833;
    pointer-events: none;
}

.services-hero-bg img {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    max-width: none;
    object-fit: cover;
    animation: services-hero-drift 28s ease-in-out infinite alternate;
}

.services-hero-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.services-hero-links {
    opacity: 0.85;
}

.services-hero-links path {
    stroke-dasharray: 10 150;
    animation: services-signal 8s linear infinite;
}

.services-hero-links path:nth-child(2) { animation-duration: 11s; animation-delay: -3s; }
.services-hero-links path:nth-child(3) { animation-duration: 6.5s; animation-delay: -1s; }
.services-hero-links path:nth-child(4) { animation-duration: 9s; animation-delay: -4s; }
.services-hero-links path:nth-child(5) { animation-duration: 7.5s; animation-delay: -2s; }
.services-hero-links path:nth-child(6) { animation-duration: 10s; animation-delay: -5s; }
.services-hero-links path:nth-child(7) { animation-duration: 8.5s; animation-delay: -1.5s; }

.services-hero-nodes circle {
    opacity: 0.45;
    animation: services-node 3.4s ease-in-out infinite;
}

.services-hero-nodes circle:nth-child(2n) { animation-delay: -1.1s; }
.services-hero-nodes circle:nth-child(3n) { animation-delay: -2.2s; }

@keyframes services-hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-2.5%, -1.5%, 0); }
}

@keyframes services-signal {
    to { stroke-dashoffset: -160; }
}

@keyframes services-node {
    0%, 100% { opacity: 0.28; }
    50% { opacity: 1; }
}

.services-hero-card-inner {
    position: relative;
    z-index: 1;
    border-radius: calc(1.75rem - 1.5px);
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(80, 220, 255, 0.16), transparent 46%),
        radial-gradient(62% 68% at 50% 46%, rgba(7, 24, 51, 0.84) 0%, rgba(12, 32, 72, 0.58) 54%, rgba(7, 24, 51, 0.18) 100%);
    color: #edf0ff;
    padding: 2.75rem 1.5rem 2.25rem;
}

.services-hero-card-inner h1 {
    color: #f7f9ff;
}

.services-hero-card-inner p {
    color: #d5deef;
}

.services-hero-card-inner > .inline-flex {
    background: rgba(80, 220, 255, 0.12);
    border-color: rgba(80, 220, 255, 0.38);
}

.services-hero-card-inner > .inline-flex span {
    color: #9aefff;
}

.services-hero-ia {
    background-image: linear-gradient(90deg, #b8f6ff, #50dcff, #ffffff, #50dcff);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientAnimation 6s ease infinite;
}

.services-hero-marks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.services-hero-marks a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(80, 220, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #f4f8ff;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.services-hero-marks a:hover,
.services-hero-marks a:focus-visible {
    border-color: #50dcff;
    background: rgba(80, 220, 255, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}

.services-hero-marks .material-symbols-outlined {
    font-size: 18px;
    color: #50dcff;
}

@keyframes services-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (min-width: 768px) {
    .services-hero-card-inner {
        padding: 3.5rem 4rem 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-hero-card::before,
    .services-hero-ia,
    .services-hero-bg img,
    .services-hero-links path,
    .services-hero-nodes circle {
        animation: none;
    }

    .services-hero-marks a:hover,
    .services-hero-marks a:focus-visible {
        transform: none;
    }
}

/* Storyboard de automatización: cinco escenas, 2 s cada una */
.story-player {
    position: relative;
    aspect-ratio: 941 / 400;
    background: #041428;
}

.story-player img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-player img.is-on {
    opacity: 1;
    animation: story-drift 2s linear both;
}

.web-carousel img.web-shot-top {
    object-position: top center;
}

@keyframes story-drift {
    from { transform: scale(1.045); }
    to { transform: scale(1); }
}

.story-player-dots {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.story-player-dots span {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.story-player-dots span::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: #8eecff;
    transform: scaleX(0);
    transform-origin: left center;
}

.story-player-dots span.is-on::after {
    animation: story-meter 2s linear both;
}

.web-carousel.story-player {
    aspect-ratio: 16 / 10;
    border-radius: 1.25rem;
    box-shadow: 0 22px 48px rgba(5, 26, 62, 0.22);
}

.web-carousel .story-player-dots span.is-on::after {
    animation-duration: 3.6s;
}

.web-carousel-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(5, 26, 62, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.web-carousel-label:hover {
    background: #003d9b;
}

.web-carousel-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #051a3e;
    cursor: pointer;
}

.web-carousel-nav--prev { left: 10px; }
.web-carousel-nav--next { right: 10px; }

.web-carousel-nav:hover {
    background: #fff;
}

@keyframes story-meter {
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .story-player img,
    .story-player-dots span::after {
        animation: none;
        transition: none;
    }
}

/* Fondos distintos de las tres secciones de servicios */
.service-scene {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: 2.5rem 1.75rem;
    min-height: 440px;
    scroll-margin-top: 6.5rem;
    border: 1px solid rgba(80, 220, 255, 0.22);
    box-shadow: 0 28px 64px -16px rgba(5, 26, 62, 0.42);
    background-color: #071833;
    background-size: cover;
    background-position: center;
    color: #d5deef;
}

.service-scene h2,
.service-scene li {
    color: #f7f9ff;
}

.service-scene p {
    color: #d5deef;
}

.service-scene .w-14.rounded-2xl {
    background: rgba(80, 220, 255, 0.12);
    border-color: rgba(80, 220, 255, 0.38);
    color: #9aefff;
}

.service-scene .w-14.rounded-2xl .material-symbols-outlined,
.service-scene li .material-symbols-outlined {
    color: #50dcff;
}

.service-scene li .rounded-full {
    background: rgba(80, 220, 255, 0.16);
}

.service-scene a.border-2 {
    border-color: rgba(80, 220, 255, 0.45);
    color: #9aefff;
}

.service-scene a.border-2:hover {
    background: rgba(80, 220, 255, 0.12);
    border-color: #50dcff;
    color: #ffffff;
}

.service-scene > * {
    position: relative;
    z-index: 1;
}

.service-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-scene--auto {
    background-image: url("img/bg-automatizacion.webp");
}

.service-scene--auto::before {
    background:
        radial-gradient(70% 80% at 0% 0%, rgba(80, 220, 255, 0.16), transparent 48%),
        linear-gradient(100deg, rgba(7, 24, 51, 0.92) 0%, rgba(18, 48, 106, 0.84) 36%, rgba(7, 24, 51, 0.42) 64%, rgba(7, 24, 51, 0.18) 100%);
}

.service-scene--chat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    background-image: url("img/bg-whatsapp.webp");
    background-position: right center;
}

.service-scene--chat::before {
    background:
        radial-gradient(70% 80% at 0% 0%, rgba(80, 220, 255, 0.14), transparent 48%),
        linear-gradient(100deg, rgba(7, 24, 51, 0.92) 0%, rgba(18, 48, 106, 0.84) 40%, rgba(7, 24, 51, 0.4) 68%, rgba(7, 24, 51, 0.16) 100%);
}

.service-scene--web {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background-image: url("img/bg-desarrollo.webp");
    background-position: left center;
}

.service-scene--web::before {
    background:
        radial-gradient(70% 80% at 100% 0%, rgba(80, 220, 255, 0.16), transparent 48%),
        linear-gradient(to left, rgba(7, 24, 51, 0.92) 0%, rgba(18, 48, 106, 0.84) 42%, rgba(7, 24, 51, 0.38) 100%);
}

@media (min-width: 768px) {
    .service-scene--chat {
        grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
        gap: 3rem;
    }

    .service-scene--web {
        grid-template-columns: minmax(280px, 1.05fr) minmax(0, 0.95fr);
        gap: 2.5rem;
    }
}

@media (max-width: 767px) {
    .service-scene--auto::before,
    .service-scene--chat::before,
    .service-scene--web::before {
        background:
            radial-gradient(80% 40% at 50% 0%, rgba(80, 220, 255, 0.16), transparent 55%),
            linear-gradient(180deg, rgba(7, 24, 51, 0.42) 0%, rgba(7, 24, 51, 0.88) 36%, rgba(8, 22, 48, 0.94) 100%);
    }

    .service-scene--chat .meta-live {
        order: -1;
    }
}

.meta-live {
    display: flex;
    justify-content: center;
}

.meta-live-phone {
    width: min(100%, 340px);
    border-radius: 1.75rem;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(80, 220, 255, 0.22), transparent 46%),
        #071833;
    color: #f4f8ff;
    padding: 1rem 0.95rem 1.05rem;
    border: 1px solid rgba(80, 220, 255, 0.38);
    box-shadow: 0 22px 48px rgba(5, 26, 62, 0.28);
    animation: meta-float 7s ease-in-out infinite;
}

.meta-live-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.15rem 0.25rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-live-pulse {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #3ddc97;
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.7);
    animation: meta-pulse 2.2s ease-out infinite;
    flex: 0 0 auto;
}

.meta-live-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9eb4d4;
}

.meta-live-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
}

.meta-live-pill {
    margin-left: auto;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 650;
    color: #063024;
    background: #b8f5d6;
}

.meta-live-thread {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 280px;
    padding-top: 0.9rem;
}

.meta-live-bubble {
    margin: 0;
    max-width: 88%;
    border-radius: 1rem;
    padding: 0.62rem 0.75rem;
    font-size: 0.84rem;
    line-height: 1.35;
    opacity: 0;
    animation: meta-bubble 11s ease-in-out infinite;
}

.meta-live-bubble--in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 0.35rem;
}

.meta-live-bubble--out {
    align-self: flex-end;
    background: #123f86;
    border: 1px solid rgba(80, 220, 255, 0.35);
    border-bottom-right-radius: 0.35rem;
}

.meta-live-bubble:nth-child(1) { animation-delay: 0s; }
.meta-live-bubble:nth-child(2) { animation-delay: 0.7s; }
.meta-live-bubble:nth-child(3) { animation-delay: 1.5s; }
.meta-live-bubble:nth-child(4) { animation-delay: 2.2s; }

.meta-live-ticks {
    margin-left: 0.35rem;
    color: #50dcff;
    font-size: 0.72rem;
    letter-spacing: -0.08em;
}

.meta-live-typing {
    align-self: flex-start;
    display: flex;
    gap: 0.28rem;
    align-items: center;
    height: 1.7rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: meta-typing-wrap 11s ease-in-out infinite;
    animation-delay: 3s;
}

.meta-live-typing span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #50dcff;
    animation: meta-dot 1.1s ease-in-out infinite;
}

.meta-live-typing span:nth-child(2) { animation-delay: 0.15s; }
.meta-live-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes meta-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes meta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

@keyframes meta-bubble {
    0%, 6% { opacity: 0; transform: translateY(12px); }
    14%, 78% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes meta-typing-wrap {
    0%, 18% { opacity: 0; }
    28%, 70% { opacity: 1; }
    82%, 100% { opacity: 0; }
}

@keyframes meta-dot {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .meta-live-phone,
    .meta-live-pulse,
    .meta-live-bubble,
    .meta-live-typing,
    .meta-live-typing span {
        animation: none;
    }

    .meta-live-bubble,
    .meta-live-typing {
        opacity: 1;
        transform: none;
    }
}

/* Catálogo SaaS: seis fichas con captura animada */
.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-toolbar-count {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #434654;
}

.product-billing {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    background: #e9edff;
}

.product-billing button {
    border: 0;
    background: transparent;
    color: #051a3e;
    font: 600 0.84rem/1 Inter, sans-serif;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
}

.product-billing button[aria-pressed="true"] {
    background: #051a3e;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(195, 198, 214, 0.85);
    box-shadow: 0 18px 40px -24px rgba(5, 26, 62, 0.35);
}

.shot {
    position: relative;
    background: #071833;
    min-height: 210px;
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 2rem;
    padding: 0 0.8rem;
    background: rgba(255, 255, 255, 0.06);
}

.shot-bar span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.shot-bar em {
    margin-left: 0.45rem;
    font-style: normal;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.shot-canvas {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.75rem;
    height: 178px;
    padding: 0.9rem 1rem 1rem;
}

.shot-side {
    border-radius: 0.6rem;
    background: rgba(80, 220, 255, 0.12);
}

.shot-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
}

.shot-main b {
    display: block;
    height: 0.55rem;
    width: var(--w, 70%);
    border-radius: 999px;
    background: linear-gradient(90deg, #50dcff, #8eb6ff);
    transform-origin: left center;
    animation: shot-bar 2.8s ease-in-out infinite;
}

.shot-main b:nth-child(1) { --w: 86%; }
.shot-main b:nth-child(2) { --w: 62%; animation-delay: 0.15s; }
.shot-main b:nth-child(3) { --w: 74%; animation-delay: 0.3s; }
.shot-main b:nth-child(4) { --w: 40%; animation-delay: 0.45s; }

.shot-canvas--chat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.45rem;
}

.shot-canvas--chat p {
    margin: 0;
    height: 1.35rem;
    border-radius: 0.7rem;
    opacity: 0;
    animation: shot-bubble 8s ease-in-out infinite;
}

.shot-canvas--chat p:nth-child(odd) {
    width: 68%;
    background: rgba(255, 255, 255, 0.12);
}

.shot-canvas--chat p:nth-child(even) {
    width: 58%;
    margin-left: auto;
    background: #123f86;
    border: 1px solid rgba(80, 220, 255, 0.4);
}

.shot-canvas--chat p:nth-child(2) { animation-delay: 0.4s; }
.shot-canvas--chat p:nth-child(3) { animation-delay: 0.8s; }
.shot-canvas--chat p:nth-child(4) { animation-delay: 1.2s; }

.shot-canvas--board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.shot-canvas--board div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.45rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
}

.shot-canvas--board i {
    display: block;
    height: 1.7rem;
    border-radius: 0.4rem;
    background: rgba(80, 220, 255, 0.22);
    animation: shot-card 3.2s ease-in-out infinite;
}

.shot-canvas--board div:nth-child(2) i { animation-delay: 0.25s; background: rgba(142, 182, 255, 0.35); }
.shot-canvas--board div:nth-child(3) i { animation-delay: 0.5s; }

.shot--chart .shot-canvas {
    display: block;
}

.shot--chart svg {
    width: 100%;
    height: 150px;
}

.shot--chart path {
    fill: none;
    stroke: #50dcff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: shot-draw 3.4s ease-in-out infinite;
}

.shot-canvas--list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.shot-canvas--list p {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    animation: shot-row 4.8s ease-in-out infinite;
}

.shot-canvas--list p:nth-child(2) { animation-delay: 0.35s; }
.shot-canvas--list p:nth-child(3) { animation-delay: 0.7s; }
.shot-canvas--list p:nth-child(4) { animation-delay: 1.05s; }

.shot-canvas--list i {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #50dcff;
}

.shot-canvas--list b {
    display: block;
    height: 0.4rem;
    width: 70%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.shot-canvas--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.shot-canvas--grid i {
    display: block;
    border-radius: 0.55rem;
    background: rgba(80, 220, 255, 0.16);
    animation: shot-cell 2.6s ease-in-out infinite;
}

.shot-canvas--grid i:nth-child(2) { animation-delay: 0.15s; }
.shot-canvas--grid i:nth-child(3) { animation-delay: 0.3s; }
.shot-canvas--grid i:nth-child(4) { animation-delay: 0.45s; }
.shot-canvas--grid i:nth-child(5) { animation-delay: 0.6s; }
.shot-canvas--grid i:nth-child(6) { animation-delay: 0.75s; }

.shot-play {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: #fff;
    color: #051a3e;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.shot-play .material-symbols-outlined {
    font-size: 28px;
}

.product-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.25rem 1.25rem 1.35rem;
}

.product-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00687b;
}

.product-body h2 {
    margin: 0 0 0.25rem;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1.7rem;
    line-height: 1.15;
    color: #051a3e;
}

.product-desc {
    margin: 0 0 0.35rem;
    color: #434654;
    line-height: 1.5;
}

.product-points {
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
    color: #051a3e;
}

.product-points li {
    position: relative;
    padding-left: 1.1rem;
    margin: 0.28rem 0;
}

.product-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #50dcff;
}

.product-amount {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #051a3e;
}

.product-amount [data-price-unit] {
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #434654;
}

.product-amount-note {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: #737685;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.product-subscribe,
.product-actions .product-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.product-subscribe {
    background: #003d9b;
    color: #fff;
}

.product-subscribe:hover {
    background: #0052cc;
}

.product-actions .product-youtube {
    border: 1.5px solid rgba(0, 61, 155, 0.25);
    color: #003d9b;
}

.product-actions .product-youtube:hover {
    border-color: #003d9b;
    background: rgba(0, 61, 155, 0.04);
}

@keyframes shot-bar {
    0%, 100% { transform: scaleX(0.4); }
    50% { transform: scaleX(1); }
}

@keyframes shot-bubble {
    0%, 8% { opacity: 0; transform: translateY(8px); }
    18%, 80% { opacity: 1; transform: translateY(0); }
    92%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes shot-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shot-draw {
    0% { stroke-dashoffset: 320; }
    55%, 80% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -320; }
}

@keyframes shot-row {
    0%, 100% { background: rgba(255, 255, 255, 0.05); }
    40% { background: rgba(80, 220, 255, 0.18); }
}

@keyframes shot-cell {
    0%, 100% { opacity: 0.45; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); background: rgba(80, 220, 255, 0.4); }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shot-main b,
    .shot-canvas--chat p,
    .shot-canvas--board i,
    .shot--chart path,
    .shot-canvas--list p,
    .shot-canvas--grid i {
        animation: none;
    }

    .shot-canvas--chat p,
    .shot-canvas--grid i {
        opacity: 1;
        transform: none;
    }

    .shot--chart path {
        stroke-dashoffset: 0;
    }
}

.contact-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    margin-bottom: 72px;
    padding: 128px 0 64px;
    overflow: hidden;
}

.contact-hero-photo {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: calc(100% + 64px);
    object-fit: cover;
    object-position: 72% center;
    transform: translateY(64px);
}

.contact-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(250, 249, 255, 0.96) 0%, rgba(250, 249, 255, 0.9) 34%, rgba(250, 249, 255, 0.62) 58%, rgba(250, 249, 255, 0.12) 100%),
        linear-gradient(180deg, rgba(250, 249, 255, 0.35) 0%, transparent 28%, transparent 72%, rgba(250, 249, 255, 0.92) 100%);
}

.contact-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.contact-kicker {
    margin-bottom: 12px;
    color: #005f71;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-hero-lead {
    max-width: 38rem;
    color: #1d3054;
}

@media (max-width: 767px) {
    .contact-hero {
        min-height: 460px;
        align-items: center;
    }

    .contact-hero-copy {
        max-width: none;
        text-align: left;
    }

    .contact-hero-scrim {
        background:
            linear-gradient(180deg, rgba(250, 249, 255, 0.55) 0%, rgba(250, 249, 255, 0.9) 32%, rgba(250, 249, 255, 0.9) 78%, rgba(250, 249, 255, 0.96) 100%);
    }

    .contact-hero-photo {
        object-position: center top;
    }
}

.contact-card {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(80, 220, 255, 0.22);
    border-radius: 1.25rem;
    background: #071833;
    color: #d5deef;
    box-shadow: 0 28px 64px -16px rgba(5, 26, 62, 0.42);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.contact-card-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card-photo--chat {
    object-position: 70% center;
}

.contact-card-photo--place {
    object-position: 68% center;
}

.contact-card-photo--consult {
    object-position: center 40%;
}

.contact-form-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(80, 220, 255, 0.22);
    border-radius: 1.25rem;
    background: #071833;
    color: #d5deef;
    box-shadow: 0 28px 64px -16px rgba(5, 26, 62, 0.42);
}

.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 24, 51, 0.72) 0%, rgba(7, 24, 51, 0.88) 42%, rgba(7, 24, 51, 0.94) 100%);
}

.contact-form-card h2,
.contact-form-card form {
    position: relative;
    z-index: 2;
}

.contact-form-card h2 {
    color: #f7f9ff;
}

.contact-form-card label,
.contact-form-card form > p {
    color: #d5deef;
}

.contact-form-card .contact-field {
    background: #f7f9ff;
    border-color: rgba(247, 249, 255, 0.85);
    color: #051a3e;
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.65);
}

.contact-form-card .contact-field::placeholder {
    color: #5c6478;
}

.contact-form-card .contact-field:hover {
    background: #fff;
    border-color: #50dcff;
}

.contact-form-card .contact-field:focus {
    background: #fff;
    border-color: #50dcff;
    box-shadow: 0 0 0 4px rgba(80, 220, 255, 0.45);
}

.contact-form-card select option {
    background: #fff;
    color: #051a3e;
}

.contact-select-icon {
    color: #003d9b;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 24, 51, 0.42) 0%, rgba(7, 24, 51, 0.78) 48%, rgba(7, 24, 51, 0.92) 100%);
}

.contact-card-icon,
.contact-card h3,
.contact-card p {
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    color: #f7f9ff;
}

.contact-card p {
    color: #d5deef;
}

.contact-card--wide {
    grid-column: 1 / -1;
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1px solid rgba(80, 220, 255, 0.38);
    background: rgba(80, 220, 255, 0.12);
    color: #50dcff;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(80, 220, 255, 0.72);
    background: #0a2148;
    box-shadow: 0 28px 48px -18px rgba(5, 26, 62, 0.55);
}

.contact-card:hover .contact-card-icon {
    background: #50dcff;
    color: #005f71;
    transform: scale(1.06);
}

.contact-card:hover .contact-card-photo {
    transform: scale(1.08);
}

.contact-card-icon--whatsapp {
    color: #25d366;
}

.whatsapp-icon {
    width: 26px;
    height: 26px;
    display: block;
}

.contact-map {
    height: 380px;
    overflow: hidden;
    border: 1px solid rgba(195, 198, 214, 0.9);
    border-radius: 1.5rem;
    background: #f1f3ff;
    box-shadow: 0 28px 50px -28px rgba(5, 26, 62, 0.45);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-field {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-field:hover {
    border-color: rgba(0, 61, 155, 0.35);
}

.contact-field:focus {
    border-color: #50dcff;
    box-shadow: 0 0 0 4px rgba(80, 220, 255, 0.28);
}

.contact-field:user-invalid {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 4px rgba(186, 26, 26, 0.12);
}

.contact-page .contact-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 12px 28px -16px rgba(0, 61, 155, 0.7);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.35s ease;
}

.contact-page .contact-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.48) 48%, transparent 68%);
    transform: translateX(-130%);
    pointer-events: none;
}

.contact-page .contact-btn:hover::after {
    transform: translateX(130%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-page .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -14px rgba(0, 61, 155, 0.62), 0 0 0 1px rgba(80, 220, 255, 0.45);
}

.contact-page .contact-btn:hover .material-symbols-outlined {
    transform: translateX(6px);
}

.contact-page .contact-btn .material-symbols-outlined {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-page .contact-btn:active {
    transform: translateY(0) scale(0.98);
}

.contact-page .contact-submit:disabled {
    cursor: progress;
    transform: none;
}

@media (max-width: 639px) {
    .contact-card--wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .contact-card-icon,
    .contact-card-photo,
    .contact-page .contact-btn,
    .contact-page .contact-btn::after,
    .contact-page .contact-btn .material-symbols-outlined {
        transition: none;
    }

    .contact-page .contact-btn:hover,
    .contact-card:hover,
    .contact-card:hover .contact-card-icon,
    .contact-card:hover .contact-card-photo,
    .contact-page .contact-btn:hover .material-symbols-outlined {
        transform: none;
    }
}
