/* =================================================================
   GESTION-DE-REDES.CSS
   Página de servicios Social Media Management
   ================================================================= */

/* -----------------------------------------------------------------
   IMPORTS - Sistema Modular
   ----------------------------------------------------------------- */
@import url('styles/_tokens.css');
@import url('styles/_reset.css');
@import url('styles/_nav.css');
@import url('styles/_components.css');
@import url('styles/_utilities.css');

/* -----------------------------------------------------------------
   PAGE-SPECIFIC STYLES
   ----------------------------------------------------------------- */

/* Animación Text Reveal */
.reveal-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, var(--text-on-dark) 50%, rgba(255, 255, 255, 0.2) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 1s ease-in-out;
}

.reveal-text.visible {
    background-position: 0 0;
}

/* Animación Marquee Logos */
.animate-marquee-logos {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ocultar Scrollbar móvil */
.hide-scroll::-webkit-scrollbar {
    display: none;
}

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animaciones Flotantes */
@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-float-1 {
    animation: float-card 6s ease-in-out infinite;
}

.animate-float-2 {
    animation: float-card 7s ease-in-out infinite 1s;
}

.animate-float-3 {
    animation: float-card 8s ease-in-out infinite 2s;
}

.group:hover {
    animation-play-state: paused;
}

.icon-pop {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -----------------------------------------------------------------
   STACKING CARDS
   ----------------------------------------------------------------- */
.stack-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 10vh;
}

.stack-card {
    position: sticky;
    top: 120px;
    margin: 0 auto 5vh auto;
    width: 100%;
    max-width: 1200px;
    min-height: 70vh;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
    transform-origin: center top;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .stack-card {
        flex-direction: row;
        min-height: 550px;
    }
}

/* Z-index */
.stack-card:nth-child(1) {
    z-index: 1;
}

.stack-card:nth-child(2) {
    z-index: 2;
}

.stack-card:nth-child(3) {
    z-index: 3;
}

/* Contenido */
.stack-card .card-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

@media (min-width: 768px) {
    .stack-card .card-content {
        padding: var(--space-12);
    }
}

@media (min-width: 1024px) {
    .stack-card .card-content {
        padding: var(--space-16);
        width: 50%;
    }
}

.stack-card .card-visual {
    flex: 1;
    position: relative;
    min-height: 300px;
}

@media (min-width: 1024px) {
    .stack-card .card-visual {
        width: 50%;
        min-height: auto;
    }
}

/* Tipografía unificada */
.stack-card h2,
.stack-card h3 {
    font-size: var(--text-h2);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {

    .stack-card h2,
    .stack-card h3 {
        margin-bottom: var(--space-6);
    }
}

.stack-card p {
    font-size: var(--text-small);
    line-height: var(--leading-normal);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .stack-card p {
        font-size: var(--text-body);
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    .stack-card p {
        font-size: var(--text-body-lg);
        line-height: var(--leading-relaxed);
        margin-bottom: 0;
    }
}

/* Tags unificados */
.stack-card .phase-tag,
.stack-card .tech-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-micro);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    margin-right: var(--space-2);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {

    .stack-card .phase-tag,
    .stack-card .tech-tag {
        font-size: var(--text-caption);
        padding: var(--space-2) var(--space-4);
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .stack-card {
        top: 100px;
        margin-bottom: var(--space-6) !important;
        min-height: auto;
    }

    .stack-card .card-content {
        padding: var(--space-6) !important;
    }
}

/* -----------------------------------------------------------------
   LIVING GROWTH CURVE ANIMATION
   ----------------------------------------------------------------- */
.draw-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 2.5s var(--ease-smooth);
}

.growth-active .draw-path {
    stroke-dashoffset: 0;
}

.growth-active .milestone-point {
    opacity: 1;
    transform: translate(-50%, 0);
}

.growth-active .milestone-point:last-child {
    transform: translate(0, 0);
}