/* ------------------ BASE ------------------ */

:root {
    --primary: #8B5CF6;
    --secondary: #F97316;
    --accent: #EC4899;
    --bg: #0F0B1F;
    --card: #1A1332;
    --card-hover: #252040;
    --text: #ffffff;
    --muted: #A8A6C7;
    --radius: 16px;
    --gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 25%, #EC4899 75%, #F97316 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 25%, rgba(236, 72, 153, 0.1) 75%, rgba(249, 115, 22, 0.1) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #0f0b1f 25%,
            #1a0f2e 50%,
            #0f0a0a 75%,
            #0a0a0a 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* ------------------ ANIMATIONS ------------------ */

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes typingDots {

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

    30% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.fade-in-delay.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(20) 0.5s both;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ------------------ HEADER ------------------ */

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(15, 11, 31, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

nav a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

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

nav a.nav-link:hover::after,
nav a.nav-link.active::after {
    width: 100%;
}

nav a.nav-link.active {
    color: var(--text);
}

.btn-main {
    background: #F97316;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    background: #EA580C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 18px;
}

/* ------------------ HERO ------------------ */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 80vh;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text);
}

.hero p {
    color: var(--muted);
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ------------------ PHONE MOCKUP ------------------ */

.phone {
    width: 100%;
    max-width: 330px;
    background: #000;
    border-radius: 30px;
    padding: 18px;
    border: 2px solid #111;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
}

.phone::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #8B5CF6;
    border-radius: 32px;
    z-index: -1;
    opacity: 0.9;
    animation: pulse 3s infinite;
}

.phone::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: #EC4899;
    border-radius: 31px;
    z-index: -2;
    opacity: 0.6;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #1a2332;
    margin-bottom: 10px;
}

.screen {
    background: linear-gradient(135deg, #1A1332 0%, #0F0B1F 100%);
    padding: 16px;
    border-radius: 20px;
    position: relative;
}

.chat-messages {
    height: 380px;
    overflow: hidden;
    position: relative;
}

.msg {
    background: rgba(139, 92, 246, 0.15);
    color: #E2E8F0;
    padding: 10px 12px;
    width: fit-content;
    max-width: 85%;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.me {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    margin-left: auto;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.payment-notification {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    animation: bounce 0.6s ease;
}

.payment-icon {
    font-size: 20px;
}

.payment-details div:first-child {
    font-size: 11px;
    opacity: 0.9;
}

.payment-details strong {
    font-size: 16px;
}

.typing-indicator {
    display: block !important;
    background: #16233f;
    padding: 12px 16px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 12px;
    opacity: 1;
    visibility: visible;
    position: absolute;
    bottom: 0;
    left: 16px;
    z-index: 10;
}

.typing-indicator-dynamic {
    background: rgba(139, 92, 246, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.typing-indicator span,
.typing-indicator-dynamic span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
    margin: 0 2px;
    animation: typingDots 1.4s infinite;
}

.typing-indicator span:nth-child(2),
.typing-indicator-dynamic span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3),
.typing-indicator-dynamic span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ------------------ STEPS ------------------ */

.steps {
    margin-top: 80px;
    padding: 80px 20px;
    text-align: center;
}

.steps h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 50px;
    color: var(--text);
}

.cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: linear-gradient(135deg, var(--card) 0%, var(--card-hover) 100%);
    padding: 30px 24px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Removed gradient overlay for cards */

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--card-hover) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ------------------ BENEFITS SECTION ------------------ */

.benefits {
    padding: 80px 20px;
    margin-top: 40px;
    position: relative;
}

/* Removed gradient overlay that was causing white background */

.benefits h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 50px;
    color: var(--text);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 30px;
}

.benefit-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.benefit-item h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text);
}

.benefit-item p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 16px;
}

/* ------------------ MODAL ------------------ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--card) 0%, var(--card-hover) 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.close {
    color: var(--muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text);
}

.modal h2 {
    margin-bottom: 10px;
    text-align: center;
    color: var(--text);
}

.modal p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
}

/* ------------------ CONTACT SECTION ------------------ */

.contact-section {
    padding: 80px 20px;
    margin-top: 40px;
}

.contact-section h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    color: var(--text);
}

/* ------------------ FORM STYLES ------------------ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    background: rgba(22, 35, 63, 0.5);
    border: 2px solid #1c2a45;
    border-radius: 12px;
    padding: 16px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(22, 35, 63, 0.8);
}

.form-group input::placeholder {
    color: var(--muted);
}

.form-group select option {
    background: #0c1529;
    color: var(--text);
}

.checkbox-group {
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #A78BFA;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--muted);
}

/* ------------------ RESPONSIVE BREAKPOINTS ------------------ */

/* Tablets y móviles grandes */
@media (max-width: 900px) {
    header {
        flex-wrap: wrap;
        text-align: center;
        gap: 12px;
        position: static;
        border-radius: 0;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .hero p {
        max-width: 500px;
        margin: 0 auto 32px;
    }

    .phone {
        margin-top: 30px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        max-width: 100%;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 30px 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    nav a {
        margin-right: 0;
        font-size: 14px;
    }

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

    .hero {
        padding: 24px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .card {
        padding: 20px;
    }

    .phone {
        max-width: 280px;
        padding: 14px;
    }

    .steps {
        padding: 40px 20px;
    }

    .benefits {
        padding: 40px 20px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 25px 20px;
    }

    .form-group input,
    .form-group select {
        padding: 14px;
        font-size: 14px;
    }
}

/* Hover effects para desktop */
@media (min-width: 1024px) {
    .card:hover .card-icon {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }

    .benefit-item:hover .benefit-icon {
        transform: scale(1.1) rotate(10deg);
        transition: transform 0.3s ease;
    }
}