/**
 * Trabajo24 Homepage - Upwork-Quality Professional Design
 * COMPLETE REWRITE - Clean spacing, no sed-replacement errors
 *
 * @package Trabajo24
 * @version 8.0.1 - Hotfix
 *
 * Changelog v8.0.1:
 * - Fixed Spanish grammar: "con" → "en" tus propias palabras
 *
 * Changelog v8.0:
 * - Removed usage-info text from AI Calculator
 * - Added modern gradient button styling for Analizar Proyecto
 * - Fixed search form to use Workreap search (keyword parameter)
 * - Removed duplicate market-insights-section statistics
 * - Fixed app downloads to show exact count (450 instead of 451+)
 */

/* ===================================
   UPWORK-STYLE DESIGN SYSTEM
   =================================== */

#t24-redesign-homepage {
    /* COLORS - Only 4 grays like Upwork */
    --primary: #dd8e18;
    --primary-hover: #c57d14;
    --primary-light: #FFF3DC;

    --text-primary: #001E00;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --bg-gray: #F8FAFC;
    --white: #FFFFFF;

    --accent: #0EA5E9;
    --accent-hover: #0284C7;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* TYPOGRAPHY - Upwork Scale */
    --text-h1: 48px;
    --text-h2: 32px;
    --text-h3: 24px;
    --text-body: 16px;
    --text-small: 14px;
    --text-xs: 12px;

    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* SPACING - 8px Grid (NO sed replacement!) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 96px;
    --space-6xl: 120px;

    /* SHADOWS - Multi-layer Upwork style */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

    /* BORDER RADIUS */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* TRANSITIONS */
    --transition: 200ms ease;

    /* BASE STYLES */
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#t24-redesign-homepage * {
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);  /* 24px */
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: var(--white);
    padding: 80px 24px 60px;  /* Professional spacing - industry standard */
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;  /* Industry standard (Upwork/Fiverr) */
    font-weight: 700;  /* Bold, not extra-bold */
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;  /* Professional line-height */
    margin-bottom: 20px;
}

.hero-title .highlight {
    font-weight: 700;  /* Match title */
    background: linear-gradient(135deg, #dd8e18 0%, #e5a030 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;  /* Professional subtitle size */
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: var(--font-normal);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Hero Subtitle Rotator - swipe only the text block, hero/search stay fixed */
.hero-subtitle-rotator {
    position: relative;
    display: block;
    min-height: 2.6em; /* reserve space for 1-2 lines -> no layout shift */
}
.hero-rot-slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.hero-rot-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.hero-rot-slide.is-leaving {
    opacity: 0;
    transform: translateX(-24px);
}
.hero-rot-slide strong { color: var(--primary, #2563eb); font-weight: var(--font-semibold, 600); }
@media (prefers-reduced-motion: reduce) {
    .hero-rot-slide { transition: opacity 0.3s ease; transform: none; }
    .hero-rot-slide.is-leaving { transform: none; }
}

/* Hero Tabs - Modern Segmented Control */
.hero-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    margin-bottom: 32px;
    position: relative;
}

.hero-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #64748B;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.hero-tab .tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #94A3B8;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tab .tab-label {
    line-height: 1;
}

/* Active State - Floating Pill */
.hero-tab.active {
    background: #FFFFFF;
    color: #dd8e18;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                0 1px 3px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.hero-tab.active .tab-icon {
    color: #dd8e18;
}

/* Hover State */
.hero-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.5);
    color: #475569;
    transform: scale(1.01);
}

.hero-tab:not(.active):hover .tab-icon {
    color: #64748B;
}

/* Focus State for Accessibility */
.hero-tab:focus-visible {
    outline: 2px solid #dd8e18;
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-tabs {
        display: flex;
        width: 100%;
        padding: 3px;
    }

    .hero-tab {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero-tab .tab-icon {
        width: 16px;
        height: 16px;
    }
}

/* Tab Content - NO double boxing */
.tab-content {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.tab-content.active {
    display: block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 8px 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 142, 24, 0.15);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--primary);
    stroke-width: 2;
}

.service-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Services Footer */
.services-footer {
    margin-top: 24px;
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-all:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 142, 24, 0.3);
}

/* AI Analyzer Button */
.btn-ai-analyze {
    width: auto;
    min-width: 220px;
    padding: 14px 32px;
    margin: 0 auto;
    background: linear-gradient(135deg, #dd8e18 0%, #e9a633 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(221, 142, 24, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ai-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 142, 24, 0.4);
    background: linear-gradient(135deg, #e9a633 0%, #dd8e18 100%);
}

.btn-ai-analyze:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(221, 142, 24, 0.2);
}

.btn-ai-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-ai-analyze .btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ai-analyze .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 16px 12px;
    }

    .service-icon {
        width: 32px;
        height: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .services-footer {
        margin-top: 20px;
    }

    .btn-view-all {
        font-size: 14px;
        padding: 10px 24px;
    }
}

/* Search Form - Prominent */
.hero-search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08),
                0 12px 24px rgba(0,0,0,0.12),
                0 20px 40px rgba(0,0,0,0.08);  /* 3-layer depth - keeping this professional feature */
}

.search-input-group:focus-within {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #dd8e18 0%, #e5a030 100%) border-box;
    box-shadow: 0 0 0 4px rgba(221, 142, 24, 0.1),
                0 8px 16px rgba(0,0,0,0.12),
                0 16px 32px rgba(0,0,0,0.15);  /* ANIMATED GRADIENT BORDER + GLOW */
}

.search-icon {
    color: var(--text-secondary);
    margin-left: var(--space-sm);  /* 8px */
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;  /* Professional standard */
    color: var(--text-primary);
    background: transparent;
    padding: 18px 12px;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-button {
    background: linear-gradient(135deg, #dd8e18 0%, #c57d14 100%);  /* Gradient - keeping this */
    color: var(--white);
    border: none;
    padding: 16px 32px;  /* Professional sizing */
    border-radius: var(--radius-sm);
    font-size: 16px;  /* Professional standard */
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(221, 142, 24, 0.3);
}

.search-button:hover {
    background: linear-gradient(135deg, #c57d14 0%, #b07012 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 142, 24, 0.4),
                0 0 30px rgba(221, 142, 24, 0.2);  /* Orange glow - keeping this */
}

/* Search Type Tabs */
.search-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.search-type-tab {
    padding: 6px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-type-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.search-type-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Trust Line - Professional */
.trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    font-size: 15px;
    color: var(--text-secondary);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;  /* Pill background - keeping this professional feature */
    background: rgba(248, 250, 252, 0.5);
    border-radius: 24px;
    transition: all 300ms ease;
}

.trust-item:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateY(-1px);
}

.trust-item .icon {
    color: var(--success);
    width: 18px;
    height: 20px;
}

.separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
    margin: 0;  /* DOT separator */
}

/* ===================================
   SECTIONS - Standard Spacing
   =================================== */

section {
    padding: var(--space-4xl) var(--space-lg);  /* 80px 24px */
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);  /* 48px */
}

