* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #9848ff;
    --secondary-color: #7030cc;
    --accent-color: #3b82f6;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --hover-color: #dbeafe;
}

body {
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: var(--primary-color);
    transform: none !important;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 4px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-icon img {
    width: 50px;
    height: 50px;
}

.hero h1 {
    font-size: 43px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: 0px;
    margin-right: 0px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.hero p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 550px;
    margin: 0px 0px 20px 0px;
    line-height: 1.6;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.6s;
}

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

.download-buttons {
    display: flex;
    justify-content: top;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.9s;
}

.download-button {
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.download-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.download-button:hover svg {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .download-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .download-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    transition: all 0.4s ease;
    color: var(--primary-color);
}

.feature-card:hover .feature-icon svg {
    color: white;
    transform: scale(1.1);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
    text-align: justify;
}

.feature-hover {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-hover {
    opacity: 1;
    transform: translateY(0);
}

.feature-hover svg {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-hover svg {
    transform: translateX(5px);
}

/* App Showcase */
.app-showcase {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.showcase-text {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(-20px);
}

.showcase-text.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.showcase-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.showcase-text p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: justify;
}

.showcase-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
}

.showcase-image.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease 0.2s;
}

.phone-mockup {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 10px solid #333;
    background-color: #222;
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #333, #222);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.app-ui-element {
    width: 80%;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

.app-ui-element.large {
    height: 120px;
}

.app-ui-element.small {
    height: 40px;
    width: 60%;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--card-bg);
}

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

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--border-color);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.testimonial-text {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    text-align: justify;
}

.testimonial-text::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #666;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.author-info p {
    font-size: 14px;
    color: var(--light-text);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #9848ff 0%, #6023a9 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    color: white !important;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    text-align: justify;
}

/* CTA Buttons Styles */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
    justify-content: center;
}

.cta-button.primary {
    background: white !important;
    color: #9848ff !important;
    border-color: white !important;
}

.cta-button.primary:hover {
    background: #f0f0f0 !important;
    color: #9848ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover .button-icon {
    fill: #9848ff !important;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: white !important;
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: white !important;
    color: #9848ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover .button-icon {
    fill: #9848ff !important;
}

.button-icon {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}

.cta-button span {
    color: inherit !important;
    font-weight: 600;
    font-size: 1rem;
}


}

@media (max-width: 640px) {
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-selector select {
    appearance: none;
    background-color: transparent;
    color: var(--light-text);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.language-selector select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.language-selector::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    pointer-events: none;
    font-size: 10px;
    transition: color 0.3s ease;
}

.language-selector:hover::after {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #aaa;
    font-size: 14px;
}

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

.social-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Decorative elements */
.circle-decoration {
    position: absolute;
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: pulseAndRotate 15s infinite linear;
}

.circle-left {
    width: 300px;
    height: 300px;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -5s;
}

.circle-right {
    width: 400px;
    height: 400px;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -10s;
}

@keyframes pulseAndRotate {
    0% {
        transform: translateY(-50%) rotate(0deg) scale(1);
        border-color: rgba(37, 99, 235, 0.1);
    }
    50% {
        transform: translateY(-50%) rotate(180deg) scale(1.05);
        border-color: rgba(29, 78, 216, 0.15);
    }
    100% {
        transform: translateY(-50%) rotate(360deg) scale(1);
        border-color: rgba(37, 99, 235, 0.1);
    }
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding: 20px 0;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
    cursor: default;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

/* Plan Unlimited con tono dorado */
.pricing-card.enterprise {
    border: 2px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    position: relative;
    overflow: hidden;
}

.pricing-card.enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.pricing-card.enterprise:hover {
    transform: translateY(-8px);
    border-color: #FFA500;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
}

.pricing-card.enterprise .pricing-header h3 {
    color: #B8860B;
    font-weight: 700;
}

.pricing-card.enterprise .price .amount {
    color: #B8860B;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.enterprise .annual-price {
    color: #DAA520;
    font-weight: 600;
}

.pricing-card.enterprise .feature-item svg {
    color: #FFD700;
}

.pricing-card.enterprise:hover .feature-item svg {
    color: #FFA500;
    transform: scale(1.1);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.pricing-header h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.price {
    margin-bottom: 5px;
}

.price .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.price .period {
    font-size: 16px;
    color: var(--light-text);
}

.annual-price {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 15px;
    padding: 8px 0;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.pricing-card:hover .feature-item svg {
    transform: scale(1.1);
}

.feature-item.disabled {
    color: var(--light-text);
    opacity: 0.7;
}

.feature-item.disabled svg {
    color: #ff4848;
}

@media (max-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-header {
        padding-bottom: 10px;
    }

    .feature-item {
        padding: 6px 0;
    }
    
    /* Plan Unlimited dorado en móvil */
    .pricing-card.enterprise {
        border-width: 3px;
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
    }
    
    .pricing-card.enterprise::before {
        height: 3px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    opacity: 0.3;
}

.step-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(152, 72, 255, 0.1);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(152, 72, 255, 0.15);
    border-color: var(--primary-color);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(152, 72, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(152, 72, 255, 0.4);
}

.step-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: rotate(360deg);
}

.step-icon svg {
    width: 45px;
    height: 45px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon svg {
    color: var(--secondary-color);
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.step-card:hover h3 {
    color: var(--primary-color);
}

.step-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 16px;
    text-align: justify;
}

/* FAQ Section Mejorada */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 60%, #e9e3fa 100%);
    position: relative;
    overflow: hidden;
}
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
    z-index: 2;
}
.faq-item {
    margin-bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(152, 72, 255, 0.08), 0 1.5px 8px rgba(112, 48, 204, 0.06);
    background: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(152, 72, 255, 0.13);
}
.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.faq-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(152, 72, 255, 0.13), 0 2px 12px rgba(112, 48, 204, 0.09);
    border-color: var(--primary-color);
}
.faq-question {
    padding: 28px 60px 28px 32px;
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}
.faq-question:hover {
    color: var(--primary-color);
    background: rgba(152, 72, 255, 0.04);
}
.faq-toggle-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    transition: color 0.3s;
    color: var(--primary-color);
}
.faq-toggle-svg svg {
    display: block;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
}
.faq-item.active .faq-toggle-svg svg {
    transform: rotate(45deg);
    color: var(--secondary-color);
}
.faq-toggle-plus {
    transition: stroke 0.3s;
}
.faq-item.active .faq-toggle-plus {
    stroke: var(--secondary-color);
}
.faq-answer {
    background: linear-gradient(90deg, #f8f9fa 80%, #e9e3fa 100%);
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), padding 0.4s, background 0.4s;
    border-top: 1px solid #f0eaff;
}
.faq-item.active .faq-answer {
    padding: 24px 32px 32px 32px;
    max-height: 500px;
    background: linear-gradient(90deg, #f3eaff 60%, #e9e3fa 100%);
}
.faq-answer p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 17px;
    margin: 0;
    text-align: justify;
}
@media (max-width: 600px) {
    .faq-question {
        font-size: 17px;
        padding: 20px 48px 20px 16px;
    }
    .faq-answer, .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
    }
}

