: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: 8rem 2rem 9rem 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%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Contenedor de texto con efecto de revelación */
.text-reveal-container {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding: 3rem 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(16px);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.25s;
    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(16px);
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

/* 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(25px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.18s;
}

.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, minmax(0, 1fr));
    gap: 1.75rem;
    width: 100%;
    max-width: 1100px;
    margin: 1.5rem auto 0 auto;
    justify-content: center;
    align-items: stretch;
    justify-items: stretch;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 2.2rem 1.6rem;
    border: 1px solid rgba(160, 244, 42, 0.2);
    transition: all 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(160, 244, 42, 0.5);
    box-shadow: 0 10px 30px rgba(160, 244, 42, 0.12);
}

.feature-icon {
    width: 66px;
    height: 66px;
    min-width: 66px;
    min-height: 66px;
    border-radius: 50%;
    background: #040803;
    border: 1.5px solid rgba(160, 244, 42, 0.35);
    box-shadow: inset 0 0 14px rgba(160, 244, 42, 0.2), 0 0 18px rgba(160, 244, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    font-size: 1.65rem;
    color: var(--primary-color);
    transition: all 0.35s ease;
}

.feature-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(134, 255, 5, 0.8));
    transition: all 0.35s ease;
}

.feature-card:hover .feature-icon {
    border-color: rgba(160, 244, 42, 0.7);
    box-shadow: inset 0 0 18px rgba(160, 244, 42, 0.35), 0 0 25px rgba(160, 244, 42, 0.3);
    transform: scale(1.05);
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* 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 */
.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);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .text-reveal-container {
        padding: 2rem 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 420px;
        width: 100%;
        margin: 1.5rem auto 0 auto;
    }

    .feature-card {
        padding: 1.8rem 1.4rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    .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;
    }

    .features-grid {
        max-width: 100%;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* 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;
}

.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;
}

@keyframes moveLineUp {

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

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

@keyframes moveLineDown {

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

    50% {
        transform: translateY(30px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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);
}

@media (max-width: 992px) {

    .media-container,
    .media-container.reverse {
        flex-direction: column;
    }

    .media-content {
        padding: 3rem 2rem;
    }

    .media-visual {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .media-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .media-content {
        text-align: center;
        align-items: center;
    }

    .feature-list li {
        justify-content: center;
    }
}

.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}