/**
 * ============================================
 * FEATURES BASE STYLES
 * Estilos comunes reutilizables para todas las landing pages de features
 * ============================================
 * 
 * Estructura:
 * 1. Hero Section (con overlay, stats, visual, floating pills)
 * 2. Buttons (primary, outline, CTA variants)
 * 3. Section Headers
 * 4. Capabilities/Information Cards
 * 5. CTA Section (con trust badges)
 * 6. Animations
 * 7. Responsive
 * 
 * @package CheckToBuild
 * @version 1.0.0
 */

/* ============================================
   1. HERO SECTION
   ============================================ */

/* Landing Hero Section - Compatible con ambas nomenclaturas */
.feature-hero,
.landing-hero-section {
    overflow: hidden;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 0px 0px 2rem 2rem;
    padding: 3rem 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Video Background for Hero */
.hero-video-bg,
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Overlay */
.feature-hero-overlay,
.landing-hero-section > div[style*="rgba(0, 0, 0, 0.75)"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

/* Container */
.feature-hero .container,
.landing-hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Content Grid */
.feature-hero-content,
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 5rem;
}

/* Hero Category Badge */
.hero-category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(8, 145, 178, 0.15);
    border: 1px solid rgba(8, 145, 178, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-category-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0891b2;
    letter-spacing: 1px;
}

/* Hero Text */
.feature-hero h1,
.hero-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.feature-hero-subtitle,
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero Actions */
.feature-hero-actions,
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Stats */
.feature-hero-stats,
.hero-text > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-stat {
    text-align: center;
}

.feature-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    display: block;
}

.feature-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    display: block;
}

/* Hero Visual */
.feature-hero-visual,
.hero-visual {
    position: relative;
}

.hero-video-wrapper,
.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-video-wrapper img,
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-hero-visual img,
.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Floating Pills - Siempre 3 píldoras en posiciones fijas */
.floating-pill {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

/* Posiciones específicas para cada píldora */
.floating-pill:nth-of-type(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.floating-pill:nth-of-type(2) {
    top: 50%;
    right: -15%;
    animation-delay: 1s;
}

.floating-pill:nth-of-type(3) {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
}

.floating-pill-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-pill-icon {
    font-size: 1.25rem;
}

/* Pill icon colors */
.floating-pill-icon.icon-success {
    color: #10b981;
}

.floating-pill-icon.icon-warning {
    color: #f59e0b;
}

.floating-pill-icon.icon-info {
    color: #0891b2;
}

.floating-pill-icon.icon-error {
    color: #ef4444;
}

.floating-pill-text {
    display: flex;
    flex-direction: column;
}

.floating-pill-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
}

.floating-pill-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

/* ============================================
   2. BUTTONS
   ============================================ */

/* Primary Button - Hero */
.btn-feature-primary {
    background: #0066cc !important;
    color: #fff !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
        justify-content: center;
    text-decoration: none;
}

.btn-feature-primary i {
    margin-right: 0.5rem;
}

.btn-feature-primary:hover {
    transform: scale(1.05);
}

/* Outline Button - Hero Secondary */
.btn-feature-outline {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-feature-outline:hover,
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    transform: translateY(-2px);
    color: #fff;
}

/* CTA Button */
.btn-feature-cta {
    background: #0066cc;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border: 2px solid #0066cc;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--btn-transition);
}

.btn-feature-cta i {
    margin-right: 0.5rem;
}

.btn-feature-cta:hover {
    transform: scale(1.05);
}

/* CTA Outline Button */
.btn-feature-cta-outline {
    background: transparent;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--btn-transition);
}

.btn-feature-cta-outline i {
    margin-left: 0.5rem;
}

.btn-feature-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    color: #fff;
}

/* ============================================
   3. SECTION HEADERS
   ============================================ */

.feature-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   3.5 DEMO SECTION
   ============================================ */

.feature-demo-section {
    padding: 5rem 0;
    background: white;
}

.demo-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    line-height: inherit;
    font-weight: 400;
    color: #fff;
    text-transform: none;
    font-size: 0.75rem;
}

/* ============================================
   4. CAPABILITIES / INFORMATION SECTION
   ============================================ */

.feature-capabilities {
    padding: 5rem 0;
    background: #f9fafb;
}

.feature-capabilities .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.capability-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0891b2;
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.capability-header i {
    font-size: 1.5rem;
    color: #0891b2;
}

.capability-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.capability-card > p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.capability-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-checklist li {
    color: #374151;
    padding-left: 1.5rem;
    position: relative;
}

.capability-checklist li i {
    position: absolute;
    left: 0;
    color: #0891b2;
}

/* ============================================
   5. CTA SECTION
   ============================================ */

.feature-cta,
.features-cta {
    padding: 4rem;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    border-radius: 38px;
    margin: 0 auto 4rem;
}

