/* Variables de colores y estilos generales */
:root {
    --primary: #9370DB;
    --primary-dark: #6A5ACD;
    --primary-light: #B19CD9;
    --secondary: #333333;
    --accent: #8A2BE2;
    --bg-color: #FFFFFF;
    --bg-alt: #F9F8FF;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(147, 112, 219, 0.15);
}

/* Reseteo básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Animaciones de fondo */
.bubbles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.bubble:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    animation-duration: 17s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    bottom: 10%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: 3s;
}

.bubble:nth-child(5) {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    animation-duration: 19s;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-20px, 20px);
    }
    50% {
        transform: translate(20px, -20px);
    }
    75% {
        transform: translate(20px, 20px);
    }
}

/* Contenedores y estructura */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Enlaces y botones */
a {
    text-decoration: none;
    color: var(--primary-dark);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(147, 112, 219, 0.25);
    color: white;
}

/* Encabezados y texto */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5em;
}

.accent-text {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--primary-light);
    opacity: 0.4;
    z-index: -1;
}

/* Header y navegación */
.header {
    background-color: white;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.logo-accent {
    color: var(--primary-dark);
    font-weight: 500;
}

.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin: 0 1rem;
}

.desktop-nav ul li a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

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

.desktop-nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 0.8rem 2rem;
}

.mobile-nav ul li a:hover {
    background-color: var(--bg-alt);
}

/* Hero */
.hero {
    padding: 4rem 0;
    position: relative;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.users-count {
    display: flex;
    align-items: center;
    background-color: rgba(147, 112, 219, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.users-icon {
    margin-right: 0.5rem;
}

.users-icon svg {
    fill: var(--primary-dark);
}

.feature-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.check-icon {
    display: flex;
    margin-right: 0.3rem;
}

.check-icon svg {
    fill: var(--primary);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-artwork {
    max-width: 100%;
    height: auto;
}

/* Animación pulsante para botón */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: rotateZ(60deg) translate(-5em, 7.5em);
    }
    100% {
        transform: rotateZ(60deg) translate(1em, -9em);
    }
}

/* Secciones */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-light);
}

/* Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(147, 112, 219, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(147, 112, 219, 0.1);
}

.feature-icon svg {
    fill: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Cómo funciona */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
}

.step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-connector {
    display: flex;
    align-items: center;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.1), rgba(106, 90, 205, 0.2));
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h3 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    padding-right: 2rem;
}

.faq-arrow {
    transition: var(--transition);
}

.faq-arrow svg {
    fill: var(--primary);
}

.faq-body {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-item.active .faq-arrow {
    transform: rotate(-180deg);
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-nav {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-nav-column {
    min-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-nav-column h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-nav-column h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-nav-column ul {
    list-style: none;
}

.footer-nav-column ul li {
    margin-bottom: 0.8rem;
}

.footer-nav-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-nav-column ul li a:hover {
    color: white;
}

.footer-favicon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .cta-group, .feature-badges {
        justify-content: center;
    }
    
    .step-connector {
        display: none;
    }
    
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    
    .footer-nav-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .footer-favicon {
        order: -1;
        margin-bottom: 2rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .users-count {
        justify-content: center;
    }
    
    .feature-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .step-item {
        padding: 1rem 0;
    }
}

/* Animación de circuitos en el hero */
.circuit-paths path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 8s infinite linear forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.central-icon {
    animation: pulse-icon 4s infinite ease-in-out;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: translate(200px, 200px) scale(1);
    }
    50% {
        transform: translate(200px, 200px) scale(1.1);
    }
}
