/* ==========================================================================
   Cordyceps Pulse — Design System & Stylesheet (ES Market)
   Designed for High-Converting Product Informational Prelandings
   ========================================================================== */

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

:root {
    /* Color Palette */
    --primary: #0f2b48;
    --primary-light: #1e3a5f;
    --primary-dark: #091a2e;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-soft: #fef2f2;
    --secondary: #059669;
    --secondary-light: #ecfdf5;
    --gold: #d97706;
    --gold-light: #fffbeb;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Elevation & Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 30px -8px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 25px rgba(220, 38, 38, 0.25);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Announcement Strip
   ========================================================================== */
.top-strip {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-strip span.highlight {
    color: #fde047;
    font-weight: 700;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.brand-logo span.cordyceps {
    color: var(--accent);
}

.brand-badge {
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   Buttons & CTA System
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-header {
    font-size: 0.8rem;
    padding: 10px 18px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.45);
    background: linear-gradient(135deg, #f87171, #dc2626, #991b1b);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    transform: rotate(30deg) translateX(-100%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: rotate(30deg) translateX(-100%); }
    20%, 100% { transform: rotate(30deg) translateX(100%); }
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    70% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 28px 0 60px;
    background: radial-gradient(circle at 85% 15%, rgba(30, 58, 95, 0.08), transparent 40%),
                radial-gradient(circle at 10% 85%, rgba(220, 38, 38, 0.05), transparent 35%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 2.15rem;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--neutral-900);
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--neutral-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--neutral-700);
    line-height: 1.35;
}

.bullet-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
}

.hero-product-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    filter: drop-shadow(0 15px 25px rgba(15, 43, 72, 0.15));
    transition: var(--transition);
}

.hero-product-img:hover {
    transform: scale(1.03);
}

.price-box {
    background: transparent;
    border: none;
    padding: 0;
    margin: 20px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price-box .btn {
    width: auto;
}

.price-old {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--neutral-600);
}

.price-new {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.price-discount {
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.875rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Section Headers & Common Card Layouts
   ========================================================================== */
.section {
    padding: 48px 0;
}

.section-alt {
    background-color: var(--neutral-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--secondary);
    background: var(--secondary-light);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-dark .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fde047;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 16px;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-600);
}

.section-dark .section-subtitle {
    color: var(--neutral-300);
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Cards Base */
.card {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* ==========================================================================
   Pains & Indications Section (Spanish Context)
   ========================================================================== */
.pain-card {
    border-top: 4px solid var(--accent);
}

.pain-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.pain-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.pain-desc {
    font-size: 0.95rem;
    color: var(--neutral-600);
}

/* ==========================================================================
   Multi-Benefit Section
   ========================================================================== */
.benefit-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.benefit-num {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-title {
    font-size: 1.25rem;
}

/* ==========================================================================
   Formula & Ingredients Section
   ========================================================================== */
.formula-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.ingredient-badge {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

/* ==========================================================================
   Prospecto Médico (Structured 12-Section Prospectus)
   ========================================================================== */
.prospecto-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--neutral-300);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.prospecto-header {
    background: var(--primary);
    color: #ffffff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.prospecto-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.prospecto-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.prospecto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--neutral-200);
}

.prospecto-item {
    background: #ffffff;
    padding: 24px;
}

.prospecto-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prospecto-val {
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.5;
}

/* ==========================================================================
   Pharmacy & Exclusivity Availability Check
   ========================================================================== */
.pharmacy-warning-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 40px;
}

.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.pharmacy-tag {
    background: #ffffff;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.pharmacy-tag.not-available {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.pharmacy-tag.official-site {
    grid-column: 1 / -1;
    background: var(--secondary-light);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 1.1rem;
    padding: 16px;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--neutral-200);
}

.comparison-table th {
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.comparison-table th.highlight-col {
    background: var(--accent);
}

.comparison-table td.highlight-col {
    background: #fef2f2;
    font-weight: 700;
    color: var(--accent);
}

/* ==========================================================================
   Ordering Steps & CTA Section
   ========================================================================== */
.order-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.step-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--neutral-300);
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Social Proof & Customer Reviews
   ========================================================================== */
.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.rating-score {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stars {
    color: var(--gold);
    font-size: 1.25rem;
}

.review-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.review-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-wrapper {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-icon {
    font-size: 1.25rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--neutral-600);
    display: none;
    font-size: 0.975rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 60px 0 30px;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--neutral-300);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.6;
}

.footer-disclaimer p {
    color: #ffffff;
}

/* Floating Sticky Mobile CTA */
.floating-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 43, 72, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    z-index: 99;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: space-between;
}

.floating-price {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.floating-price span {
    color: var(--accent);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid, .grid-2, .why-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-3, .grid-4, .pharmacy-grid, .order-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prospecto-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-card, .card {
        padding: 20px 14px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .prospecto-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .prospecto-title {
        font-size: 1.1rem;
        line-height: 1.35;
    }
    
    .hero-product-img {
        max-width: 240px;
        width: 100%;
        height: auto;
    }
    
    .nav-menu, .btn-header {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .grid-3, .grid-4, .pharmacy-grid, .order-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-mobile-cta {
        display: flex;
    }
    
    .site-footer {
        padding-bottom: 90px;
    }
    
    .btn {
        width: 100%;
    }

    .cta-box {
        padding: 32px 18px;
    }

    .cta-box h2 {
        font-size: 1.55rem;
        line-height: 1.35;
    }

    .price-box .btn, .cta-box .btn {
        width: auto;
        padding: 12px 32px !important;
        font-size: 1rem !important;
    }
}
