:root {
    --primary-color: #a0f42a;
    --primary-dark: #8ad825;
    --secondary-color: #8cf110;
    --accent-color: #ff6b6b;
    --text-color: #ffffff;
    --dark-text: #333333;
    --overlay-color: rgba(13, 21, 33, 0.7);
    --transition-speed: 0.5s;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Sección de contenido mejorada con efectos dinámicos */
.content-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
    color: #fff;
    padding: 5rem 2rem;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;  
    width: 100%;
    height: 100%;
    background: url('/Imagen.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.01;
    z-index: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.content-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

/* Contenedor de texto con efecto de revelación */
.text-reveal-container {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(160, 244, 42, 0.1);
    transition: all 0.35s ease-out;
}

.description {
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
    background: transparent;
    background: #0c0c0c70;
    backdrop-filter: blur(8.85px);
    padding: 1.5rem;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s;
    color: #ffffff;
}

.text-reveal-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(128, 198, 6, 0.147);
}

/* Etiqueta de sección */
.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(160, 244, 42, 0.1);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

/* Título con efecto de revelación */
.text-reveal {
    position: relative;
    max-width: 1000px;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}

.highlight-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.text-reveal-container:hover .highlight-text::after {
    transform: scaleX(1);
}

/* Descripción de texto */
.text-description {
    max-width: 1000px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(147, 242, 13, 0.2);
    z-index: -1;
    transform: skewX(-10deg);
    transition: height 0.3s ease;
}

.text-reveal-container:hover .highlight::after {
    height: 50%;
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(160, 244, 42, 0.05);
    border-color: rgba(160, 244, 42, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.35s ease-out;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #a0f42a;
}

.feature-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.949);
    line-height: 1.25;
}

/* Contenedor de líneas decorativas */
.decorative-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Líneas decorativas mejoradas */
.decorative-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgb(160, 244, 42), transparent);
    z-index: 0;
    transform-origin: center;
    will-change: transform;
    border-radius: 1px;
}

.line-1 {
    width: 1px;
    height: 80%;
    top: 10%;
    left: 15%;
    animation: moveLineUp 20s ease-in-out infinite, pulseGlow 8s ease-in-out infinite;
}

.line-2 {
    width: 1px;
    height: 60%;
    top: 20%;
    left: 30%;
    animation: moveLineDown 25s ease-in-out infinite, pulseGlow 10s ease-in-out infinite;
    animation-delay: 2s;
}

.line-3 {
    width: 1px;
    height: 70%;
    top: 15%;
    left: 50%;
    animation: moveLineUp 22s ease-in-out infinite, pulseGlow 9s ease-in-out infinite;
    animation-delay: 1s;
}

.line-4 {
    width: 1px;
    height: 50%;
    top: 25%;
    left: 70%;
    animation: moveLineDown 18s ease-in-out infinite, pulseGlow 7s ease-in-out infinite;
    animation-delay: 3s;
}

.line-5 {
    width: 1px;
    height: 65%;
    top: 20%;
    left: 85%;
    animation: moveLineUp 23s ease-in-out infinite, pulseGlow 11s ease-in-out infinite;
    animation-delay: 2.5s;
}

.line-6 {
    width: 1px;
    height: 75%;
    top: 12%;
    left: 92%;
    animation: moveLineDown 19s ease-in-out infinite, pulseGlow 8.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Orbes flotantes */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
    background: #91ff00d3;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: floatOrb 25s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    animation: floatOrb 30s ease-in-out infinite reverse;
    animation-delay: 5s;
    background: var(--secondary-color);
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .text-reveal-container {
        padding: 2rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .decorative-line {
        opacity: 0.15;
    }
    
    .floating-orb {
        opacity: 0.1;
    }
}

@media (max-width: 480px) {
    .section-label {
        font-size: 0.8rem;
    }
    
    .text-reveal {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }
    
    .text-description {
        font-size: 1rem;
    }
}


/* Alternating media sections */
.media-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
    padding: 0;
}

.media-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    flex-direction: row;
}

.media-container.reverse {
    flex-direction: row-reverse;
}

.media-content {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.media-visual {
    flex: 1;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.media-visual video,
.media-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
    border-radius: 10px;
}

.media-visual:hover video,
.media-visual:hover img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.566) 0%,
        rgba(0, 0, 0, 0.071) 100%
    );
    z-index: 1;
}

.reverse .media-overlay {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.566) 0%,
        rgba(0, 0, 0, 0.071) 100%
    );
}

.media-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    font-family: var(--font-secondary);
}

.media-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.media-content:hover h2::after {
    width: 120px;
}

.media-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    color: var(--text-color);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 300;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.media-content.active .feature-list li {
    opacity: 1;
    transform: translateX(0);
}

