/*======================================================== */
/*======== CSS DEL TEMPLATE DE INDEX.HTML Y SERVICES.HTML ============= */
/*======================================================== */
/* Orden y secciones (sin alterar cascada):
   1) Navbar y links
   2) Hero / mockups / animaciones
   3) Servicios / cards / orbitas
   4) Formularios / contacto
   5) Componentes reutilizables
   6) Responsive (media queries)
*/

/* ================================
   BARRA DE NAVEGACION Y ANIMACIONES
================================ */
.nav-link,
.mobile-link {
    position: relative;
    padding-bottom: 12px;
    color: rgb(209, 213, 219);
    transition: color 0.3s ease;
}

.nav-link:hover,
.mobile-link:hover {
    color: #22d3ee;
}

/* ================= LINEA DE HOVER ================= */
.nav-link::after,
.mobile-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #67e8f9);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
    opacity: 0;
    transition: width 0.35s ease, opacity 0.25s ease;
}

/*Efecto que se le da al queres seleccionar el item del nav*/
.nav-link:hover::after,
.mobile-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* Punto indicador */
.nav-link::before,
.mobile-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: #22d3ee;
    border-radius: 9999px;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.2s ease;
}

/* ================= ESTADO ACTIVO ================= */
.nav-link.active,
.mobile-link.active {
    color: #22d3ee;
}

.nav-link.active::after,
.mobile-link.active::after {
    width: 0%;
    opacity: 0;
}

.nav-link.active::before,
.mobile-link.active::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ================= BASE 3D IPHONE ================= */
.iphone-3d {
    width: 340px;
    height: 680px;
    border-radius: 3rem;
    background: linear-gradient(180deg, #1a1a1a, #090909);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 60px 160px rgba(0, 255, 255, 0.25),
        inset 0 2px 6px rgba(255, 255, 255, 0.08),
        inset 0 -2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1600px;
    transform: rotateX(6deg) rotateY(-12deg) rotateZ(-2deg);
    animation: floatSoft 6s ease-in-out infinite;
}

/* Reflejo metálico lateral */
.iphone-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.25),
            transparent 30%,
            transparent 70%,
            rgba(0, 0, 0, 0.6));
    transform: translateZ(-20px);
    filter: blur(3px);
}

/* Glow exterior */
.iphone-3d::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background: radial-gradient(circle,
            rgba(0, 255, 255, 0.2),
            transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

/* Sombra base */
.iphone-3d-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 85%;
    height: 55px;
    background: rgba(0, 0, 0, 0.75);
    filter: blur(40px);
    transform: translateX(-50%) scaleX(1.25);
    z-index: -2;
}

/* ================= NOTCH ================= */
.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(30px);
    width: 140px;
    height: 28px;
    background: linear-gradient(180deg, #000, #111);
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: inset 0 -2px 4px rgba(255, 255, 255, 0.08),
        inset 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 20;
}

/* Cámara y altavoz */
.notch::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 20px;
    width: 9px;
    height: 9px;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.notch::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 20px;
    width: 42px;
    height: 5px;
    background: linear-gradient(180deg, #333, #111);
    border-radius: 2px;
}

