/* --- PALETA DE COLORES FUTURISTA Y VARIABLES --- */

:root {
    --primary-color: #00ff9c;
    /* Verde neón / eléctrico */
    --primary-dark: #00e68a;
    --accent-color: #00c3ff;
    /* Azul eléctrico como acento */
    --dark-color: #080a10;
    /* Azul muy oscuro, casi negro */
    --text-light: #e0e5f0;
    /* Blanco ligeramente azulado */
    --text-secondary: #8892b0;
    /* Gris azulado para texto secundario */
    --card-bg: rgba(20, 25, 40, 0.5);
    /* Fondo para tarjetas (con transparencia) */
    --card-border: rgba(100, 110, 150, 0.2);
    --card-border-hover: rgba(0, 255, 156, 0.5);
    --glow-effect: 0 0 15px rgba(0, 255, 156, 0.25);
    /* Glow más sutil */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* --- ESTILOS PARA LA BARRA DE DESPLAZAMIENTO --- */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* --- RESET Y ESTILOS BASE --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--dark-color);
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 255, 156, 0.1), transparent 30%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 255, 156, 0.3);
    /* Glow de texto reducido */
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: var(--glow-effect);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


/* --- BOTONES MODERNOS --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--glow-effect);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.45);
    /* Hover más suave */
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--glow-effect);
}


/* --- BARRA DE NAVEGACIÓN CON EFECTO BLUR --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 12, 20, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.5);
    /* Glow de logo reducido */
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.4);
    /* Glow de enlace reducido */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--text-light);
    border-radius: 2px;
}


/* --- SECCIÓN HERO --- */

.hero {
    padding: 180px 0 120px;
    text-align: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.hero-content {
    flex: 1.2;
    padding-right: 50px;
}

.hero-image {
    flex: 0.8;
    text-align: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--text-light) 70%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-features {
    margin-bottom: 40px;
}

.feature {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature i {
    color: var(--primary-color);
    margin-right: 10px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}


/* --- EFECTO "GLASSMORPHISM" PARA TARJETAS GENÉRICAS --- */

.service-card,
.feature-item,
.comparison-item,
.pricing-card,
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.service-card:hover,
.feature-item:hover,
.comparison-item:hover,
.pricing-card:hover,
.faq-item:hover {
    transform: translateY(-10px);
    border-color: var(--card-border-hover);
    box-shadow: var(--glow-effect);
}


/* --- SECCIONES ESPECÍFICAS (con estilo de tarjeta) --- */

.why-us,
.services,
.features,
.pricing,
.faq {
    background-color: transparent;
}

.comparison-grid,
.services-grid,
.features-grid,
.pricing-grid {
    display: grid;
    gap: 30px;
}

.comparison-grid,
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.features-grid,
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.comparison-item,
.service-card,
.feature-item {
    text-align: center;
}

.comparison-item i,
.service-icon i,
.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 12px rgba(0, 255, 156, 0.4);
    /* Glow de icono reducido */
}

.comparison-item h3,
.service-card h3,
.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.comparison-item p,
.service-card p,
.feature-item p {
    color: var(--text-secondary);
}

.service-card .btn {
    margin-top: 20px;
}


/* --- SECCIÓN PANEL DE CONTROL --- */

.control-panel .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.panel-content {
    flex: 1;
}

.panel-image {
    flex: 1;
    text-align: center;
}

.panel-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.panel-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.panel-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.panel-features {
    list-style: none;
    margin-bottom: 30px;
}

.panel-feature {
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.panel-feature:hover,
.panel-feature.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--glow-effect);
}

.panel-feature i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.panel-feature:hover i,
.panel-feature.active i {
    color: var(--dark-color);
}

.preview-image {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.preview-image.active {
    display: block;
    opacity: 1;
}


/* --- SECCIÓN DE PRECIOS --- */

.pricing-toggle {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pricing-toggle span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-toggle .discount {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input:checked+.slider:before {
    background-color: var(--dark-color);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-card {
    padding: 0;
    text-align: center;
}

.pricing-card.popular {
    transform: scale(1.05) translateY(0);
    z-index: 1;
    border: 2px solid var(--primary-color);
}

.popular-tag {
    position: absolute;
    top: 15px;
    right: -40px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    padding: 30px;
}

.pricing-header h3 {
    font-size: 1.8rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.amount.annual {
    display: none;
}

.pricing-features {
    padding: 30px;
    border-top: 1px solid var(--card-border);
}

.pricing-features ul li {
    margin-bottom: 15px;
    color: var(--text-light);
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.pricing-footer {
    padding: 0 30px 30px;
}


/* --- SECCIÓN FAQ (ACORDEÓN) --- */

.faq-item {
    margin-bottom: 20px;
    padding: 0;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-light);
}

.faq-toggle i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}


/* --- FOOTER --- */

.footer {
    background-color: var(--dark-color);
    padding: 80px 0 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer .logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer ul li {
    margin-bottom: 15px;
}

.footer a {
    color: var(--text-secondary);
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* --- RESPONSIVE --- */

@media (max-width: 992px) {
    .hero .container,
    .control-panel .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content,
    .panel-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 65px;
        /* Altura de la navbar */
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid var(--card-border);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .hamburger {
        display: block;
        z-index: 1001;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}