.media-content.active .feature-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.media-content.active .feature-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.media-content.active .feature-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.media-content.active .feature-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
}

.feature-list li::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

.floating-element {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
    filter: blur(30px);
}

.floating-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite;
}

.floating-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: 10%;
    animation: float 20s ease-in-out infinite reverse;
}

/* Decorative elements */
.decorative-line {
    position: absolute;
    background-color: rgba(112, 255, 16, 0.277);
    z-index: 0;
    transform-origin: center;
    will-change: transform;
}

.line-1 {
    width: 1px;
    height: 80%;
    top: 10%;
    left: 20%;
    animation: moveLineUp 15s ease-in-out infinite;
}

.line-2 {
    width: 1px;
    height: 60%;
    top: 20%;
    left: 40%;
    animation: moveLineDown 18s ease-in-out infinite;
    animation-delay: 2s;
}

.line-3 {
    width: 1px;
    height: 70%;
    top: 15%;
    left: 60%;
    animation: moveLineUp 20s ease-in-out infinite;
    animation-delay: 1s;
}

.line-4 {
    width: 1px;
    height: 50%;
    top: 25%;
    left: 80%;
    animation: moveLineDown 16s ease-in-out infinite;
    animation-delay: 3s;
}

/* Keyframes for the parallax effect */
@keyframes moveLineUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes moveLineDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(30px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Para mejorar el efecto parallax, podemos añadir un efecto de desvanecimiento */
.line-1, .line-3 {
    opacity: 0.7;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.line-2, .line-4 {
    opacity: 0.5;
    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
}

/* Efecto de respuesta al desplazamiento para un verdadero parallax */
@media (prefers-reduced-motion: no-preference) {
    .decorative-line {
        transition: transform 0.1s;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Slide-in animations for alternating sections */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
}

.slide-in-left.active,
.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .media-container, 
    .media-container.reverse {
        flex-direction: column;
    }

    .media-content {
        padding: 3rem 2rem;
    }

    .media-visual {
        height: 50vh;
    }

    .text-reveal {
        font-size: clamp(2rem, 6vw, 4rem);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    
    .description {
        padding: 0 10px;
    }

    .media-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .media-content {
        text-align: center;
        align-items: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .line-1, .line-2, .line-3, .line-4 {
        display: none;
    }
}

/* Utility classes for reveal animations */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para la sección de Internet */
.internet-section {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #151515 100%);
    overflow: hidden;
}

/* Partículas decorativas */
.internet-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.internet-particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(8px);
    z-index: 1;
}

.p1 {
    width: 15px;
    height: 15px;
    top: 15%;
    left: 10%;
    animation: floatParticle 20s ease-in-out infinite;
}

.p2 {
    width: 25px;
    height: 25px;
    top: 60%;
    left: 5%;
    animation: floatParticle 25s ease-in-out infinite reverse;
    animation-delay: 2s;
}

.p3 {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 30%;
    animation: floatParticle 18s ease-in-out infinite;
    animation-delay: 1s;
}

.p4 {
    width: 20px;
    height: 20px;
    top: 70%;
    left: 40%;
    animation: floatParticle 22s ease-in-out infinite reverse;
    animation-delay: 3s;
}

.p5 {
    width: 15px;
    height: 15px;
    top: 20%;
    right: 15%;
    animation: floatParticle 24s ease-in-out infinite;
    animation-delay: 2.5s;
}

.p6 {
    width: 30px;
    height: 30px;
    top: 65%;
    right: 10%;
    animation: floatParticle 28s ease-in-out infinite reverse;
    animation-delay: 1.5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(0, -60px);
    }
    75% {
        transform: translate(-30px, -30px);
    }
}

/* Líneas de cuadrícula */
.internet-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(160, 244, 42, 0.1), transparent);
    opacity: 0.2;
}

.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
}

.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.h1 {
    top: 25%;
    animation: pulseGridLine 8s ease-in-out infinite;
}

.h2 {
    top: 50%;
    animation: pulseGridLine 8s ease-in-out infinite;
    animation-delay: 2s;
}

.h3 {
    top: 75%;
    animation: pulseGridLine 8s ease-in-out infinite;
    animation-delay: 4s;
}

.v1 {
    left: 25%;
    animation: pulseGridLine 8s ease-in-out infinite;
    animation-delay: 1s;
}

.v2 {
    left: 50%;
    animation: pulseGridLine 8s ease-in-out infinite;
    animation-delay: 3s;
}

.v3 {
    left: 75%;
    animation: pulseGridLine 8s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes pulseGridLine {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Orbe de brillo */
.internet-glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 244, 42, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
    animation: pulseOrb 10s ease-in-out infinite;
}

@keyframes pulseOrb {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}