.feature-cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.feature-cta .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* CTA Content Wrapper */
.feature-cta .cta-content,
.features-cta .cta-content {
    position: relative;
    z-index: 1;
}

/* CTA Titles */
.feature-cta h2,
.features-cta h2,
.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* CTA Subtitles/Descriptions */
.feature-cta-subtitle,
.cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* CTA Buttons Container */
.feature-cta-buttons,
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* CTA Note */
.cta-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-note i {
    color: rgba(255, 255, 255, 0.9);
}

/* Alternative CTA styles (landing-cta-section) */
.landing-cta-section {
    background: #004aad;
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.landing-cta-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.trust-badge {
    text-align: center;
}

.trust-badge-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.trust-badge-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.feature-faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-faq .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.faq-summary {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: #0066cc;
}

.faq-chevron {
    font-size: 0.9rem;
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #0066cc;
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: #495057;
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .feature-faq {
        padding: 60px 0;
    }
    
    .faq-summary {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .faq-content {
        padding: 0 20px 20px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================
   6. ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   7. RESPONSIVE
   ============================================ */

/* Tablets y menores - Ocultar floating pills */
@media (max-width: 1024px) {
    .floating-pill {
        display: none !important;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Hero */
    .feature-hero,
    .landing-hero-section {
        padding: 2rem 1rem;
        margin-top: 0;
    }
    
    .feature-hero-content,
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 4rem;
    }
    
    .feature-hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-hero-subtitle {
        font-size: 1.125rem;
    }

    
    
    .feature-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Section Headers */
    .feature-section-header h2 {
        font-size: 2rem;
    }
    
    .feature-section-subtitle {
        font-size: 1rem;
    }
    
    /* Capabilities */
    .capability-checklist {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .feature-cta h2 {
        font-size: 2rem;
    }
    
    .feature-cta-subtitle {
        font-size: 1.125rem;
    }
    
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Hero */
    .feature-hero {
        padding: 3rem 0 2rem;
    }
    
    .feature-hero h1 {
        font-size: 2rem;
    }

    .hero-content {

      grid-template-columns: repeat(1, 1fr);
    }
    
    .feature-hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-stat-value {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn-feature-primary,
    .btn-feature-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
                width: 100%;
        text-align: center;
    }
    
    .btn-feature-cta,
    .btn-feature-cta-outline {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Section Headers */
    .feature-section-header h2 {
        font-size: 1.75rem;
    }
    
    /* Capabilities */
    .feature-capabilities,
    .feature-cta {
        padding: 3rem 0;
    }
    
    .capability-card {
        padding: 1.5rem;
    }
    
    .capability-header h3 {
        font-size: 1.25rem;
    }
    
    /* CTA */
    .feature-cta h2 {
        font-size: 1.75rem;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   8. UTILITY CLASSES
   ============================================ */

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.bg-white {
    background: white;
}

.bg-gray {
    background: #f9fafb;
}

/* ============================================
   9. TESTIMONIALS SECTION
   ============================================ */

.feature-testimonials-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    font-size: 3rem;
    color: #0891b2;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.author-project {
    font-size: 0.8125rem;
    color: #0891b2;
    font-weight: 600;
}

.validation-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-item {
    font-size: 0.875rem;
    color: #6b7280;
}

.result-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-weight: 600;
}

.result-item strong.success {
    color: #10b981;
}

.result-item strong.warning {
    color: #f59e0b;
}

.result-item strong.error {
    color: #ef4444;
}

/* ============================================
   10. USE CASES SECTION
   ============================================ */

.feature-use-cases-section {
    padding: 5rem 0;
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: #0891b2;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.15);
    transform: translateY(-5px);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.use-case-icon i {
    color: white;
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.use-case-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.use-case-icon {
    width: 48px;
    height: 48px;
    background: rgb(13, 88, 176);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.25rem;
}

.use-case-benefits {
    list-style: none;
    padding: 0;
}

.use-case-benefits li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.use-case-benefits i {
    color: #28a745;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    font-size: 0.875rem;
    color: #374151;
    padding: 0.5rem 0;
    line-height: 1.5;
}

.benefits-list li:before {
    content: '✓ ';
    color: #10b981;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ============================================
   11. RESPONSIVE - TESTIMONIALS & USE CASES
   ============================================ */

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .testimonial-card,
    .use-case-card {
        padding: 1.5rem;
    }
}

/* ============================================
   12. PLATFORM DEMO SECTION (REUSABLE)
   ============================================ */

/* Platform Demo Wrapper */
.feature-demo-wrapper {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.demo-header {
    background: #004aad;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.demo-badges {
    display: flex;
    gap: 0.5rem;
}

.demo-badges .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Platform Interface */
.platform-interface {
    display: grid;
    grid-template-columns: 200px 1fr;
    
    background: white;
}

/* Sidebar */
.interface-sidebar {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-item i {
    font-size: 0.875rem;
    min-width: 1rem;
    text-align: center;
}

/* Main Viewer */
.interface-viewer {
    position: relative;
    background-color: #e8ecf0;
    padding: 2rem;
}

/* BIM Elements Container */
.bim-elements-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.bim-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bim-element.beam {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
}

.bim-element.column {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
}

.bim-element.slab {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
}

.bim-element.wall {
    border-color: #495057;
    background: rgba(73, 80, 87, 0.1);
}

.bim-element.rebar {
    border-color: #ff6c00;
    background: rgba(255, 108, 0, 0.2);
}

.bim-element.warning {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.15);
    animation: pulse-warning 2s ease-in-out infinite;
}

.bim-element.critical {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
    animation: pulse-critical 1s ease-in-out infinite;
}

.element-label {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.bim-element:hover {
    transform: scale(1.05);
    z-index: 5;
}

.bim-element:hover .element-label {
    opacity: 1;
}

/* Tolerance Indicator */
.tolerance-indicator {
    top:20px;
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

/* Navigation Controls */
.nav-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Analysis Panel */
.analysis-panel {
    background: white;
    border-top: 1px solid #e5e7eb;
}

.analysis-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.analysis-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.analysis-tab:hover {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

.analysis-tab.active {
    background: white;
    color: #0891b2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analysis-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.analysis-content.active {
    display: grid;
}

.analysis-group {
    background: var(--bg-light, #f9fafb);
    padding: 1rem;
    border-radius: 8px;
}

.analysis-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-title i {
    font-size: 1.25rem;
    color: #0891b2;
    min-width: 1.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    font-size: 0.85rem;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}

.metric-value.success {
    color: #10b981;
}

.metric-value.warning {
    color: #f59e0b;
}

.metric-value.error {
    color: #ef4444;
}

.metric-value.steel {
    color: #00a8e8;
}

.metric-value.concrete {
    color: #6c757d;
}

/* Animations */
@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
}

@keyframes pulse-critical {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   13. RESPONSIVE - PLATFORM DEMO
   ============================================ */

@media (max-width: 1024px) {
    .platform-interface {
        grid-template-columns: 180px 1fr;
    }
    
    .interface-sidebar {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .sidebar-section {
        gap: 0.375rem;
    }
    
    .sidebar-item {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }
    
    .demo-badges .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }
}

@media (max-width: 768px) {
    .platform-interface {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .interface-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .sidebar-section {
        margin: 0;
        display: flex;
           flex-direction: row;
        gap: 0.5rem;
        align-content: center;
        align-items: center;
    }
    
    .sidebar-title {
        font-size: 0.6875rem;
        margin-bottom: 0.375rem;
    }
    
    .sidebar-item {
        font-size: 0.75rem;
        padding: 0.375rem;
        gap: 0.375rem;
    }
    
    .sidebar-item i {
        font-size: 0.75rem;
    }
    
    .interface-viewer {
        padding: 1rem;
    }
    
    .bim-elements-container {
        min-height: 300px;
    }
    
    .tolerance-indicator {
        display: none;
    }
    
    .nav-controls {
        padding: 0.5rem;
        gap: 0.375rem;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .demo-header h3 {
        font-size: 1rem;
    }
    
    .demo-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .analysis-panel {
        padding: 1rem;
    }
    
    .analysis-tabs {
        overflow-x: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .analysis-tab {
        white-space: nowrap;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0px 0px 0px;
    }
    
    .analysis-group {
        padding: 1rem;
    }
    
    .analysis-title {
        font-size: 0.9375rem;
    }
    
    .metric-row {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .interface-sidebar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .bim-elements-container {
        min-height: 250px;
    }
    
    .bim-element {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .element-label {
        font-size: 0.6875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .tolerance-indicator {
        position: static;
        margin-bottom: 0.75rem;
    }
    
    .nav-controls {
        position: static;
        justify-content: center;
        margin-top: 0.75rem;
    }
    
    .analysis-tabs {
        padding: 0.5rem;
    }
    
    .analysis-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* CTA Section Mobile */
    .feature-cta,
    .features-cta {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        margin-bottom: 2rem;
                margin-right: 1rem;
        margin-left: 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-note {
        font-size: 0.8125rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */

/* Color Classes for Sidebar Items */
.sidebar-item-steel {
    color: #00a8e8;
}

.sidebar-item-concrete {
    color: #6c757d;
}

.sidebar-item-critical {
    color: #dc3545;
}

.sidebar-item-warning {
    color: #ffc107;
}

/* Icon Margin Utilities */
.icon-mr {
    margin-right: 0.5rem;
}

.icon-ml {
    margin-left: 0.5rem;
}
