/* Variables de colores del tema */
:root {
    --primary: #6C63FF;
    --secondary: #2A265F;
    --accent: #FF6584;
    --dark: #1A1A2E;
    --light: #F5F5F7;
    --success: #4CAF50;
    --warning: #FFC107;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Efecto de cursor */
.cursor-follow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,99,255,0.2) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s;
}

/* Header y navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 8px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 8px;
    left: 8px;
    transform-origin: center;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    margin: 5px;
    transition: all 0.3s;
}

/* Sección Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 10% 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    height: 8px;
    width: 100%;
    background-color: rgba(108, 99, 255, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.secondary-button {
    background-color: transparent;
    color: var(--secondary);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.secondary-button:hover {
    background-color: var(--secondary);
    color: white;
}

.features-preview {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    background-color: rgba(108, 99, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--primary);
}

/* Elementos flotantes y formas */
.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    z-index: 2;
}

.floating-ui {
    position: absolute;
    width: 500px;
    height: 400px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.3s;
    pointer-events: none;
    color: #888;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.8rem;
    background-color: white;
    padding: 0 0.5rem;
    color: var(--primary);
}

.input-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-button {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #5A52E0;
}

.floating-element {
    position: absolute;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    z-index: 1;
}

.element-1 {
    width: 180px;
    height: 70px;
    top: 50px;
    right: -30px;
    animation: float2 7s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.element-2 {
    width: 160px;
    height: 160px;
    bottom: 30px;
    left: -50px;
    animation: float3 8s ease-in-out infinite;
    padding: 1.5rem;
}

.element-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--primary);
}

.element-text {
    font-size: 0.85rem;
}

.element-text .highlight {
    color: var(--success);
    font-weight: 600;
}

.otp-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.otp-input {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.element-2 p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.element-2 h4 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float3 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.shape {
    position: absolute;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(108, 99, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 101, 132, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: 10%;
}

/* Sección de Características */
#features {
    padding: 6rem 10%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card-desc {
    color: #666;
    line-height: 1.6;
}

/* Sección de Tecnología */
#tech {
    padding: 6rem 10%;
    background-color: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 3rem;
}

.tech-image {
    position: relative;
}

.code-window {
    background-color: #1E1E3F;
    border-radius: 12px;
    padding: 2rem;
    height: 400px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.window-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background-color: #FF5F56; }
.yellow { background-color: #FFBD2E; }
.green { background-color: #27C93F; }

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #A599E9;
}

.code-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.line-number {
    color: #565676;
    width: 30px;
    text-align: right;
    margin-right: 1rem;
}

.keyword {
    color: #FF6AC1;
}

.string {
    color: #FFEA00;
}

.comment {
    color: #697098;
}

.function {
    color: #5ADEEB;
}

.tech-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tech-desc {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.tech-item i {
    color: var(--accent);
}

.shape-3 {
    width: 500px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    position: absolute;
    top: -250px;
    right: -100px;
}

/* Sección de Precios */
#pricing {
    padding: 6rem 10%;
    position: relative;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.pricing-tab {
    padding: 0.7rem 1.5rem;
    border: none;
    background-color: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.pricing-tab.active {
    color: var(--primary);
}

.tab-slider {
    position: absolute;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    bottom: -10px;
    transition: transform 0.3s, width 0.3s;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    width: 150px;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: #888;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #555;
}

.pricing-feature i {
    color: var(--success);
}

.pricing-feature.inactive {
    color: #bbb;
}

.pricing-feature.inactive i {
    color: #ddd;
}

.pricing-button {
    background-color: transparent;
    color: var(--primary);
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
}

.pricing-button:hover {
    background-color: var(--primary);
    color: white;
}

.pricing-popular-button {
    background-color: var(--primary);
    color: white;
}

.pricing-popular-button:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Sección FAQ */
#faq {
    padding: 6rem 10%;
    background-color: rgba(108, 99, 255, 0.02);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Sección CTA */
#cta {
    padding: 8rem 10%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-button {
    background-color: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.shape-4 {
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    position: absolute;
    bottom: -200px;
    left: -100px;
}

.shape-5 {
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    position: absolute;
    top: -100px;
    right: 10%;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 10% 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    transition: background-color 0.3s;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary);
}

.footer-links-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

/* Diseño Responsivo */
@media (max-width: 1100px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    #hero {
        flex-direction: column-reverse;
        padding-top: 6rem;
        gap: 3rem;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .floating-ui {
        width: 90%;
        left: 5%;
    }
    
    nav ul {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-preview {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}
