@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #ff3b30;
    /* Rojo Rappi — botones primarios / logo */
    --primary-hover: #e72d24;
    --secondary: #38bdf8;
    /* Azul cielo — botones secundarios / CTAs */
    --accent: #8b5cf6;
    /* Púrpura — fin de gradientes */
    --accent-hover: #7c3aed;
    --navy: #0f1e3d;
    /* Navy PockBots — headers/sidebars/secciones oscuras */
    --navy-royal: #1d4ed8;
    /* Azul real — 2º tono del degradado principal */
    --bg-color: #f5f6f8;
    --bg-light: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --whatsapp: #25D366;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(15, 30, 61, 0.2);
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Layout Containers */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-image: linear-gradient(135deg, #1d4ed8 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.45);
}

.btn-secondary {
    background-color: #ffffff;
    color: #1d4ed8;
    border: 2px solid #1d4ed8;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.15);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #f1f5ff;
    color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.25);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 30, 61, 0.95);
    /* Navy PockBots */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-round {
    border-radius: 50%;
    /*border: 3px solid var(--primary);*/
    max-height: 50px;
    width: 50px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #e5e9f2;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    color: white !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Variante 11: azul oscuro ocupa MUCHO más espacio + glow rojo más en esquina superior derecha */
    background:
        radial-gradient(ellipse at 96% 4%, rgba(255, 59, 48, 0.38) 0%, rgba(255, 59, 48, 0.12) 12%, transparent 30%),
        radial-gradient(ellipse at 72% 96%, rgba(139, 92, 246, 0.18) 0%, transparent 44%),
        linear-gradient(135deg, #0f1e3d 0%, #0f1e3d 68%, #14284c 74%, #1a3a80 82%, #1d4ed8 88%, #8b5cf6 94%, #ff3b30 100%);
    color: white;
    padding: 10rem 0 8rem 0;
    margin-top: 50px;
    /* offset navbar */
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text-box {
    flex: 1;
}

.header-title {
    font-size: 3.0rem;
    /*3.5rem*/
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-welcome {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-img {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

    50% {
        transform: translateY(-20px);
    }

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave .shape-fill {
    fill: var(--bg-color);
}

/* Alternating Sections */
.alternating-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, #1d4ed8, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
}

.card-img:hover {
    transform: scale(1.02);
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list li {
    font-size: 1.125rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
}

.benefits-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

/* Cards Base */
.card {
    background: var(--bg-light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Demo Video */
.video-container {
    position: relative;
    /*max-width: 900px;*/
    min-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    border-radius: 1rem;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1d4ed8 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.35);
    transition: all 0.3s ease;
}

.video-container:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex: 1;
}

.author {
    font-weight: 700;
    color: var(--text-main);
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step-item {
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1d4ed8 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 3.5rem;
}

.pricing-card {
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.highlighted-card {
    border-color: var(--accent);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.highlighted-card:hover {
    transform: scale(1.08);
}

.disabled-card {
    opacity: 0.7;
    background: #f9fafb;
    pointer-events: none;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 48px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
}

.plan-features i {
    color: var(--primary);
    margin-top: 0.3rem;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-hover);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* CTA & Newsletter */
.cta-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 2rem auto 4rem auto;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.input-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.terms-check {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terms-check a {
    color: #60a5fa;
    text-decoration: underline;
}

.terms-check a:hover {
    color: #38bdf8;
}

.final-cta {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #d1d5db;
}

.final-cta p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--navy);
    /* Navy PockBots */
    color: #9ca3af;
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #38bdf8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
}

/* Floating Elements */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.floating-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-scroll-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.05);
}

/*Added from the Ivan's landing*/
.carousel {
    position: relative;
    width: 70%;
    max-width: 1200px;
    /*800px*/
    margin: 50px auto;
    overflow: hidden;
    border: 5px solid #ddd;
    border-radius: 10px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.carousel-item img,
.carousel-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-item iframe {
    display: none;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .header-title {
        font-size: 2.5rem;
    }

    /*3rem*/
    .hero-content {
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .highlighted-card {
        transform: scale(1);
        z-index: 1;
    }

    .highlighted-card:hover {
        transform: translateY(-5px);
    }

    .disabled-card {
        display: none;
    }

    /* Hide placeholders on mobile to save space */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simple hiding for mobile, ideally replace with hamburger */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .header-title {
        font-size: 1.8rem;
    }

    /*2.2rem*/
    .alternating-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .alt-image,
    .alt-text {
        text-align: center;
    }

    /* Reorder Alternating Grid on mobile to always show text first or image first */
    .part-alternating .alternating-grid:nth-child(even) .alt-image {
        order: -1;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin: 1rem 0;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }

    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .floating-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /*Added from the Ivan's landing*/
    .carousel {
        position: relative;
        width: 90%;
        max-width: 1200px;
        margin: 50px auto;
        overflow: hidden;
        border: 2px solid #ddd;
        border-radius: 1px;
    }
}