.section-title {
    font-size: var(--text-h2);  /* 32px */
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);  /* 16px */
}

.section-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);  /* 24px */
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);  /* 24px */
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-secondary);
}

.stat-icon {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);  /* 16px */
}

.stat-number {
    font-size: var(--text-h1);  /* 48px */
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);  /* 8px */
}

.stat-label {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* ===================================
   WORKREAP FREELANCER CARDS IN SWIPER
   =================================== */

.freelancer-carousel {
    overflow: hidden;
    max-width: 100%;
}

.freelancer-carousel .swiper-wrapper {
    align-items: stretch;
}

.freelancer-carousel .swiper-slide {
    height: auto;
}

/* Override Workreap core rule that forces all <i> in .wr-author-name to circle-check */
.wr-author-name > i.fa-solid::before {
    content: var(--fa) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-size: 14px !important;
}

.swiper-slide .wr-freelancers-grid-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.swiper-slide .wr-freelancers-grid-item .wr-freelancer-body {
    flex: 1;
}

.swiper-slide .wr-freelancers-grid-item .wr-freelancer-footer {
    margin-top: auto;
}

/* Mobile: prev/next arrows are absolute-centered and overlapped the card title/price;
   swipe + pagination dots are enough on touch. Also drop the equal-height stretch that
   left ~250px dead space when only one card is visible. */
@media (max-width: 768px) {
    .freelancer-carousel .swiper-button-prev,
    .freelancer-carousel .swiper-button-next {
        display: none;
    }
    .freelancer-carousel .swiper-wrapper {
        align-items: flex-start;
    }
    .freelancer-carousel .swiper-slide .wr-freelancers-grid-item {
        height: auto;
    }
    .freelancer-carousel .swiper-slide .wr-freelancers-grid-item .wr-freelancer-body {
        flex: 0 1 auto;
    }
    .freelancer-carousel {
        padding-bottom: 32px;
    }
    .freelancer-carousel .swiper-pagination {
        bottom: 4px;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);  /* 16px 32px */
    border-radius: var(--radius-sm);
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);  /* 8px */
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: var(--space-md) var(--space-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: var(--bg-gray);
    padding: var(--space-6xl) var(--space-lg);  /* 120px 24px */
    text-align: center;
}

.cta-title {
    font-size: var(--text-h2);  /* 32px */
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);  /* 16px */
}

.cta-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);  /* 48px */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);  /* 16px */
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   SVG ICONS
   =================================== */

.tab-icon,
.btn-icon,
.search-icon,
.stat-icon,
.step-icon,
.feature-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 64px 16px 48px;  /* Mobile spacing */
    }

    .hero-title {
        font-size: 48px;  /* Bigger on mobile - was 40px */
        letter-spacing: -0.02em;
        font-weight: 800;  /* Keep extra bold */
    }

    .hero-subtitle {
        font-size: 20px;  /* Bigger - was 18px */
        margin-bottom: 24px;
    }

    .hero-tabs {
        flex-direction: row;  /* Keep horizontal on mobile */
        flex-wrap: wrap;
        font-size: 15px;  /* Bigger - was 14px */
    }

    .hero-tab {
        padding: 12px 4px;  /* Bigger - was 10px 2px */
    }

    .search-input-group {
        padding: 10px;  /* Slightly smaller than desktop 12px */
    }

    .search-input {
        padding: 18px 12px;  /* Bigger - was 16px 10px */
        font-size: 16px;
    }

    .search-button {
        padding: 18px 24px;  /* Bigger - was 16px 24px */
        font-size: 16px;
    }

    .trust-line {
        flex-wrap: wrap;
        gap: var(--space-md);
        font-size: 14px;
    }

    .section-title {
        font-size: var(--text-h3);  /* 24px */
    }

    .stats-grid,
    .freelancers-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===================================
   HIDE BADGES
   =================================== */

.badge-new {
    display: none !important;
}

.btn-view-profile:hover {
    background: var(--text-primary);
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: var(--text-primary);
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* Category Grid */
.category-grid-wrapper {
    margin-top: var(--space-lg);  /* 24px */
}

.category-grid-title {
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: var(--space-md);  /* 16px */
    color: var(--text-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);  /* 16px */
}

.category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);  /* 16px 24px */
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
}

.category-card:hover {
    border-color: var(--primary);
}

.category-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.category-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);  /* 4px */
}

.category-count {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   VALUE PROPS
   =================================== */

.value-props-section {
    background: var(--white);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);  /* 24px */
}

.prop-card {
    padding: var(--space-lg);  /* 24px */
    text-align: center;
}

.prop-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);  /* 16px */
    color: var(--primary);
}

.prop-title {
    font-size: var(--text-body);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 auto var(--space-md);  /* 16px */
}

.prop-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-base);
}

/* ===================================
   HOW IT WORKS
   =================================== */

.how-it-works-section {
    background: var(--bg-gray);
}

.process-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    margin: 0 auto var(--space-lg);
    width: fit-content;
}

.process-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #64748B;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.process-tab.active {
    background: #FFFFFF;
    color: #dd8e18;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                0 1px 3px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.process-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.5);
    color: #475569;
    transform: scale(1.01);
}

.process-tab .tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.process-tab.active .tab-icon {
    color: #dd8e18;
}

@media (max-width: 480px) {
    .process-tabs {
        width: auto;
        max-width: 100%;
    }
    .process-tab {
        padding: 12px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }
}

.process-content {
    display: none;
}

.process-content.active {
    display: block;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
    gap: var(--space-md);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-body);
    margin: 0 auto var(--space-md);  /* 16px */
}

.step-icon {
    font-size: var(--text-h1);
    margin: 0 auto var(--space-md);  /* 16px */
}

.step-title {
    font-size: var(--text-body);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 auto var(--space-md);  /* 16px */
}

.step-description {
    color: var(--text-secondary);
    font-size: var(--text-small);
    line-height: 1.7;
}

/* Step Connector Lines between steps */
.step-connector {
    display: none; /* Hidden on mobile/grid single column */
}

@media (min-width: 769px) {
    .timeline {
        position: relative;
    }
    .step-connector {
        display: block;
        height: 2px;
        background: var(--border-color);
        align-self: center;
    }
}

/* ===================================
   TESTIMONIALS
   =================================== */

.testimonials-section {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);  /* 24px */
}