/* ================= BOTONES LATERALES IPHONE ================= */
.side-btn {
    position: absolute;
    width: 5px;
    background: linear-gradient(180deg, #bbb, #555);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, transform 0.2s ease;
}

.side-btn:hover {
    background: linear-gradient(180deg, #ddd, #666);
    transform: scaleY(1.05);
}

/* Posiciones */
.side-btn.left {
    left: -4px;
}

.side-btn.right {
    right: -4px;
}


/* ================= SCREEN ================= */
.screen {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.4rem) clamp(0.9rem, 2vw, 1.2rem) clamp(1.2rem, 2.5vw, 1.6rem);
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
}

.screen {
    transform: translateZ(20px);
}

/* ================= CARDS ================= */
.card-index {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 0.85rem;
    transform-style: preserve-3d;
    box-shadow:
            0 20px 40px rgba(0, 255, 255, 0.25),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ================= TEXT ================= */
.label {
    font-size: 0.7rem;
    color: #9ca3af;
}

.value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}



/* ================= FLOAT ================= */
@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/*=============================
Animacion flotante del celular el el hover
==============================*/
@keyframes float {
    0% {
        transform: translateY(0px), rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(0.3deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .iphone-3d {
        transform: none !important;
        animation: floatSoft 8s ease-in-out infinite;
    }
}

/* ================================
Animacion flotante de la tarjeta del plan avanzado y basico
================================ */
@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/*=================================
Animacion de tarjeta AVANZADA cuando se pasa el cursor
===================================
*/

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Clase base: sin animación */
.shine-effect {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    /* igual que rounded-2xl */
    background: linear-gradient(to right,
            transparent,
            rgba(0, 255, 255, 0.2),
            transparent);
    transform: translateX(-100%);
}

/* Solo en hover se activa */
.card:hover .shine-effect {
    animation: shine 2s linear forwards;
}

/* ===================================
 -----------------ORBITAS-------------
 =================================== */

.orbit {
    border: 1px dashed rgba(34, 211, 238, 0.2);
    animation: rotate linear infinite;
    transform-origin: center;
    z-index: 0;
}

.orbit-slow {
    animation-duration: 42s;
}

.orbit-medium {
    animation-duration: 32s;
}

.orbit-fast {
    animation-duration: 24s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================= ITEMS ORBITALES ================= */

.orbit-item {
    position: absolute;
    transform: translate(-50%, -50%);
}

.orbit-item span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
    color: #e5e7eb;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
    transition: transform 0.3s ease, color 0.3s ease;
}

.orbit-item span:hover {
    transform: scale(1.1);
    color: #22d3ee;
}

/* Posiciones */
.orbit-item.top-0 {
    top: 0;
    left: 50%;
}

.orbit-item.bottom-0 {
    bottom: 0;
    left: 50%;
}

.orbit-item.left-0 {
    left: 0;
    top: 50%;
}

.orbit-item.right-0 {
    right: 0;
    top: 50%;
}

#ecosystem .orbit-wrap {
    pointer-events: none;
}

#services-index {
background:
    radial-gradient(1200px circle at top center, rgba(34,211,238,0.08), transparent 40%),
    radial-gradient(800px circle at bottom, rgba(59,130,246,0.06), transparent 50%),
    linear-gradient(to bottom, #020617, #000);
}

/*======================================================== */
/*======== CSS DEL TEMPLATE DE SERVICES.HTML ============= */
/*======================================================== */

.service-card {
    position: absolute;
    width: 280px;
    height: 380px;
    padding: 40px;

    background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(0,0,0,0.85));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(34,211,238,0.18);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    touch-action: pan-y;

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.02);
}

.service-card.active {
    transform: translateX(0) scale(1.18);
    opacity: 1;
    pointer-events: auto;
    z-index: 40;

    border-color: rgba(34,211,238,0.7);
    box-shadow:
        0 40px 120px rgba(34,211,238,0.35),
        0 0 0 1px rgba(34,211,238,0.4);
}

.service-card.left {
    transform: translateX(-260px) rotate(-6deg) scale(0.92);
    opacity: 0.6;
    z-index: 20;
    pointer-events: auto;
}

.service-card.right {
    transform: translateX(260px) rotate(6deg) scale(0.92);
    opacity: 0.6;
    z-index: 20;
    pointer-events: auto;
}

.service-card.back {
    transform: translateY(40px) scale(0.8);
    opacity: 0.25;
    z-index: 5;
}

