:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --secondary-dark: #00a8a5;
    --dark: #2d3436;
    --dark-light: #636e72;
    --light: #f5f6fa;
    --lighter: #ffffff;
    --danger: #d63031;
    --success: #00b894;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --dark: #f5f6fa;
    --dark-light: #dfe6e9;
    --light: #1e272e;
    --lighter: #0e131b;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 2000px;
    background: rgba(30, 35, 37, 0.511);
    backdrop-filter: blur(40px) saturate(200%) brightness(0.9);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(0.9);
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    z-index: 1000;
    transition: var(--transition), border-radius 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}

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

.logo:hover {
    opacity: 0.9;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 5px;
    margin-right: 15px;
    box-sizing: content-box;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white; 
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

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

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

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

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

#login-btn {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    padding: 10px 20px;
}

#login-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

#login-btn i {
    color: inherit;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 8px;
    right: -18px;
    bottom: 0;
    background-color: #3b372b;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(40px);
}

.slider .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
}

.slider .sun {
    left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.slider .moon {
    right: 8px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

input:checked+.slider .sun {
    opacity: 0.5;
}

input:checked+.slider .moon {
    opacity: 0;
}

.hero {
    padding: 165px 0 145px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 105%; 
    min-height: 105%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%); 
    object-fit: cover;
    filter: brightness(0.8);
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: -20px auto;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.tools {
    padding: 80px 0;
    background: var(--lighter);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: var(--lighter);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-color: rgb(78, 34, 199);
    box-shadow: 0 15px 30px rgba(188, 185, 214, 0.15);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .tool-card {
    border-color: white;
}

.tool-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
    border-color: var(--primary-light);
}

.tool-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    min-height: 3.5rem;
}

.tool-card p {
    color: var(--dark-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.tool-card .btn {
    margin-top: auto;
    align-self: center;
}

.pricing {
    padding: 80px 0;
    background-color: #f5f7ff;
}

[data-theme="dark"] .pricing {
    background-color: #1a2029;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--lighter);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .pricing-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Más Popular';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.price span {
    font-size: 1rem;
    color: var(--dark-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--dark-light);
    position: relative;
    padding-left: 25px;
}

[data-theme="dark"] .pricing-features li {
    border-bottom: 1px solid #3a434c;
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
}

.pricing-card .btn {
    margin-top: auto;
}

footer {
    background: #2d3436;
    color: white;
    padding: 70px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-column p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-secondary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(108, 92, 231, 0.1);
}

[data-theme="dark"] .theme-toggle {
    color: var(--dark);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle.active i {
    transform: rotate(180deg);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--lighter);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 30px; 
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh; 
    overflow-y: auto; 
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--danger);
    background: rgba(214, 48, 49, 0.1);
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
}

[data-theme="dark"] .form-group input {
    background: #3a434c;
    border-color: #3a434c;
    color: #fff;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    background: white;
}

[data-theme="dark"] .form-group input:focus {
    background: #2d3436;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--dark-light);
    font-size: 0.95rem;
}

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

.form-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 18px 0;
    color: #7b7b7b;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #a29bfe 0%, #00cec9 100%);
    border-radius: 2px;
    opacity: 0.5;
}

.auth-divider span {
    padding: 0 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(108, 92, 231, 0.07);
}

[data-theme="dark"] .auth-divider span {
    background: var(--lighter);
}

.social-auth {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 50px;
    border-radius: 30px;
    background: #c5c3c3;
    color: #333;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid #eee;
    padding: 0 25px;
    gap: 10px;
}

[data-theme="dark"] .social-auth-btn {
    background: #3a434c;
    color: #fff;
    border-color: #3a434c;
}

.social-auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    transform: translateX(150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid;
}

.custom-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-alert i {
    margin-right: 15px;
    font-size: 1.5rem;
}

.custom-alert-content {
    flex: 1;
}

.custom-alert-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.custom-alert-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.custom-alert-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.custom-alert-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: rgba(0, 184, 148, 0.9);
    color: white;
    border-left-color: #00a884;
}

.alert-error {
    background-color: rgba(214, 48, 49, 0.9);
    color: white;
    border-left-color: #b82c2c;
}

.alert-warning {
    background-color: rgba(253, 203, 110, 0.9);
    color: #5c4b00;
    border-left-color: #fdcb6e;
}

.alert-info {
    background-color: rgba(45, 152, 218, 0.9);
    color: white;
    border-left-color: #2d98da;
}

.tools-slider {
    width: 100%;
    overflow: hidden;
}

.pricing-slider {
    display: none; 
    width: 100%;
    overflow: hidden;
}