.testimonial-card {
    padding: var(--space-lg);  /* 24px */
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.testimonial-rating {
    color: #dd8e18;
    font-size: var(--text-body);
    margin: 0 auto var(--space-md);  /* 16px */
}

.testimonial-rating .star {
    color: #dd8e18;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 auto var(--space-md);  /* 16px */
    font-size: var(--text-base);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-lg);  /* 24px */
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    font-size: var(--text-small);
}

.author-role {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* ===================================
   APP PROMO
   =================================== */

.app-promo-section {
    padding: var(--space-4xl) var(--space-lg);  /* 80px 24px */
    background: var(--text-primary);
    color: var(--white);
}

.app-promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);  /* 24px */
    align-items: center;
}

.app-promo-title {
    font-size: var(--text-h1);
    font-weight: var(--font-bold);
    margin: 0 0 var(--space-md);
    color: var(--white);
}

.app-promo-description {
    font-size: var(--text-body);
    opacity: 0.9;
    margin: 0 0 var(--space-lg);
    line-height: 1.7;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);  /* 16px */
    margin: 0 0 var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);  /* 8px */
    font-size: var(--text-base);
}

.feature-icon {
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.app-download-buttons {
    display: flex;
    gap: var(--space-md);  /* 16px */
    margin: 0 0 var(--space-lg);
}

.app-download-btn img {
    height: 48px;
    width: auto;
}

.app-stats {
    display: flex;
    gap: var(--space-lg);  /* 24px */
}

.app-stat-number {
    display: block;
    font-size: var(--text-h2);
    font-weight: var(--font-bold);
    color: var(--primary);
}

.app-stat-label {
    font-size: var(--text-small);
    opacity: 0.8;
}

.app-mockup {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ===================================
   CATEGORIES
   =================================== */

.categories-section {
    background: var(--bg-gray);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);  /* 24px */
    justify-content: center;
}

.category-link {
    padding: var(--space-md) var(--space-lg);  /* 16px 24px */
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--text-small);
    transition: var(--transition);
}

.category-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================================
   FINAL CTA
   =================================== */

.final-cta-section {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--white);
    text-align: center;
}

.cta-title {
    font-size: var(--text-h1);
    font-weight: var(--font-bold);
    margin: 0 auto var(--space-md);  /* 16px */
    letter-spacing: -0.03em;
}

.cta-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    margin: 0 auto var(--space-md);  /* 16px */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);  /* 24px */
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: var(--space-md) var(--space-lg);  /* 16px 24px */
    font-size: var(--text-body);
}

/* Final CTA - Segmented Control Buttons */
.final-cta-section .cta-buttons {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    justify-content: center;
    flex-wrap: nowrap;
}

.final-cta-section .cta-buttons .btn-primary,
.final-cta-section .cta-buttons .btn-secondary {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.final-cta-section .cta-buttons .btn-primary {
    background: #FFFFFF !important;
    color: #dd8e18 !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                0 1px 3px rgba(0, 0, 0, 0.08);
}

.final-cta-section .cta-buttons .btn-secondary {
    background: transparent !important;
    color: #64748B !important;
    border: none !important;
}

.final-cta-section .cta-buttons .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1);
}

.final-cta-section .cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #475569 !important;
    transform: scale(1.01);
}

@media (max-width: 480px) {
    .final-cta-section .cta-buttons {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .final-cta-section .cta-buttons .btn-primary,
    .final-cta-section .cta-buttons .btn-secondary {
        flex: 1;
        min-width: 0;
        justify-content: center;
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* ===================================
   NOTIFICATIONS
   =================================== */

.t24-notification {
    position: fixed;
    top: 4px;
    right: -400px;
    background: var(--white);
    padding: var(--space-md) var(--space-lg);  /* 16px 24px */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);  /* 24px */
    z-index: 10000;
    transition: right 200ms ease;
    max-width: 400px;
}

.t24-notification.show {
    right: 4px;
}

.t24-notification.success {
    border-left: 4px solid var(--success);
}

.t24-notification.error {
    border-left: 4px solid var(--error);
}

.notification-message {
    flex: 1;
    color: var(--text-primary);
    font-size: var(--text-small);
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .app-promo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-promo-title {
        margin: 0 auto var(--space-md);
    }

    .app-promo-description {
        margin: 0 auto var(--space-lg);
    }

    .app-features {
        align-items: center;
    }

    .app-download-buttons,
    .app-stats {
        justify-content: center;
    }

    .app-mockup {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .app-promo-title {
        font-size: var(--text-h2);
    }
}

/* [REMOVED] Conflicting mobile block that was overriding good responsive styles */

@media (max-width: 640px) {
    #t24-redesign-homepage {
        --space-24: 4rem;
        --space-32: 5rem;
    }

    .tab-content {
        padding: var(--space-lg);  /* 24px */
    }

    .stats-grid,
    .freelancers-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PROFESSIONAL SVG ICONS
   =================================== */

/* SVG icons inherit color from parent */
.tab-icon,
.btn-icon,
.search-icon,
.stat-icon,
.step-icon,
.feature-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.tab-icon {
    margin: 0 auto var(--space-md);  /* 16px */
}

.btn-icon {
    margin: 0 auto var(--space-md);  /* 16px */
}

.stat-icon {
    color: var(--text-secondary);
    margin: 0 auto var(--space-md);  /* 16px */
}

.step-icon {
    color: var(--primary);
    margin: 0 auto var(--space-md);  /* 16px */
}

.trust-item .icon {
    color: var(--success);
    margin: 0 auto var(--space-md);  /* 16px */
}

/* ===================================
   SEARCH FORM - FUNCTIONAL
   =================================== */

.hero-search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-lg);  /* 24px */
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);  /* 24px */
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.search-icon {
    color: var(--border-color);
    margin: 0 auto var(--space-md);  /* 16px */
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: transparent;
    padding: var(--space-md) var(--space-lg);  /* 16px 24px */
}

.search-input::placeholder {
    color: var(--border-color);
}

.search-button {
    background: var(--text-primary);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-lg);  /* 16px 24px */
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-button:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
}

/* ===================================
   CARD HOVER STATES - PROFESSIONAL
   =================================== */

.stat-card,
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

/* ===================================
   REMOVE "NUEVO" BADGE - HIDE IT
   =================================== */

.badge-new {
    display: none !important;  /* Hide cheap "NUEVO" badge */
}

/* ===================================
   CRITICAL OVERRIDES - FORCE WITH !important
   =================================== */

/* v7.0 Hero styles applied in lines 105-269 - no overrides needed here */

/* FORCE hide NUEVO badge */
.badge-new,
.badge-nuevo,
.nuevo-badge,
span[class*="badge"][class*="new"],
span[class*="nuevo"] {
    display: none !important;
    visibility: hidden !important;
}


/* ===================================
   UPWORK V5.0 - CRITICAL OVERRIDES
   =================================== */

/* v7.0 Hero: 64px H1 + orange highlight - see lines 105-269 */

