/* Variables y Estilos Base */
:root {
    --color-primary: #6D28D9; /* Púrpura */
    --color-secondary: #EC4899; /* Rosa */
    --color-accent: #A78BFA; /* Lila */
    --color-light: #F3F4F6; /* Gris claro */
    --color-dark: #111827; /* Casi negro */
    --color-text: #374151; /* Gris oscuro */
    --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px), 
                      radial-gradient(var(--color-secondary) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

main {
    position: relative;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-menu a {
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
}

.main-menu a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.main-menu a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--gradient-main);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 25px;
    position: relative;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 550px;
    color: var(--color-text);
    opacity: 0.9;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hexágonos animados */
.hexagon-grid {
    position: relative;
    width: 100%;
    height: 300px;
}

.hexagon {
    position: absolute;
    width: 100px;
    height: 115px;
    background: var(--gradient-main);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.8;
    animation: float 6s infinite ease-in-out;
}

.hexagon:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    animation-delay: 0s;
}

.hexagon:nth-child(2) {
    top: 30%;
    left: 60%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    animation-delay: 1s;
}

.hexagon:nth-child(3) {
    top: 70%;
    left: 60%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    animation-delay: 2s;
}

.hexagon:nth-child(4) {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    animation-delay: 3s;
}

.hexagon:nth-child(5) {
    top: 20%;
    left: 40%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 1;
    animation-delay: 4s;
}

.hexagon:nth-child(6) {
    top: 80%;
    left: 40%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 1;
    animation-delay: 5s;
}

.hexagon:nth-child(7) {
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 1;
    animation-delay: 2.5s;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -55%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Características */
.features {
    padding: 100px 0;
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 100%;
    height: 100%;
}

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

.feature-card p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* Cómo Funciona */
.how-it-works {
    padding: 100px 0;
    background-color: #F9FAFB;
    position: relative;
    overflow: hidden;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    height: 100%;
    width: 2px;
    background: var(--gradient-main);
    opacity: 0.3;
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-content p {
    margin-bottom: 0;
    opacity: 0.8;
}

.action-center {
    text-align: center;
    margin-top: 60px;
}

/* Sobre Nosotros */
.about-us {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.cta-box {
    background: var(--gradient-main);
    border-radius: var(--border-radius);
    padding: 4rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-box .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background-color: var(--color-dark);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-icon {
    width: 40px;
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-menu h4, .footer-legal h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-menu ul, .footer-legal ul {
    list-style: none;
}

.footer-menu li, .footer-legal li {
    margin-bottom: 12px;
}

.footer-menu a, .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover, .footer-legal a:hover {
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .cta-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 100px 2rem 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .main-menu.active {
        right: 0;
    }
    
    .main-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-menu li {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .steps-container::before {
        left: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
}