.tools-slider .swiper-slide,
.pricing-slider .swiper-slide {
    height: auto;
    display: flex;
    padding: 10px;
}

.tools-slider .tool-card,
.pricing-slider .pricing-card {
    width: 100%;
    height: 100%;
}

.swiper-pagination {
    position: relative;
    margin-top: 40px;
}

.swiper-pagination-bullet {
    background: var(--primary-light);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

[data-theme="dark"] .swiper-pagination-bullet {
    background: white;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

[data-theme="dark"] .swiper-pagination-bullet-active {
    background: var(--primary-light);
}

@media (max-width: 992px) {

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
    }

    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    nav {
        left: 0;
        right: 0;
        width: 100% !important;
        border: none;
        padding: 0 20px;
        margin: 0;
        flex-direction: column;
        justify-content: flex-start;
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-sizing: border-box;
        margin-top: 0px;
        max-height: 0;
        overflow: hidden;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        max-height: 100vh; 
        padding-top: 20px;
        padding-bottom: 20px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 12px 0;
        display: block;
        font-size: 1.1rem;
        color: white; 
    }

    .auth-buttons {
        margin: 20px 0 0;
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .theme-switch {
        margin: 15px auto;
    }
    
    header.active {
        border-radius: 20px 20px 20px 20px;
        box-shadow: none;
        border-bottom: none; 
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: -10px;
        right: -10px;
        bottom: 0;
        background-color: #1f1f1d;
        transition: .4s;
        border-radius: 34px;
    }

    input:checked+.slider:before {
        transform: translateX(50px);
    }
}

@media (max-width: 768px) {

    .tools-grid,
    .pricing-grid {
        display: none;
    }

    .tools-slider,
    .pricing-slider {
        display: block;
    }

    .hero {
        padding: 130px 0;
    }

    .hero h1 {
        font-size: 3.6rem;
        text-shadow: 0 0 15px rgba(255,255,255,0.3); 
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    #register-modal .modal-content {
        max-width: 100% !important;
        width: 95% !important;
        padding: 20px !important;
        margin: 0 10px !important;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    button,
    [onclick] {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    #register-btn {
        padding: 10px 20px;
        min-width: 140px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .header-content {
        padding: 0;
    }

    .logo {
        font-size: 1.5rem;
        padding-left: 0;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
        margin-right: 0;
    }

    .menu-toggle span {
        height: 2.5px;
    }

    nav {
        width: 85%;
        padding-left: 20px;
        padding-right: 20px;
    }

    nav.active {
        /* Movemos el padding vertical aquí, para que solo se aplique en estado ABIERTO */
        padding-top: 70px;
        padding-bottom: 30px;
    }

    nav ul li a {
        padding: 12px 0;
        display: block;
        font-size: 1.1rem;
    }

    .auth-buttons {
        margin: 20px 0 0;
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: 25px 15px;
    }

    .custom-alert {
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        padding: 0;
        margin-bottom: 20px;
    }

    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .footer-column p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
        padding: 4px 0;
    }

    .social-links {
        gap: 10px;
        margin-top: 15px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.8rem;
    }

}

#main-nav ul li:nth-child(1),
#main-nav ul li:nth-child(2) {
    display: none;
}

@media (max-width: 991px) {

    #main-nav ul li:nth-child(1),
    #main-nav ul li:nth-child(2) {
        display: block;
    }
}

.payment-methods {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
}

.payment-methods h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 2rem;
    color: var(--dark-light);
    margin-bottom: 15px;
}