/* FORCE H2 size - 32px */
.section-title,
#t24-redesign-homepage .section-title {
    font-size: 2rem !important;  /* 32px */
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

/* FORCE H3 size - 24px */
.card-title,
.step-title,
#t24-redesign-homepage .card-title {
    font-size: 1.5rem !important;  /* 24px */
    font-weight: 600 !important;
}

/* FORCE Orange buttons */
.btn-primary,
.search-button,
#t24-redesign-homepage .btn-primary,
#t24-redesign-homepage .search-button {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 12px var(--space-lg) !important;  /* 12px 24px */
    border-radius: var(--radius-sm) !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-primary:hover,
.search-button:hover,
#t24-redesign-homepage .btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Transitions set via var(--transition) on specific elements */

/* FORCE card border-radius to 12px (Upwork style) */
.card,
.feature-card,
.testimonial-card,
#t24-redesign-homepage .card {
    border-radius: var(--radius-md) !important;  /* 12px */
}


/* ===================================
   V5.1 - FIX BUTTON COLORS (AGGRESSIVE)
   =================================== */

/* FORCE Orange on ALL button variations */
.btn-primary,
.button-primary,
.search-button,
button[type="submit"],
.btn,
a.button,
.wt-btn,
input[type="submit"],
.submit-button,
#t24-redesign-homepage button:not(.hero-tab):not(.process-tab):not(.search-type-tab):not(.t24-seg):not(.t24-gp-exp):not(.t24-gp-x):not(.t24-pop-x):not(.t24-pill-b):not(.search-button):not(.btn-primary):not([class*="maplibregl"]),
#t24-redesign-homepage .btn-primary,
#t24-redesign-homepage .button {
    background-color: #dd8e18 !important;
    background: #dd8e18 !important;
    color: #FFFFFF !important;
    border: none !important;
}

/* Removed old v5.1 tab overrides - modern v7.5 segmented control styles now work */

/* Override FORCE Orange for Final CTA segmented control buttons */
#t24-redesign-homepage .final-cta-section .cta-buttons .btn-primary {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #dd8e18 !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#t24-redesign-homepage .final-cta-section .cta-buttons .btn-primary:hover {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================
   V5.1 - FORCE SECTION PADDING
   =================================== */

/* Force 80px on ALL sections */
section,
.section,
[class*="-section"],
#t24-redesign-homepage section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Hero gets professional spacing - v7.4 */
.hero-section,
#t24-redesign-homepage .hero-section {
    padding-top: 80px !important;  /* Industry standard (Upwork/Fiverr) */
    padding-bottom: 60px !important;  /* Not excessive anymore */
}

/* CTA section gets 120px */
.cta-section,
#t24-redesign-homepage .cta-section {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

/* ===================================
   MODAL OVERLAY & UPGRADE PROMPT
   =================================== */

.t24-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.t24-modal-overlay.show {
    opacity: 1;
}

.t24-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    padding: var(--space-2xl);
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.t24-modal-overlay.show .t24-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.upgrade-modal .modal-content {
    text-align: center;
}

.upgrade-modal .upgrade-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.upgrade-modal h2 {
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.upgrade-modal p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: var(--text-small);
}

.upgrade-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.upgrade-plan {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
}

.upgrade-plan.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.upgrade-plan h3 {
    font-size: var(--text-body);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-sm);
}

.plan-price {
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.plan-price span {
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    color: var(--text-secondary);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 10px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    white-space: nowrap;
}

.upgrade-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
    text-align: left;
}

.upgrade-plan ul li {
    padding: 4px 0;
    font-size: var(--text-small);
    color: var(--text-secondary);
}

.upgrade-plan ul li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
}

@media (max-width: 480px) {
    .upgrade-plans-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   AI CALCULATOR FORM
   =================================== */

.ai-calculator-form {
    padding: var(--space-md) 0;
}

.form-label {
    display: block;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-align: left;
}

.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text-body);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(221, 142, 24, 0.1);
}

.form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group {
    margin-bottom: var(--space-md);
}

/* AI Questions */
.questions-title {
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: left;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.question-item {
    text-align: left;
}

.question-label {
    display: block;
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.question-number {
    color: var(--primary);
    font-weight: var(--font-bold);
    margin-right: 4px;
}

.question-text {
    color: var(--text-primary);
}

.form-select,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text-small);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(221, 142, 24, 0.1);
}

/* ===================================
   FREELANCER CARD - FULL STYLES
   =================================== */

.freelancer-showcase-section {
    background: var(--bg-gray);
}

.card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    font-size: var(--text-xs);
    position: absolute;
    top: 0;
    right: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.status-dot.available {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: var(--success);
    font-weight: var(--font-medium);
}

.rating-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #D1D5DB;
    font-size: 14px;
    line-height: 1;
}

.star.filled {
    color: #F59E0B;
}

.star.half {
    color: #F59E0B;
    opacity: 0.6;
}

.rating-number {
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.review-count {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.new-freelancer-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--space-sm) 0;
}

.hourly-rate {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
}

.rate-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.rate-amount {
    font-size: var(--text-body);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.btn-view-profile {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--text-primary);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-profile:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 142, 24, 0.3);
}

/* ===================================
   MARKET INSIGHTS SECTION
   =================================== */

.market-insights-section {
    background: var(--white);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.chart-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.chart-title {
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .chart-wrapper {
        height: 280px;
    }
}

/* ===================================
   APP SCREENS (App Promo) — echte Workfleet-Screenshots,
   gestaffelt: Listado hinten links, Proveedor-Home vorne rechts.
   =================================== */
.app-screens {
    position: relative;
    width: 340px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 560px;
}
.app-screen {
    position: absolute;
    /* Freigestellte PNGs (transparenter Hintergrund): kein border-radius/box-shadow
       auf der Bildbox mehr - drop-shadow folgt der Phone-Silhouette. */
    filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.35));
    background: transparent;
    /* !important: eine fremde Regel erzwang eine feste Hoehe -> Screens wurden
       ~10-14% in die Breite gezogen (Boris: renAR 0.52 vs natAR 0.46). */
    height: auto !important;
    aspect-ratio: auto;
    object-fit: contain;
}
.app-screen--back {
    left: 0;
    top: 0;
    width: 225px;
    transform: rotate(-5deg);
    z-index: 1;
    filter: brightness(0.97);
}
.app-screen--front {
    right: 0;
    bottom: 0;
    width: 240px;
    transform: rotate(3deg);
    z-index: 2;
}
@media (max-width: 991px) {
    .app-screens { min-height: 480px; width: 300px; }
    .app-screen--back { width: 195px; }
    .app-screen--front { width: 210px; }
}
@media (max-width: 480px) {
    .app-screens { min-height: 420px; width: 260px; }
    .app-screen--back { width: 168px; }
    .app-screen--front { width: 184px; }
}