/* Centrado consistente del contenido interno de cada tarjeta */
.service-card > div {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.service-card > div > * {
    margin-left: auto;
    margin-right: auto;
}

/* ================= TABLET OPTIMIZATION ================= */
@media (max-width: 1024px) {
    .service-card {
        width: 260px;
        height: 360px;
        padding: 32px;
    }

    .service-card.active {
        transform: translateX(0) scale(1.12);
    }

    .service-card.left {
        transform: translateX(-220px) rotate(-4deg) scale(0.94);
    }

    .service-card.right {
        transform: translateX(220px) rotate(4deg) scale(0.94);
    }
}



/* ================= BASE DE SERVICIOS INCLUIDOS ================= */
.summary-box {
    position: relative;
    padding: 2rem;
    margin-bottom: 3.5rem;

    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.05),
        rgba(0,0,0,0.75)
    );

    backdrop-filter: blur(14px);
    border-radius: 1.5rem;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 25px 80px rgba(0,0,0,0.55);
}

/* ================= TITLES ================= */
.summary-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.include-title {
    color: #22d3ee;
}

.exclude-title {
    color: #f87171;
}

.summary-description {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    max-width: 52rem;
    line-height: 1.6;
}

.summary-description.muted {
    color: #6b7280;
}

/* ================= SERVICIOS INCLUIDOS ================= */
.include-glow {
    border: 1px solid rgba(34,211,238,0.35);
    box-shadow:
        0 0 0 1px rgba(34,211,238,0.2),
        0 30px 90px rgba(34,211,238,0.22);
}

/* ================= SERVICIOS EXCLUIDOS ================= */
.exclude-glow {
    border: 1px solid rgba(248,113,113,0.35);
    box-shadow:
        0 0 0 1px rgba(248,113,113,0.18),
        0 30px 90px rgba(248,113,113,0.2);
}

/* ================= LIST ================= */
.summary-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.75rem;

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ================= NAV MOBILE (SERVICES CARDS) ================= */
.mobile-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.55);
    color: #22d3ee;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mobile-nav-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(0,0,0,0.7);
    box-shadow: 0 10px 30px rgba(34,211,238,0.25);
}

.mobile-nav-btn--left {
    left: 10px;
}

.mobile-nav-btn--right {
    right: 10px;
}

/* ================= PRECIO FINAL EN TARJETA ================= */
.service-card .price_badge {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 92%;
    font-size: clamp(0.92rem, 3.6vw, 1.35rem);
    line-height: 1.15;
    word-break: break-word;
    hyphens: auto;
    padding: 0 0.25rem;
    text-align: center;
    display: block;
}

/* Ajuste específico para plan avanzado */
.service-card[data-plan="avanzado"] .price_badge {
    font-size: clamp(0.85rem, 3.2vw, 1.15rem);
    letter-spacing: -0.01em;
}

/* Asegura centrado del contenido en todas las tarjetas */
.service-card .title,
.service-card .price,
.service-card .discount,
.service-card .price_badge {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ITEM (lo que inyecta JS) */
.summary-list > li > div {
    padding: 1rem 1.25rem;
    border-radius: 0.9rem;

    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.05);

    transition: background 0.25s ease;
}

.summary-list > li > div:hover {
    background: rgba(255,255,255,0.04);
}

.summary-box {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.summary-box.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}


/* ================= FADE ================= */
.summary-fade {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        transparent
    );

    border-radius: 0 0 1.5rem 1.5rem;
}

/* ================= SCROLL SERVICIOS ================= */
.summary-list::-webkit-scrollbar {
    width: 6px;
}

.summary-list::-webkit-scrollbar-track {
    background: transparent;
}

/* INCLUDE */
#planFeatures::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        rgba(34,211,238,0.6),
        rgba(59,130,246,0.6)
    );
    border-radius: 999px;
}

/* SERVICIOS INCLUIDOS */
#planExcluded::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        rgba(248,113,113,0.55),
        rgba(239,68,68,0.55)
    );
    border-radius: 999px;
}

.summary-list::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.15);
}

/* ================= INVOICE - DETALLE DEL PRECIO TOTAL DE LA SUMA DE LOS SERVICIOS ================= */

.invoice {
    margin-top: 3rem;
}

