/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #3483fa; /* Indigo */
    --secondary-color: #10B981; /* Esmeralda */
    --accent-color: #F59E0B; /* Ámbar */
    --dark-color: #111827; /* Gris oscuro */
    --light-color: #F9FAFB; /* Gris claro */
    --text-color: #374151; /* Gris texto */
    --white-color: #FFFFFF;
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Botones --- */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn--primary:hover {
    background-color: #4338CA;
}

.btn--secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid #D1D5DB;
}

.btn--secondary:hover {
    background-color: #F3F4F6;
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
}

/* --- Header y Navegación --- */
.header {
    background-color: #fff628;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__logo-img {
    height: 70px;
    width: auto;
    max-width: 180px;
}

.nav__toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav__menu.active {
    display: flex;
}

.nav__item {
    list-style: none;
    margin: 1rem 0;
}

.nav__link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link--cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.nav__link--cta:hover {
    color: var(--white-color);
    background-color: #4338CA;
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 5%;
    background: linear-gradient(180deg, #fff628 0%, rgba(255, 246, 40, 0.8) 30%, rgba(255, 246, 40, 0.4) 60%, rgba(255, 255, 255, 1) 100%);
    text-align: center;
    position: relative;
}

.hero__content {
    position: relative;
    z-index: 2; /* Asegurar que el contenido esté por encima de las animaciones de fondo */
}

.hero__badge {
    display: inline-block;
    background-color: #3483fa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero__title--highlight {
    color: var(--primary-color);
}

.hero__subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    color: var(--text-color);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.hero__stat-text {
    color: var(--text-color);
}

.hero__visual {
    display: block; /* Mostrar en móvil también */
    margin-top: 2rem;
}

/* --- Secciones Generales --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Beneficios Section --- */
.benefits {
    padding: 4rem 5%;
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* --- Tarifas Section --- */
.pricing {
    padding: 4rem 5%;
    background-color: var(--white-color);
}

.pricing__card {
    background: linear-gradient(135deg, var(--primary-color), #3730A3);
    color: var(--white-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
    text-align: center;
}

.pricing__header {
    margin-bottom: 2.5rem;
}

.pricing__badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing__amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing__currency {
    font-size: 2rem;
    vertical-align: super;
}

.pricing__period {
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.pricing__highlights {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing__highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.pricing__highlight-icon {
    font-size: 1.4rem;
}

.pricing__highlight-text {
    font-weight: 500;
    font-size: 1rem;
}

.pricing__example {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing__example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing__example-desc {
    font-size: 1rem;
    opacity: 0.9;
}

.pricing__example-result {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFD700;
}

@media (max-width: 767px) {
    .pricing__card {
        padding: 2rem 1.5rem;
    }
    
    .pricing__amount {
        font-size: 3rem;
    }
    
    .pricing__currency {
        font-size: 1.5rem;
    }
    
    .pricing__highlights {
        gap: 0.75rem;
    }
    
    .pricing__highlight {
        padding: 0.5rem;
    }
    
    .pricing__highlight-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .pricing__highlights {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .pricing__highlight {
        flex: 1;
        margin: 0 0.5rem;
    }
}

/* --- Proceso Section --- */
.process {
    padding: 4rem 5%;
}

.process__steps {
    position: relative;
}

.process__step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.process__step-number {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 4rem 5%;
    background-color: var(--white-color);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card__text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    font-size: 2rem;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--dark-color);
}

/* --- CTA Section --- */
.cta {
    padding: 4rem 5%;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta__container {
    text-align: center;
}

.cta__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta__subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta__form {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form__row {
    margin-bottom: 1rem;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #D1D5DB;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

/* Estilos para el mensaje de iOS */
.ios-message {
    background-color: var(--white-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ios-message__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ios-message__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.ios-message__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.ios-message__text {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 400px;
    line-height: 1.6;
}

.ios-message__subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    max-width: 350px;
}

/* Estilos para selector de dispositivo */
.device-selector__label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.device-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    width: 100%;
}

.device-btn:hover {
    border-color: var(--primary-color);
    background-color: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.device-btn.selected {
    border-color: var(--primary-color);
    background-color: #EEF2FF;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.device-btn__icon {
    font-size: 24px;
    width: 24px;
    text-align: center;
}

.device-btn__text {
    flex: 1;
    text-align: left;
}

/* Colores específicos para cada sistema */
.device-btn[data-device="android"]:hover,
.device-btn[data-device="android"].selected {
    border-color: #3DDC84;
    color: #0F5132;
}

.device-btn[data-device="android"].selected {
    background-color: #D1F2EB;
}

.device-btn[data-device="android"] .device-btn__icon {
    color: #3DDC84;
}

.device-btn[data-device="ios"]:hover,
.device-btn[data-device="ios"].selected {
    border-color: #007AFF;
    color: #003D7A;
}

.device-btn[data-device="ios"].selected {
    background-color: #E6F3FF;
}

.device-btn[data-device="ios"] .device-btn__icon {
    color: #007AFF;
}

@media (min-width: 768px) {
    .device-selector {
        flex-direction: row;
        gap: 20px;
    }
    
    .device-btn {
        flex: 1;
    }
}

.cta__note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Footer --- */
.footer {
    background-color:#ebebeb;
    color: #545557;
    padding: 4rem 5% 2rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__logo-img {
    height: 40px;
    width: auto;
    max-width: 160px;
}

.footer__section-title {
    color: #000;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
}

.footer__link {
    text-decoration: none;
    color: #545557;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--white-color);
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer__legal {
    margin-top: 1rem;
}

.footer__legal-link {
    color: #9CA3AF;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer__legal-link:hover {
    color: var(--white-color);
}

/* --- Floating CTA Button --- */
.floating-cta {
    color: var(--white-color);
    padding: 18px 20px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
}

/* Estado normal en el hero */
.floating-cta:not(.is-floating) {
    position: relative;
    width: auto;
    margin: 0;
}

/* Estado flotante */
.floating-cta.is-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.6);
    background: linear-gradient(45deg, #3730A3, var(--primary-color));
}

.floating-cta.is-floating:hover {
    transform: translateY(-5px) scale(1.02);
}

.floating-cta:active {
    transform: translateY(-2px) scale(0.98);
}

.floating-cta__icon {
    font-size: 20px;
    color: var(--white-color);
    animation: bounce 1s infinite alternate;
}

.floating-cta__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--white-color);
}

.floating-cta.hidden {
    bottom: -120px;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(79, 70, 229, 0.7), 0 0 20px rgba(79, 70, 229, 0.3);
    }
    100% {
        box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-3px);
    }
}

@media (min-width: 768px) {
    .header {
        padding: 1.25rem 2rem;
    }

    .nav__container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav__logo {
        gap: 0.75rem;
    }

    .nav__logo-img {
        height: 45px;
        width: auto;
        max-width: 150px;
    }

    .floating-cta.is-floating {
        display: none; /* Oculto en tablet y desktop cuando está flotante */
    }
    
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        align-items: center;
        width: auto;
    }

    .nav__item {
        margin: 0;
    }

    .nav__link {
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav__link:not(.nav__link--cta):hover {
        color: var(--primary-color);
    }

    .nav__link--cta {
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .nav__link--cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 131, 250, 0.3);
    }

    .hero__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 2;
        margin-top: 0;
    }

    .hero__subtitle {
        margin-left: 0;
    }

    .hero__cta {
        flex-direction: row;
    }

    .hero__stats {
        justify-content: flex-start;
    }

    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }

    .benefits__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process__steps {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
    }

    .process__steps::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 5%;
        right: 5%;
        height: 2px;
        background-color: #D1D5DB;
        z-index: -1;
    }

    .process__step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* --- Animaciones y Efectos Visuales --- */
.hero__visual {
    display: none; /* Oculto en móvil */
}

/* Ocultar animaciones móviles completamente */
.hero__packages--mobile {
    display: none;
}

/* Animaciones para desktop */
.hero__packages--desktop {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hero__packages--desktop .package {
    position: absolute;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    animation: float 6s ease-in-out infinite;
    font-size: 1rem;
    opacity: 1; /* Opacidad completa en desktop */
}

.hero__packages--desktop .package--amazon {
    background-color: #FF9900;
    color: var(--dark-color);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hero__packages--desktop .package--mercadolibre {
    background-color: #FFE600;
    color: var(--dark-color);
    top: 40%;
    right: 5%;
    animation-delay: 2s;
}

/* Animación normal para desktop */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (min-width: 768px) {
    .hero__visual {
        display: block; /* Mostrar sección visual en desktop */
    }
    
    .hero__packages--mobile {
        display: none; /* Ocultar versión móvil en desktop */
    }
}

/* --- Modal de Éxito --- */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal__content {
    background: linear-gradient(135deg, var(--white-color), #F8FAFC);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    transition: all 0.3s ease;
}

.success-modal.show .success-modal__content {
    transform: translateY(0) scale(1);
}

.success-modal__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 0.6s ease-out;
}

.success-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-modal__message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.success-modal__name {
    color: var(--primary-color);
    font-weight: 600;
}

.success-modal__close {
    background: linear-gradient(135deg, var(--primary-color), #2563EB);
    color: var(--white-color);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.success-modal__close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 131, 250, 0.4);
}

@keyframes bounce {
    0% { transform: translateY(-10px) scale(0.8); }
    50% { transform: translateY(-5px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}