/* ===================================
   PHONE MOCKUP (App Promo)
   =================================== */

.phone-mockup {
    width: 260px;
    height: 520px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    height: 100%;
    padding: 40px 16px 16px;
    overflow: hidden;
}

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

.phone-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.phone-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.phone-search {
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.phone-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-card {
    height: 80px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.phone-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phone-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.phone-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.phone-card-role {
    font-size: 11px;
    color: #64748b;
}

.phone-card-stars {
    font-size: 11px;
    color: #f59e0b;
    letter-spacing: 1px;
}

/* App store badges (SVG-based) */
.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 5px;
    overflow: hidden;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge svg {
    display: block;
}

/* ===================================
   MOBILE RESPONSIVE (consolidated)
   Final overrides - placed at end to
   win cascade over all earlier rules
   =================================== */

@media (max-width: 768px) {
    /* Hero */
    .hero-section {
        padding: 48px 16px 32px !important;
    }
    .hero-title {
        font-size: 28px !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em;
    }
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 20px;
    }

    /* Tabs - stay horizontal */
    .hero-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }
    .hero-tab {
        flex: 1;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
    .hero-tab .tab-label {
        font-size: 13px;
    }
    .hero-tab .tab-icon {
        width: 16px !important;
        height: 16px !important;
    }

    /* Section titles */
    .section-title,
    #t24-redesign-homepage .section-title {
        font-size: 22px !important;
    }
    .section-subtitle {
        font-size: 14px !important;
    }
    .section-header {
        margin-bottom: 24px !important;
    }

    /* Sections - reduce vertical padding */
    #t24-redesign-homepage section {
        padding: 48px 16px !important;
    }

    /* Testimonials - single column */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }

    /* App promo */
    .app-promo-title {
        font-size: 24px !important;
    }
    .app-promo-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    /* CTA */
    .cta-title {
        font-size: 24px !important;
    }
    .cta-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Timeline/How it works */
    .timeline {
        grid-template-columns: 1fr !important;
    }
    .timeline .step-connector {
        display: none;
    }

    /* Process tabs */
    .process-tab {
        font-size: 14px !important;
    }

    /* Category grid */
    .category-grid {
        grid-template-columns: 1fr !important;
    }

    /* Search type tabs */
    .search-type-tabs {
        justify-content: center;
    }
    .search-type-tab {
        padding: 5px 12px !important;
        font-size: 13px !important;
    }

    /* Search form - stack on mobile */
    .search-input-group {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .search-button {
        width: 100% !important;
    }

    /* Trust line - stack vertically */
    .trust-line {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .separator {
        display: none !important;
    }

    /* Value props - single column */
    .props-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px !important;
    }
    .hero-tabs {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 4px !important;
        padding: 3px !important;
    }
    .hero-tab {
        flex: 0 0 auto;
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: 0;
        white-space: nowrap;
    }
    .hero-tab .tab-icon {
        display: none !important;
    }
    .final-cta-section .cta-buttons .btn-primary,
    .final-cta-section .cta-buttons .btn-secondary {
        font-size: 14px !important;
    }
}



/* ============================================
   SECTION 8b: "Sé como Casa Creativa" — profile benchmark (horizontal)
   ============================================ */
.benchmark-section {
    padding: 56px 0;
    background: var(--bg-gray);
}
.benchmark-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}
.benchmark-eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.benchmark-title {
    font-size: var(--text-h2);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 8px;
}
.benchmark-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- card: split into two columns ---- */
.benchmark-card--split {
    display: flex;
    max-width: 920px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* LEFT column */
.benchmark-side {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px;
    background: linear-gradient(160deg, var(--primary-light) 0%, #FFFFFF 70%);
    border-right: 1px solid var(--border-color);
}
.benchmark-avatar {
    width: 200px;
    height: 150px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 12px;
    box-shadow: var(--shadow-md);
}
.benchmark-name {
    margin-top: 18px;
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.2;
}
.benchmark-name:hover { color: var(--primary); }
.benchmark-tagline {
    margin-top: 4px;
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-style: italic;
}
.benchmark-badge {
    margin-top: 12px;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--success);
    background: rgba(16,185,129,0.12);
    padding: 5px 14px;
    border-radius: 999px;
}
.benchmark-sidestats {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}
.benchmark-sidestat {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.benchmark-sidestat--accent {
    background: var(--primary);
    border-color: var(--primary);
}
.benchmark-sidestat-num {
    font-size: 26px;
    font-weight: var(--font-bold);
    line-height: 1;
    color: var(--text-primary);
}
.benchmark-sidestat--accent .benchmark-sidestat-num { color: #FFFFFF; }
.benchmark-sidestat-label {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}
.benchmark-sidestat--accent .benchmark-sidestat-label { color: rgba(255,255,255,0.9); }

/* RIGHT column */
.benchmark-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 32px 28px;
}
.benchmark-main-head { margin-bottom: 6px; }
.benchmark-main-title {
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}
.benchmark-main-sub {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}
.benchmark-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.benchmark-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.benchmark-row:last-child { border-bottom: none; }
.benchmark-row .bm-metric {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}
.benchmark-row .bm-win {
    min-width: 64px;
    text-align: center;
    font-weight: var(--font-bold);
    color: var(--success);
    font-size: var(--text-small);
}
.benchmark-row .bm-avg {
    min-width: 92px;
    text-align: right;
    font-size: var(--text-xs);
    color: var(--text-secondary);
}
.benchmark-list-legend {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
.benchmark-list-legend span:nth-child(1) { visibility: hidden; }
.benchmark-list-legend span:nth-child(2) { min-width: 64px; text-align: center; color: var(--primary); }
.benchmark-list-legend span:nth-child(3) { min-width: 92px; text-align: right; }

.benchmark-footer {
    margin-top: auto;
    padding-top: 22px;
}
.benchmark-footer .btn-primary {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}
.benchmark-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin: 0;
}
.benchmark-disclaimer svg { color: var(--success); flex-shrink: 0; }
.benchmark-disclaimer a { color: var(--primary); }

/* ---- responsive: stack columns ---- */
@media (max-width: 768px) {
    .benchmark-card--split { flex-direction: column; }
    .benchmark-side {
        flex-basis: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 32px 24px 28px;
    }
    .benchmark-avatar { width: 180px; height: 130px; }
    .benchmark-main { padding: 24px 20px; }
    .benchmark-footer .btn-primary { width: 100%; }
}
@media (max-width: 420px) {
    .benchmark-row { grid-template-columns: 1fr auto auto; gap: 8px; }
    .benchmark-row .bm-avg { min-width: 72px; }
    .benchmark-sidestats { flex-direction: row; }
}

/* "Sé como Casa Creativa" — homepage-impact strip (since-publication uplift) */
.benchmark-impact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--primary-light);
    border: 1px solid #F3D9A8;
    border-radius: 12px;
}
.benchmark-impact svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.benchmark-impact-text { font-size: var(--text-small); line-height: 1.45; color: var(--text-primary); }
.benchmark-impact-text strong { color: var(--primary-hover); }
.benchmark-impact-sub { display: block; margin-top: 3px; font-size: var(--text-xs); color: var(--text-secondary); }