/* FILAS */
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.65rem 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

.invoice-row span:last-child {
    font-weight: 600;
    color: #e5e7eb;
}

.invoice-row.subtle span:last-child {
    color: #03cce3;
}

/* DIVIDER */
.invoice-divider {
    margin: 1.2rem 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 225, 255, 0.18),
        transparent
    );
}

/* TOTAL */
.invoice-total {
    margin-top: 1.4rem;
    padding-top: 1.4rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-total span:first-child {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(34,211,238,0.65);
}

.invoice-total span:last-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: #22d3ee;

    text-shadow:
        0 0 20px rgba(34,211,238,0.35);
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
    #planDetails>div {
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 60px rgba(34, 211, 238, 0.12);
        }

    .summary-list {
        max-height: 240px;
    }

    .mobile-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .service-card .price_badge {
        font-size: clamp(0.95rem, 5.2vw, 1.3rem);
    }
        
    /* ===== HERO ===== */
    section.w-full.py-32 {
        padding-top: 5.5rem;
        padding-bottom: 5rem;
    }

    section.w-full h1 {
        margin-top: 1.25rem;
        margin-bottom: 2.25rem;
        line-height: 1.2;
    }

    section.w-full span.uppercase {
        display: inline-block;
        margin-bottom: 1.5rem;
    }

    section.w-full p {
        margin-bottom: 3.5rem;
        padding: 0 1rem;
        line-height: 1.65;
    }

    /* ===== SLIDER (mobile = single card) ===== */
    .relative.h-\[440px\] {
        position: relative;
        height: auto;
        display: block;
        margin-top: 2.5rem;
    }

    .service-card {
        position: relative;
        width: 100%;
        max-width: 360px;
        min-height: 360px;
        margin: 0 auto 1.75rem;

        opacity: 1 !important;
        pointer-events: auto;
        transform: none !important;
        z-index: auto;

        box-shadow:
        0 25px 70px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    }

    /* Ocultamos estados no activos */
    .service-card.left,
    .service-card.right,
    .service-card.back {
        display: none;
    }

    /* ===== CONTENIDO CARD ===== */
    .service-card ul {
        margin-top: 1.25rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .service-card button {
        margin-top: 1.75rem;
        padding: 0.75rem 1.75rem;
    }

    /* RESET TOTAL DEL STACK 3D */
    .perspective-1000 {
        perspective: none !important;
        transform-style: flat !important;
    }

    /* Contenedor de tarjetas */
    #services .relative.h-\[440px\] {
        height: 420px;
        overflow: visible;
    }

    /* Aplanamos el 3D, NO el sistema */
    #services .perspective-1000 {
        perspective: none !important;
    }

    /* Base de tarjeta */
    #services .service-card {
        width: 90%;
        max-width: 340px;
        height: auto;
        min-height: 340px;

        transform-style: flat !important;
        will-change: transform, opacity;

        transition:
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.35s ease,
            box-shadow 0.35s ease;

        box-shadow:
            0 28px 70px rgba(0, 0, 0, 0.55),
            inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    /* Estado activo */
    #services .service-card.active {
        transform: translateX(0) scale(1.05);
        opacity: 1;
        z-index: 30;
    }

    /* Lados visibles (NO ocultos) */
    #services .service-card.left {
        transform: translateX(-48px) scale(0.96);
        opacity: 0.35;
        z-index: 15;
    }

    #services .service-card.right {
        transform: translateX(48px) scale(0.96);
        opacity: 0.35;
        z-index: 15;
    }

    /* Fondo */
    #services .service-card.back {
        transform: translateY(24px) scale(0.9);
        opacity: 0.15;
        z-index: 5;
    }
}

/* Overlay menú móvil */
#menu-overlay {
    z-index: 30;
}

#mobile-menu {
    z-index: 50;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}

#mobile-menu.is-open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .service-card .price_badge {
        font-size: clamp(0.9rem, 5.4vw, 1.15rem);
        letter-spacing: -0.01em;
    }

    #services .service-card {
        max-width: 320px;
    }
}

