:root {
    --primary: #5827A4;
    /* Morado */
    --secondary: #FFB800;
    /* Amarillo */
    --white: #FFFFFF;
    --text-main: #FFFFFF;
    --text-muted: #D1D1D1;
    --bg-main: #5827A4;
    --bg-alt: #461e84;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Reusable Components */
.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-tagline {
    display: block;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

@media (max-width: 768px) {
    .contact.section {
        padding-top: 100px;
    }
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: #000;
}

.btn-primary:hover {
    background-color: #e6a600;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: #000;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header.scrolled {
    background: rgba(88, 39, 164, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-right: 20px;
}

/* Hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

.logo-brand {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: height 0.5s ease;
}

.header.scrolled .logo-brand {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links .nav-cta:hover {
    background-color: #e6a600;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #000 !important;
    /* Keep text dark as in other primary buttons */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(rgba(88, 39, 164, 0.95), rgba(88, 39, 164, 0.95)), url('Recursos/Emprendedores.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

.hero-title span {
    color: #FFB800;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, rgba(88, 39, 164, 0) 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    filter: blur(50px);
    animation: move 20s infinite alternate;
}

.blob-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(88, 39, 164, 0) 70%);
    animation: move 15s infinite alternate-reverse;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

/* About Section */
.lexe-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.team-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.lexe-card:hover .team-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--bg-main);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 30px;
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.2);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Plans */
.plans-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    flex: 1;
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.plan-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 2rem;
}

.plan-features {
    margin-bottom: 3rem;
}

.plan-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.plan-features li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Contact Form Section */
.contact.section {
    padding-top: 100px;
    scroll-margin-top: 100px;
}

.contact.section .grid-2 {
    align-items: flex-start;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input.error {
    border-color: #ff4d4d !important;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 80px 0 120px;
    border-top: 1px solid var(--border-color);
}

.footer-logo.logo-brand {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-sticky:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .logo-brand {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width for cleaner look */
        height: 100vh;
        background: #5827A4;
        /* Brand Violet */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        box-shadow: none;
    }

    .contact-form-wrapper {
        width: 95%;
        margin: 0 auto;
    }

    .contact.section {
        scroll-margin-top: 100px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: #FFFFFF !important;
        font-weight: 700;
        letter-spacing: 1px;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #FFB800 !important;
    }

    .nav-cta-item {
        margin-top: 1rem;
    }

    .nav-cta-item .nav-cta {
        display: inline-block;
        padding: 1.2rem 3rem;
        font-size: 1.2rem;
    }

    /* Hide original desktop CTA if still exists or just ensure the list one is shown */
    .nav>.nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
    }

    .mobile-menu-btn span {
        width: 30px;
        height: 3px;
        background: #FFB800;
        /* Brand Yellow */
        transition: var(--transition);
        border-radius: 2px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header {
        padding: 1rem 0;
    }

    .logo img {
        height: 50px !important;
    }

    .header.scrolled {
        padding: 0.8rem 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .portfolio-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact.section .grid-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-form {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .form-group label {
        text-align: center;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .plans-grid {
        flex-direction: column;
    }

    .plan-card.featured {
        transform: scale(1);
    }
}