/* ===== Globus-Grundregeln und Nacht-Theme (aus der Stage) ===== */
/* Fotorealistischer 3D-Globus im Hero (mu-plugin t24-ai-calculator-map, bg-Modus).
   Desktop: Globus rechts, Text links. Mobile: Globus als Hintergrund hinter dem Content. */
.hero-globe-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto; /* Globus interaktiv (drehen/zoomen) */
}
/* Scrim ueber dem Canvas (z:1), sonst unsichtbar. Basis-Definition hier,
   damit ::after auch dann positioniert existiert, wenn eine Media-Query
   nur den Verlauf setzt. */
.hero-globe-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-section > .container {
    position: relative;
    z-index: 1;
    pointer-events: none; /* leere Flaechen lassen Klicks zum Globus durch */
}
.hero-section > .container :is(a, button, input, select, textarea, label, form, .hero-tab, .hero-tabs) {
    pointer-events: auto; /* interaktive Elemente bleiben klickbar */
}

/* Desktop: zweispaltig — Globus rechts, Inhalt ganz links */
@media (min-width: 992px) {
    .hero-section { text-align: left; }
    .hero-section > .container { max-width: none; margin: 0; padding-left: clamp(28px, 5vw, 80px); padding-right: 24px; }
    .hero-globe-bg { left: 40%; right: 0; }
    .hero-globe-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.92) 14%, rgba(255,255,255,0.6) 28%, rgba(255,255,255,0.25) 40%, rgba(255,255,255,0.0) 54%);
    }
    .hero-content { margin: 0; max-width: 500px; text-align: left; }
    .hero-subtitle { margin-left: 0; margin-right: 0; }
    .hero-tabs { justify-content: flex-start; }
}
/* Hoehere Specificity, um die Theme-Container-Zentrierung zu schlagen (Content ganz links) */
@media (min-width: 992px) {
    #t24-redesign-homepage .hero-section > .container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: clamp(28px, 5vw, 84px) !important;
        padding-right: 24px !important;
    }
    #t24-redesign-homepage .hero-section .hero-content { margin: 0 !important; max-width: 500px !important; }
}

/* Mobile/Tablet: Globus bekommt eine EIGENE Flaeche unterhalb des Contents statt
   vollflaechig dahinter zu liegen. Vorher schlugen die Laender-Labels durch Ueberschrift,
   Tabs und Trust-Cards (unlesbar) — deshalb war er zwischenzeitlich ganz ausgeblendet.
   Jetzt: Content oben auf Weiss, Globus unten als klar abgegrenzte Buehne mit weichem
   Verlauf an der Oberkante. Kein Ueberlapp = kein Bleed, Globus bleibt mobil sichtbar. */
@media (max-width: 991px) {
    .hero-section { padding-bottom: 300px; }
    .hero-globe-bg { top: auto; bottom: 0; height: 330px; }
    .hero-globe-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.86) 11%, rgba(255,255,255,0.32) 30%, rgba(255,255,255,0) 55%);
    }
    /* Nachtmodus: gleicher Verlauf, nur in Weltraum-Schwarz */
    .hero-section.t24-hero-night .hero-globe-bg::after {
        background: linear-gradient(180deg, rgba(12,23,51,1) 0%, rgba(11,20,44,0.88) 10%, rgba(8,14,32,0.45) 26%, rgba(6,10,24,0.12) 42%, rgba(4,6,14,0) 58%) !important;
    }
    /* Trust-Line + CTA ragen in die Buehne und wurden vom Canvas UEBERDRUCKT: der
       absolut positionierte Globus (z-index:0) schlaegt statisch positionierte Elemente.
       z-index hebt sie sauber darueber; eigener Karten-Hintergrund haelt sie lesbar. */
    .hero-section .trust-line,
    .hero-section .hero-stats,
    .hero-section .trust-item,
    .hero-section .btn-primary { position: relative; z-index: 3; }
    .hero-section .trust-item {
        background: rgba(255,255,255,0.94) !important;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        color: #33384a !important;
        border-radius: 10px;
    }
    .hero-section.t24-hero-night .trust-item {
        background: rgba(13,16,26,0.90) !important;
        color: #e8eaf2 !important;
    }
}

/* ============================================================
   NACHT / WELTRAUM-THEME — der ganze Hero kippt weiss->schwarz.
   Wird per JS aktiviert (.t24-hero-night auf .hero-section), wenn
   der Globus im Noche-Modus ist. Ohne diese Klasse: keinerlei Effekt.
   ============================================================ */