/* ======================================================== 
================== FOOTER QUE HEREDAN TODAS LAS HOJAS =====
========================================================= */

.nav-hidden {
    transform: translateY(-100%);
}

header {
    transition: transform 0.3s ease;
}

.whatsapp-btn {
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transform-origin: right center;
    will-change: transform;
}

.whatsapp-btn:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.5);
}

.whatsapp-btn.wa-visible:hover {
    transform: translateY(0) scale(1.1);
}

.whatsapp-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(-4px);
}

.whatsapp-btn:hover .whatsapp-text,
.whatsapp-btn:focus-visible .whatsapp-text {
    max-width: 120px;
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn.wa-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 640px) {
    .whatsapp-btn:hover,
    .whatsapp-btn.wa-visible:hover {
        transform: translateY(0) scale(1.05) translateX(-6px);
    }
}
@media (max-width: 768px) {
    .screen {
        gap: 0.5rem;
        padding: 1.4rem 0.85rem 1.1rem;
    }

    .card-index {
        padding: 0.7rem;
    }

    .value {
        font-size: 1rem;
    }

    .label {
        font-size: 0.65rem;
    }
}

/* Nucleo: circulo en desktop, tarjeta en mobile */
.nucleus-card {
    border-radius: 50%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@media (max-width: 1280px) {
    .nucleus-card {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .nucleus-card {
        transform: scale(1.02);
    }
}

/* ================= SOCIAL BUBBLES (HERO MOCKUP) ================= */
.social-orbit {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    z-index: 5;
}

/* ================= HERO MOCKUP EXTRA UI ================= */
.mini-pill {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    padding: 6px 6px;
    text-align: center;
    color: #cbd5f5;
    font-size: 10px;
    line-height: 1.2;
}

.mini-pill span {
    display: block;
    color: #22d3ee;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 2px;
}

.mini-pill small {
    color: #9ca3af;
}

.chart-mountain {
    position: relative;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(34,211,238,0.15), rgba(59,130,246,0.08));
    overflow: hidden;
}

.tab-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    opacity: 0.75;
    background: rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.tab-icon.active {
    background: rgba(34, 211, 238, 0.25);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
    opacity: 1;
}

.tab-home::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 6px;
    border-radius: 2px;
    background: rgba(226, 232, 240, 0.8);
}

.tab-chart::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 8px;
    border-radius: 2px;
    background: rgba(226, 232, 240, 0.8);
}

.tab-gear::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid rgba(226, 232, 240, 0.8);
}

/* iPhone home indicator */
.iphone-home-indicator {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 48%;
    height: 5px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    box-shadow: 0 0 8px rgba(226, 232, 240, 0.2);
}

/* Live badge */
.status-live.offline {
    color: #94a3b8;
    position: relative;
}

.status-live.offline::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #94a3b8;
    transform: translateY(-50%);
}

.status-live.online {
    color: #22d3ee;
    position: relative;
}

.status-live.online::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22d3ee;
    transform: translateY(-50%);
}

/* Mockup responsive */
#iphone-mockup {
    width: clamp(220px, 55vw, 360px);
    height: clamp(420px, 85vw, 720px);
}

@media (max-width: 768px) {
    #iphone-mockup {
        width: clamp(210px, 70vw, 320px);
        height: clamp(400px, 120vw, 640px);
    }
}
.peak-line {
    position: absolute;
    left: -10%;
    bottom: 8px;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg, rgba(34,211,238,0.3), rgba(34,211,238,0.9), rgba(34,211,238,0.3));
    animation: mountainFlow 5s linear infinite;
}

.peak-line.second {
    bottom: 16px;
    opacity: 0.6;
    animation-duration: 7s;
}

.bar {
    width: 12%;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(34,211,238,0.9), rgba(34,211,238,0.3));
    animation: barPulse 2.6s ease-in-out infinite;
}