/* App Gallery */
.app-gallery {
    padding: 100px 0;
    background-color: var(--bg-color);
}

/* iPhone-specific app gallery improvements */
@media (max-width: 428px) {
    .app-gallery {
        padding: 60px 0;
    }
    
    .app-gallery .flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .app-gallery .w-full.lg\\:w-1\\/2 {
        width: 100%;
    }
    
    .app-gallery img {
        height: 400px !important;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .app-gallery h3 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .app-gallery p {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 390px) {
    .app-gallery {
        padding: 50px 0;
    }
    
    .app-gallery img {
        height: 350px !important;
    }
    
    .app-gallery h3 {
        font-size: 22px;
    }
    
    .app-gallery p {
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    .app-gallery {
        padding: 40px 0;
    }
    
    .app-gallery img {
        height: 300px !important;
    }
    
    .app-gallery h3 {
        font-size: 20px;
    }
    
    .app-gallery p {
        font-size: 14px;
    }
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(152, 72, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item .gallery-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item.hovered .gallery-overlay,
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.gallery-item .gallery-image {
    filter: brightness(1) grayscale(0.1);
    transition: filter 0.4s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item.hovered .gallery-image,
.gallery-item:hover .gallery-image {
    filter: brightness(0.7) grayscale(0);
}

.gallery-overlay h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* Mobile scroll-to-top improvements */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 428px) {
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }
    
    /* Mobile menu styles */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px 40px;
        gap: 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    /* Mobile menu overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--primary-color);
        background-color: rgba(152, 72, 255, 0.05);
        padding-left: 10px;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none;
    }
}

/* iPhone-specific mobile menu improvements */
@media (max-width: 428px) {
    .nav-links {
        width: 100%;
        right: -100%;
        padding: 120px 20px 40px 20px;
    }
    
    .nav-links a {
        font-size: 20px;
        padding: 18px 0;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .nav-links {
        padding: 110px 16px 40px 16px;
    }
    
    .nav-links a {
        font-size: 19px;
        padding: 16px 0;
    }
}

@media (max-width: 375px) {
    .nav-links {
        padding: 100px 12px 40px 12px;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 15px 0;
    }
}

@media (max-width: 320px) {
    .nav-links {
        padding: 90px 8px 40px 8px;
    }
    
    .nav-links a {
        font-size: 17px;
        padding: 14px 0;
    }
}
    
    .showcase-content {
        flex-direction: column;
    }
    
    .showcase-text, .showcase-image {
        text-align: center;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-card {
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .step-card {
        padding: 18px;
    }
}

/* Testimonial Carousel */
.testimonial-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
}
.testimonial-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonial-carousel::-webkit-scrollbar {
    display: none;
}
.testimonial-card {
    min-width: 350px;
    max-width: 370px;
    background: #fafbfc;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(152, 72, 255, 0.08), 0 1.5px 8px rgba(112, 48, 204, 0.06);
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s, transform 0.3s;
    opacity: 0.95;
}
.testimonial-card:hover {
    box-shadow: 0 16px 40px rgba(152, 72, 255, 0.13), 0 2px 12px rgba(112, 48, 204, 0.09);
    transform: translateY(-4px) scale(1.03);
    opacity: 1;
}
.testimonial-arrow { display: none !important; }
@media (max-width: 1100px) {
    .testimonial-card {
        min-width: 300px;
        max-width: 320px;
    }
}
@media (max-width: 900px) {
    .testimonial-card {
        min-width: 260px;
        max-width: 280px;
    }
}
@media (max-width: 700px) {
    .testimonial-carousel {
        gap: 16px;
    }
    .testimonial-card {
        min-width: 90vw;
        max-width: 95vw;
        padding: 22px 10px 18px 14px;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, #f3eaff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-choose-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(152, 72, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.4s ease;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(152, 72, 255, 0.15);
    border-color: rgba(152, 72, 255, 0.2);
}

.why-choose-card:hover::before {
    height: 100%;
}

.why-choose-card h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.why-choose-card:hover h3 {
    color: var(--primary-color);
}

.why-choose-card p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(152, 72, 255, 0.1), rgba(112, 48, 204, 0.1));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-choose-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-choose-icon svg {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.why-choose-card:hover .why-choose-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(152, 72, 255, 0.2);
}

.why-choose-card:hover .why-choose-icon::before {
    opacity: 1;
}

.why-choose-card:hover .why-choose-icon svg {
    transform: scale(1.1);
    color: white;
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-card {
        padding: 30px 20px;
    }
    
    /* Testimonials mobile improvements */
    .testimonial-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-card {
        scroll-snap-align: start;
        min-width: 280px;
        margin-right: 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .testimonial-author h4 {
        font-size: 16px;
    }
    
    .testimonial-author p {
        font-size: 14px;
    }
}

/* iPhone-specific responsive improvements */
@media (max-width: 428px) {
    /* iPhone 14 Pro Max, iPhone 13 Pro Max, iPhone 12 Pro Max */
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    /* Plan Unlimited dorado en iPhone */
    .pricing-card.enterprise {
        border-width: 2px;
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    }
    
    .pricing-card.enterprise .pricing-header h3 {
        font-size: 22px;
    }
    
    .pricing-card.enterprise .price .amount {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .section-title p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-card {
        padding: 25px 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .cta-content p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    /* iPhone 14, iPhone 13, iPhone 12 */
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 15px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 15px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .pricing-card {
        padding: 25px 16px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .why-choose-card {
        padding: 20px 16px;
    }
    
    .testimonial-card {
        padding: 20px 16px;
    }
}

@media (max-width: 375px) {
    /* iPhone SE, iPhone 8, iPhone 7, iPhone 6 */
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .download-button {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .cta-button {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .pricing-card {
        padding: 20px 12px;
    }
    
    .feature-card {
        padding: 18px 12px;
    }
    
    .why-choose-card {
        padding: 18px 12px;
    }
    
    .testimonial-card {
        padding: 18px 12px;
    }
}

@media (max-width: 320px) {
    /* iPhone 5, iPhone SE (1st generation) */
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .section-title p {
        font-size: 13px;
    }
    
    .cta-content h2 {
        font-size: 20px;
    }
    
    .cta-content p {
        font-size: 13px;
    }
    
    .download-button {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .cta-button {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .pricing-card {
        padding: 18px 10px;
    }
    
    .feature-card {
        padding: 16px 10px;
    }
    
    .why-choose-card {
        padding: 16px 10px;
    }
    
    .testimonial-card {
        padding: 16px 10px;
    }
}

/* iPhone landscape orientation improvements */
@media (max-width: 926px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .download-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .download-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .pricing {
        padding: 60px 0;
    }
    
    .why-choose-us {
        padding: 60px 0;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
}

/* iPhone notch and safe area improvements */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .hero {
        padding-top: max(160px, calc(160px + env(safe-area-inset-top)));
    }
    
    .scroll-to-top {
        bottom: max(30px, calc(30px + env(safe-area-inset-bottom)));
        right: max(30px, calc(30px + env(safe-area-inset-right)));
    }
}

/* Touch-friendly improvements for iPhone */
@media (hover: none) and (pointer: coarse) {
    .download-button,
    .cta-button,
    .feature-card,
    .pricing-card,
    .why-choose-card,
    .testimonial-card {
        min-height: 44px;
    }
    
    .download-button,
    .cta-button {
        padding: 14px 24px;
    }
    
    .nav-links a {
        padding: 10px 0;
    }
    
    .scroll-to-top {
        width: 56px;
        height: 56px;
    }
    
    /* Better touch feedback */
    .download-button:active,
    .cta-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .feature-card:active,
    .pricing-card:active,
    .why-choose-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Improved tap targets */
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 7px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .mobile-menu-toggle:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI display optimizations for iPhone */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-icon img,
    .feature-icon svg,
    .why-choose-icon svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}