.hero-section { transition: background-color .8s ease, background .8s ease; }
.hero-section.t24-hero-night {
    background:
        radial-gradient(2px 2px at 16% 28%, rgba(255,255,255,.40), transparent),
        radial-gradient(1.5px 1.5px at 27% 60%, rgba(255,255,255,.26), transparent),
        radial-gradient(1.5px 1.5px at 11% 76%, rgba(255,255,255,.22), transparent),
        radial-gradient(2px 2px at 38% 20%, rgba(255,255,255,.20), transparent),
        radial-gradient(1.5px 1.5px at 44% 48%, rgba(255,255,255,.16), transparent),
        radial-gradient(900px 600px at 22% 52%, rgba(35,52,98,.45) 0%, transparent 70%),
        radial-gradient(1100px 760px at 72% 32%, #0c1733 0%, #060a18 58%, #02030a 100%) !important;
}
.hero-section.t24-hero-night .hero-title { color: #f2f5ff !important; }
.hero-section.t24-hero-night .hero-subtitle,
.hero-section.t24-hero-night .stat-label,
.hero-section.t24-hero-night .trust-item,
.hero-section.t24-hero-night .hero-stats { color: #c3c9de !important; }
/* Orange-Highlight im Titel bleibt orange */
.hero-section.t24-hero-night .hero-title .highlight { color: #FA9C0F !important; }
/* Scrim wird dunkel, damit die Nachtkugel nahtlos in den Weltraum laeuft */
@media (min-width: 992px) {
    .hero-section.t24-hero-night .hero-globe-bg::after {
        background: linear-gradient(90deg, rgba(4,6,14,0.98) 0%, rgba(4,6,14,0.88) 14%, rgba(4,6,14,0.5) 30%, rgba(4,6,14,0.0) 52%) !important;
    }
}
@media (max-width: 991px) {
    /* passend zur eigenen Globus-Buehne unten (siehe @max-991 weiter oben) */
    .hero-section.t24-hero-night .hero-globe-bg::after {
        background: linear-gradient(180deg, rgba(12,23,51,1) 0%, rgba(11,20,44,0.88) 10%, rgba(8,14,32,0.45) 26%, rgba(6,10,24,0.12) 42%, rgba(4,6,14,0) 58%) !important;
    }
}


/* =====================================================================
   HERO v4 (Stage, 02.10.2026). Bewusst EIN Block am Ende der Datei, damit er die
   frueheren, teils widerspruechlichen Hero-Regeln (Zeilen ~100-300, 900-960, 1881,
   2514-2660) in der Kaskade schlaegt. Abstaende nach Fibonacci: 8/13/21/34/55/89.
   Behebt: Globus ueberdeckte Vertrauenszeilen (hartes padding-bottom:60px !important
   schlug die 300px der Globus-Buehne), harte Kante bei 40% (Scrim-Farbe != Hero-Hintergrund),
   abgeschnittene/mehrzeilige Kapseln, zu enges Suchfeld, Kontrast und Fokus.
   ===================================================================== */
#t24-redesign-homepage .hero-section {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 89px 0 55px !important;
}
#t24-redesign-homepage .hero-section > .container {
    position: relative;
    z-index: 1;
    padding-left: clamp(21px, 5vw, 89px) !important;
    padding-right: 21px !important;
}
/* Globus: kein Scrim mehr, sondern Maske. Die Maske blendet die Karte in den
   Hero-Hintergrund (hell ODER dunkel) aus, es gibt keine Farbkante mehr. */
#t24-redesign-homepage .hero-globe-bg::after { display: none !important; }
#t24-redesign-homepage .hero-globe-bg { position: absolute; z-index: 0; }

/* Titel, Untertitel */
#t24-redesign-homepage .hero-section .hero-title { font-size: 48px !important; line-height: 1.15; margin: 0 0 21px; font-weight: 700 !important; }
#t24-redesign-homepage .hero-section .hero-title .highlight {
    background: linear-gradient(135deg, #b86f00 0%, #c97a0a 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#t24-redesign-homepage .hero-section.t24-hero-night .hero-title .highlight {
    background: none; -webkit-text-fill-color: #FA9C0F; color: #FA9C0F !important;
}
#t24-redesign-homepage .hero-section .hero-subtitle { font-size: 18px !important; color: #475569; opacity: 1; margin: 0 0 34px; max-width: 600px; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-subtitle { color: #c3c9de !important; }

/* Untertitel-Wechsler: alle Folien liegen in EINER Gitterzelle, die Hoehe ist die der
   laengsten Folie. Vorher: min-height 2.6em, ein dreizeiliger Text lief in die Tabs. */
#t24-redesign-homepage .hero-subtitle-rotator { display: grid; min-height: 0; }
#t24-redesign-homepage .hero-rot-slide { grid-area: 1 / 1; position: static; left: auto; right: auto; top: auto; }
#t24-redesign-homepage .hero-rot-slide strong { color: #9a5800; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-rot-slide strong { color: #FA9C0F; }

/* Haupt-Tabs */
#t24-redesign-homepage .hero-section .hero-tabs { margin: 0 0 21px; background: rgba(15, 23, 42, .06); }
#t24-redesign-homepage .hero-section .hero-tab { color: #475569; min-height: 44px; }
#t24-redesign-homepage .hero-section .hero-tab .tab-icon { color: #64748B; }
#t24-redesign-homepage .hero-section .hero-tab.active,
#t24-redesign-homepage .hero-section .hero-tab.active .tab-icon { color: #9a5800; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-tabs { background: rgba(255, 255, 255, .1); }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-tab:not(.active),
#t24-redesign-homepage .hero-section.t24-hero-night .hero-tab:not(.active) .tab-icon { color: #d7dcec; }

/* Suchformular */
#t24-redesign-homepage .hero-section .search-type-tabs { margin-bottom: 13px; flex-wrap: wrap; }
#t24-redesign-homepage .hero-section .search-type-tab { min-height: 44px; color: #475569; }
#t24-redesign-homepage .hero-section .search-type-tab.active { color: #1a1204; }
#t24-redesign-homepage .hero-section .search-input-group { position: relative; flex-wrap: nowrap; gap: 8px; padding: 8px; }
#t24-redesign-homepage .hero-section .search-icon { color: #475569; opacity: 1; flex: none; margin-left: 13px; width: 21px; height: 21px; }
#t24-redesign-homepage .hero-section .search-input { min-width: 0; min-height: 55px; padding: 13px 13px; }
#t24-redesign-homepage .hero-section .search-input::placeholder { color: #64748B; opacity: 1; }
#t24-redesign-homepage .hero-section .search-button { color: #1a1204 !important; min-height: 55px; padding: 13px 34px; }

/* Vertrauenszeilen: Liste statt Kapseln. Kein Abschneiden, kein Ueberlappen. */
#t24-redesign-homepage .hero-section .trust-line {
    display: inline-flex; flex-direction: column !important; align-items: flex-start; gap: 13px !important;
    margin: 34px 0 0; font-size: 15px; position: relative; z-index: 1;
}
#t24-redesign-homepage .hero-section .trust-item {
    display: flex; align-items: flex-start; gap: 13px; padding: 0 !important; margin: 0;
    background: none !important; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    color: #334155 !important; text-align: left; white-space: normal; line-height: 1.4;
}
#t24-redesign-homepage .hero-section .trust-item:hover { background: none !important; transform: none; }
#t24-redesign-homepage .hero-section .trust-item .icon { flex: none; width: 21px; height: 21px; color: #047857; margin-top: 0; }
#t24-redesign-homepage .hero-section .separator { display: none !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .trust-item { color: #d7dcec !important; background: none !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .trust-item .icon { color: #34d399; }

/* Registrieren-Knopf */
#t24-redesign-homepage .hero-section .hero-register-cta { margin-top: 21px !important; position: relative; z-index: 1; }
#t24-redesign-homepage .hero-section .hero-register-cta .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; min-height: 55px; padding: 13px 34px;
    color: #1a1204 !important; position: relative; z-index: 1;
}
/* "Sé el primero": Inline-Farben waren fuer dunklen Grund gebaut, auf Weiss unlesbar */
#t24-redesign-homepage #t24-first-mover { background: #fff7e8 !important; border-color: #b86f00 !important; }
#t24-redesign-homepage #t24-first-mover p { color: #1f2937 !important; }
#t24-redesign-homepage .hero-section.t24-hero-night #t24-first-mover { background: rgba(255, 255, 255, .08) !important; }
#t24-redesign-homepage .hero-section.t24-hero-night #t24-first-mover p { color: #fff !important; }
#t24-redesign-homepage #t24-first-mover .btn-primary { color: #1a1204 !important; }