.bar-1 { height: 30%; animation-delay: 0s; }
.bar-2 { height: 55%; animation-delay: 0.3s; }
.bar-3 { height: 40%; animation-delay: 0.6s; }
.bar-4 { height: 75%; animation-delay: 0.9s; }
.bar-5 { height: 60%; animation-delay: 1.2s; }

@keyframes barPulse {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes mountainFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20%); }
}

.social-bubble {
    position: absolute;
    width: clamp(30px, 5.5vw, 50px);
    height: clamp(30px, 5.5vw, 50px);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 18px rgba(34,211,238,0.2);
    backdrop-filter: blur(8px);
    padding: 6px;
    object-fit: contain;
    animation-timing-function: linear;
}

.social-bubble.front { z-index: 8; }
.social-bubble.back { z-index: 2; opacity: 0.7; filter: blur(0.3px); }

@keyframes floatDriftA {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(22px, -14px, 0) rotate(6deg); }
    50%  { transform: translate3d(6px, 20px, 0) rotate(12deg); }
    75%  { transform: translate3d(-18px, 6px, 0) rotate(18deg); }
    100% { transform: translate3d(0, 0, 0) rotate(24deg); }
}

@keyframes floatDriftB {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(-24px, -6px, 0) rotate(-6deg); }
    50%  { transform: translate3d(-8px, 22px, 0) rotate(-12deg); }
    75%  { transform: translate3d(20px, 8px, 0) rotate(-18deg); }
    100% { transform: translate3d(0, 0, 0) rotate(-24deg); }
}

@keyframes floatDriftC {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(14px, 22px, 0) rotate(8deg); }
    50%  { transform: translate3d(-20px, 10px, 0) rotate(16deg); }
    75%  { transform: translate3d(-6px, -18px, 0) rotate(24deg); }
    100% { transform: translate3d(0, 0, 0) rotate(32deg); }
}

@keyframes floatDriftD {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(26px, 4px, 0) rotate(6deg); }
    50%  { transform: translate3d(8px, -22px, 0) rotate(12deg); }
    75%  { transform: translate3d(-16px, -6px, 0) rotate(18deg); }
    100% { transform: translate3d(0, 0, 0) rotate(24deg); }
}

.social-bubble.b1 { top: 6%; left: 12%; animation: floatDriftA 12s linear infinite; transform: scale(0.95); }
.social-bubble.b2 { top: 18%; right: 8%; animation: floatDriftB 15s linear infinite; transform: scale(1.05); }
.social-bubble.b3 { top: 52%; left: 0%; animation: floatDriftC 11s linear infinite; transform: scale(0.85); }
.social-bubble.b4 { bottom: 12%; right: 6%; animation: floatDriftD 14s linear infinite; transform: scale(1.1); }
.social-bubble.b5 { bottom: 28%; left: 18%; animation: floatDriftB 16s linear infinite; transform: scale(0.9); }
.social-bubble.b6 { top: 34%; right: 22%; animation: floatDriftA 10s linear infinite; transform: scale(1); }

@media (max-width: 768px) {
    .social-orbit { inset: -20px; }
    .social-bubble { padding: 4px; }
}
.site-footer {
    position: relative;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.85),
            #000);
    padding-top: 6rem;
    margin-top: 8rem;
    color: #9ca3af;
}

/* GLOW LINE */
.footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(to right,
            transparent,
            rgba(34, 211, 238, 0.45),
            transparent);

    box-shadow: 0 0 25px rgba(34, 211, 238, 0.35);
}

/* CONTAINER */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

/* BRAND */
.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: white;
}

.footer-logo span {
    color: #22d3ee;
}

.footer-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 380px;
}

/* TITLES */
.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: #e5e7eb;
}

/* NAV */
.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #9ca3af;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: #22d3ee;
}

.footer-muted {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    max-width: 280px;
    line-height: 1.6;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(34, 211, 238, 0.15);
    padding: 1.75rem 2rem;

    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}