.payment-note {
    font-size: 0.8rem;
    color: var(--dark-light);
    max-width: 600px;
    margin: 0 auto;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.terms-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.terms-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.terms-checkbox input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-checkbox label {
    font-size: 0.85rem;
    color: var(--dark-light);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.terms-checkbox a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

[data-theme="light"] .terms-checkbox {
    background: rgba(108, 92, 231, 0.05);
    border-left-color: var(--primary-light);
}

.login-terms-notice {
    font-size: 0.8rem;
    color: var(--dark-light);
    margin-top: 20px;
    text-align: center;
    padding: 0 15px;
}

.login-terms-notice a {
    color: var(--primary);
    font-weight: 500;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.chat-history {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--bg-input);
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
    color: var(--dark);
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    background-color: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-break: break-word;
    color: var(--dark);
    max-width: 100%;
}

.ai-message .message-content {
    background-color: rgba(45, 152, 218, 0.2);
    border-bottom-left-radius: 0;
}

.user-message .message-content {
    background-color: rgba(108, 92, 231, 0.2);
    border-bottom-right-radius: 0;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    align-items: center;
}

.chat-textarea {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    outline: none;
    max-height: 150px;
    font-family: inherit;
    background-color: var(--bg-input);
    color: var(--dark);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.chat-option-btn {
    white-space: nowrap;
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: rgba(45, 152, 218, 0.2);
    border-radius: 18px;
    border-bottom-left-radius: 0;
    margin-bottom: 15px;
    width: fit-content;
}

.typing-dots {
    display: flex;
    align-items: center;
    height: 17px;
}

.typing-dots div {
    width: 8px;
    height: 8px;
    background-color: var(--dark-light);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .chat-container {
        height: 600px;
    }

    .chat-message {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .chat-input-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .chat-textarea {
        width: 100%;
    }

    #send-message {
        width: 100%;
    }

    .chat-message {
        max-width: 95%;
    }
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.download-options {
    display: flex;
    gap: 8px;
}

.history-item {
    transition: transform 0.2s ease;
}

.history-item:hover {
    transform: translateY(-2px);
}

.file-upload-label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.tool-actions .btn {
    transition: all 0.3s ease;
}

.tool-actions .btn:hover {
    transform: translateY(-2px);
}

.download-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    transform: translateY(0);
}

.btn-word {
    background: linear-gradient(135deg, #2b579a, #2b579a);
    color: white;
}

.btn-word:hover {
    background: linear-gradient(135deg, #2b579a, #3b6bb4);
    box-shadow: 0 6px 12px rgba(43, 87, 154, 0.3);
}

.btn-pdf {
    background: linear-gradient(135deg, #f40f02, #d30a00);
    color: white;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #f40f02, #e50c00);
    box-shadow: 0 6px 12px rgba(244, 15, 2, 0.3);
}

.btn-txt {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-txt:hover {
    background: linear-gradient(135deg, #6c757d, #7e858c);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

.btn-ppt {
    background: linear-gradient(135deg, #d35400, #b84400);
    color: white;
}

.btn-ppt:hover {
    background: linear-gradient(135deg, #d35400, #e35c00);
    box-shadow: 0 6px 12px rgba(211, 84, 0, 0.3);
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.download-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(20, 20);
        opacity: 0.3;
    }

    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

.download-btn.small {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: 100px;
}

.download-btn.small i {
    font-size: 1rem;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .download-options {
        flex-direction: column;
        width: 100%;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes downloadAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(0);
    }
}

.download-btn.downloading i {
    animation: downloadAnimation 1s infinite;
}

.beta-title { 
    font-size: 4.2rem; 
    line-height: 1.2; 
    margin-bottom: 45px; 
    font-weight: 750; 
    text-shadow: 0 0 15px rgba(255,255,255,0.3); 
}

.beta-title strong { 
    font-style: italic; 
    opacity: 0.9; 
    font-weight: 800; 
}

@keyframes fadeInSlideUp {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hero-content .beta-title,
.hero-content p,
.hero-content .cta-buttons {
    opacity: 0;
}

.hero-content .beta-title {
    animation: fadeInSlideUp 0.8s ease-out 0.2s forwards; 
}

.hero-content p {
    animation: fadeInSlideUp 0.8s ease-out 0.5s forwards; 
}

.hero-content .cta-buttons {
    animation: fadeInSlideUp 0.8s ease-out 0.8s forwards; 
}

@media (max-width: 992px) {
    .hero-content .beta-title {
        animation: fadeInSlideUp 0.8s ease-out 0.2s forwards;
    }
    .hero-content p {
        animation: fadeInSlideUp 0.8s ease-out 0.5s forwards;
    }
    .hero-content .cta-buttons {
        animation: fadeInSlideUp 0.8s ease-out 0.8s forwards;
    }
}

.social-proof {
    padding: 60px 0;
    background: var(--lighter);
    text-align: center;
}

[data-theme="dark"] .social-proof {
    background: var(--light);
}

.proof-title {
    font-size: 1.8rem; 
    color: var(--dark-light);
    margin-bottom: 40px;
    font-weight: 600;
}

.stats-grid-v2 {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item-v2 {
    background-color: var(--white); 
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease;
}

[data-theme="dark"] .stat-item-v2 {
    background-color: var(--dark-element);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-item-v2:hover {
    transform: translateY(-5px); 
}

.stat-number {
    font-size: 3rem; 
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem; 
    color: var(--dark-light);
    margin: 0;
    font-weight: 500;
    }

@media (max-width: 768px) {
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    
    .stat-item-v2:nth-child(3) {
        grid-column: 1 / -1; 
        max-width: 300px; 
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .proof-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}