/* Sichtbarer Tastaturfokus: zweifarbig (dunkler Innenring + Orange), auf Hell und Dunkel lesbar */
#t24-redesign-homepage .hero-section :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #FA9C0F !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #0d101a !important;
}
#t24-redesign-homepage .hero-section .search-input:focus-visible { outline-offset: -3px !important; box-shadow: none !important; }

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
    #t24-redesign-homepage .hero-section { text-align: left; }
    #t24-redesign-homepage .hero-section .hero-content { max-width: 640px !important; margin: 0 !important; text-align: left; }
    #t24-redesign-homepage .hero-section .hero-subtitle { margin-left: 0; margin-right: 0; }
    #t24-redesign-homepage .hero-section .hero-tabs { justify-content: flex-start; }
    #t24-redesign-homepage .hero-section .tab-content { margin: 0; max-width: 640px; }
    #t24-redesign-homepage .hero-globe-bg {
        left: 40%; right: 0; top: 0; bottom: 0; height: auto;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 8%, #000 36%);
        mask-image: linear-gradient(90deg, transparent 0, transparent 8%, #000 36%);
    }
}

/* ---------- Handy und Tablet: Inhalt oben, Globus als eigene Flaeche darunter ---------- */
@media (max-width: 991px) {
    #t24-redesign-homepage .hero-section { text-align: center; padding: 55px 0 0 !important; }
    #t24-redesign-homepage .hero-section > .container { padding-left: 21px !important; padding-right: 21px !important; max-width: 640px; margin: 0 auto; }
    #t24-redesign-homepage .hero-section .hero-content { margin: 0 auto; text-align: center; }
    #t24-redesign-homepage .hero-section .hero-title { font-size: 34px !important; }
    #t24-redesign-homepage .hero-section .hero-subtitle { font-size: 16px !important; margin: 0 auto 21px; }
    #t24-redesign-homepage .hero-section .hero-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 4px; }
    #t24-redesign-homepage .hero-section .hero-tab { padding: 8px 8px !important; font-size: 13px !important; min-height: 55px; white-space: normal; text-align: center; line-height: 1.2; flex: none; }
    #t24-redesign-homepage .hero-section .hero-tab .tab-icon { display: none !important; }
    #t24-redesign-homepage .hero-section .search-type-tabs { justify-content: center; }
    #t24-redesign-homepage .hero-section .search-type-tab { padding: 8px 21px; }
    #t24-redesign-homepage .hero-section .search-input-group { flex-direction: column; align-items: stretch; padding: 13px; gap: 13px; }
    #t24-redesign-homepage .hero-section .search-icon { position: absolute; left: 34px; top: 29px; margin: 0; pointer-events: none; z-index: 1; }
    #t24-redesign-homepage .hero-section .search-input { width: 100%; padding-left: 55px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
    #t24-redesign-homepage .hero-section .search-button { width: 100% !important; }
    #t24-redesign-homepage .hero-section .trust-line { margin-top: 34px; text-align: left; }
    #t24-redesign-homepage .hero-section .hero-register-cta { margin-top: 21px !important; }
    #t24-redesign-homepage .hero-globe-bg {
        position: relative; left: auto; right: auto; top: auto; bottom: auto; inset: auto;
        height: 377px; width: 100%; margin-top: 34px;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 21%);
        mask-image: linear-gradient(180deg, transparent 0, #000 21%);
    }
}
@media (max-width: 575px) {
    #t24-redesign-homepage .hero-section .hero-title { font-size: 28px !important; }
}

/* Kontrast AA (axe 02.10.): Orange #dd8e18 mit Weiss hat nur 2,6:1 */
#t24-redesign-homepage .hero-section .btn-view-all { color: #9a5800; border-color: #9a5800; }
#t24-redesign-homepage .hero-section .btn-view-all:hover { background: #9a5800; color: #fff; }
#t24-redesign-homepage .hero-section.t24-hero-night .btn-view-all { color: #FA9C0F; border-color: #FA9C0F; }

/* =====================================================================
   HERO v5: Weltraum tiefschwarz NUR in der Nacht (Esteban, 03.10.; am Tag bleibt der helle Hintergrund, Korrektur 04.10.). Texte, Knoepfe, Tabs wie im bisherigen Nachtmodus, damit sie auf
   Schwarz lesbar sind (Kontraste >= 4,5:1, mit axe geprueft). Sterne liegen auf einer Leinwand hinter Kugel und Inhalt.
   ===================================================================== */
#t24-redesign-homepage .hero-section.t24-hero-night { background: #000 !important; }
.hero-section:not(.t24-hero-night) .t24-sky { display: none; }
.t24-sky { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-title { color: #f2f5ff !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-title .highlight { background: none; -webkit-text-fill-color: #FA9C0F; color: #FA9C0F !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-subtitle { color: #c3c9de !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-rot-slide strong { color: #FA9C0F; }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-tabs { background: rgba(255, 255, 255, .1); }
#t24-redesign-homepage .hero-section.t24-hero-night .hero-tab:not(.active),
#t24-redesign-homepage .hero-section.t24-hero-night .hero-tab:not(.active) .tab-icon { color: #d7dcec; }
#t24-redesign-homepage .hero-section.t24-hero-night .trust-item { color: #d7dcec !important; background: none !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .trust-item .icon { color: #34d399; }
#t24-redesign-homepage .hero-section.t24-hero-night #t24-first-mover { background: rgba(255, 255, 255, .08) !important; }
#t24-redesign-homepage .hero-section.t24-hero-night #t24-first-mover p { color: #fff !important; }
#t24-redesign-homepage .hero-section.t24-hero-night .btn-view-all { color: #FA9C0F; border-color: #FA9C0F; }

.hero-section:not(.t24-hero-night) .t24-sun { mix-blend-mode: normal; filter: drop-shadow(0 0 3px rgba(224, 128, 0, .85)) drop-shadow(0 0 13px rgba(255, 150, 20, .6)); }

/* HERO v6: Untertitel-Wechsel ohne Ueberlappung. Vorher blendeten die alte und die neue Folie gleichzeitig (0,5 s) und
   verschoben sich gegeneinander, die Texte lagen uebereinander. Jetzt: alte Folie 0,25 s aus, neue Folie danach 0,25 s ein. */
#t24-redesign-homepage .hero-rot-slide { transition: opacity .25s ease, transform .25s ease; transition-delay: 0s; }
#t24-redesign-homepage .hero-rot-slide.is-active { transition-delay: .27s; }
#t24-redesign-homepage .hero-rot-slide.is-leaving { transition-delay: 0s; }
