/* ==========================================================================
   Robótica Desplugada - Premium Aesthetic CSS Design System
   ========================================================================== */

:root {
    /* Facial Anatomy Palette - Obsidian, Crimson Vascular & Emerald Teal */
    --primary: #0284c7; /* Clinical Cyan / Deep Medical Blue */
    --primary-dark: #0f172a; /* Obsidian Deep Navy */
    --primary-light: #f0f9ff;

    --secondary: #e11d48; /* Vascular Rose / Crimson Accent */
    --secondary-dark: #9f1239;
    --secondary-light: #fff1f2;

    --accent: #f59e0b; /* Gold Accent */
    --accent-glow: rgba(245, 158, 11, 0.4);

    --danger: #ef4444; 
    --success: #10b981; /* Emerald Green */

    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;

    --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.08), 0 3px 6px -3px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 15px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --shadow-2xl: 0 35px 60px -15px rgba(2, 132, 199, 0.25);

    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(225, 29, 72, 0.03) 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn {
    font-family: 'Outfit', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-padding {
    padding: 4.5rem 0;
}

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

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

.full-width {
    width: 100%;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #e0f2fe;
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 4px;
}

/* --- Top Bar --- */
.top-bar {
    background: linear-gradient(90deg, #9f1239, #e11d48, #be123c);
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 0 3rem;
    background: 
        radial-gradient(circle at top right, rgba(225, 29, 72, 0.08) 0%, transparent 50%),
        radial-gradient(circle at top left, rgba(2, 132, 199, 0.1) 0%, transparent 60%),
        #ffffff;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    width: 100%;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%);
    top: -80px;
    left: -100px;
    animation: flowOrbit 22s linear infinite;
}

.shape-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, transparent 70%);
    bottom: 20px;
    right: -80px;
    animation: flowOrbit 18s linear infinite reverse;
}

@keyframes flowOrbit {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); border-radius: 45% 55% 45% 55%; }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- Marquee / Infinite Carousel Styles --- */
.marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    padding: 1.5rem 0;
    -webkit-mask-image: none;
    mask-image: none;
}

.marquee-track {
    display: flex;
    gap: 0.75rem;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
}

.marquee-track.reverse {
    animation: marquee-scroll-reverse 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track img {
    flex: 0 0 auto;
    width: auto;
    height: 480px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-marquee .marquee-track {
    gap: 0.5rem;
}

.hero-marquee .marquee-track img {
    height: 520px;
}

.marquee-track img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
    z-index: 10;
    border-color: var(--primary);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.btn-lg {
    font-size: 1.15rem;
    padding: 1.25rem 2.75rem;
    border-radius: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid #cbd5e1;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pulse-animation {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 3rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

.tag {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: inline-block;
    letter-spacing: 1px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* --- Features Section --- */
.feature-card-new {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

/* --- Bonus Section --- */
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.bonus-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.bonus-item:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.bonus-content h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
}

/* --- Testimonials --- */
.testimonials-carousel-container {
    position: relative;
    max-width: 750px;
    margin: 2.5rem auto 0;
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 20px;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: left;
    box-sizing: border-box;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.carousel-control.prev { left: -22px; }
.carousel-control.next { right: -22px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 12px;
}

/* --- Pricing Section --- */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 1.75rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
}

.pricing-card.premium {
    border: 2px solid #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    transform: scale(1.04);
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.best-seller-tag {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    white-space: nowrap;
}

.card-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.price-display {
    margin: 1rem 0;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.95rem;
    display: block;
}

.final-price {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.payment-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.4rem;
}

.check-list-price li {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.check-list-price li strong {
    color: var(--text-main);
}

.check-list-price i {
    color: var(--success);
    margin-top: 4px;
}

.check-list-price li.disabled {
    color: #cbd5e1;
    text-decoration: line-through;
}

.check-list-price li.disabled i {
    color: #ef4444;
}

.bonus-box {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--secondary);
}

/* --- Footer --- */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0;
    border-top: 5px solid var(--primary);
}

.main-footer h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.main-footer .disclaimer {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #64748b;
}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.5rem;
    border-radius: 1.75rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive queries */
@media (max-width: 768px) {
    .pricing-card.premium {
        transform: scale(1);
        margin-top: 1.5rem;
    }

    .marquee-track img {
        height: 340px;
    }

    .hero-marquee .marquee-track img {
        height: 380px;
    }

    .carousel-control.prev { left: -10px; }
    .carousel-control.next { right: -10px; }

    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1.05rem;
    }
}
