.hero {
    background: linear-gradient(to right, #ffffff 0%, #f8f9fa 35%, var(--law-navy) 65%, var(--bs-primary) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero content text colors for light background */
.hero-content .lead {
    color: var(--law-navy) !important;
}

/* Hero Logo Styling - full brand logo */
.hero-logo {
    max-width: 220px;
    height: auto;
    display: block;
}

/* Hero row alignment - start from top for better visual balance */
.hero .row.align-items-center {
    align-items: flex-start !important;
}

/* Right column with dark background for conversation demo */
.hero-demo {
    padding: 2rem;
}

/* Hero tagline - serif font for philosophical quote */
.hero-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: var(--law-navy);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

/* Hero sub-tagline - smaller, muted text */
.hero-sub-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--bs-gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* "Que es Trifolia" cards */
.what-is-card {
    border: none;
    border-left: 4px solid var(--clover-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-is-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.what-is-card .what-is-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(60, 120, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clover-purple);
}

/* Step number circle for "Como Funciona" */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clover-purple);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step card */
.step-card {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

/* Diferenciacion cards */
.diff-card {
    border: none;
    border-top: 3px solid var(--clover-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}

/* Ethics items */
.ethics-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ethics-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Section closing text */
.section-closing-text {
    text-align: center;
    font-style: italic;
    color: var(--bs-gray-600);
    font-size: 1.05rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Closing CTA section */
.closing-cta {
    background: linear-gradient(135deg, var(--law-navy) 0%, var(--bs-primary) 100%);
}

.closing-cta .form-control-lg {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.closing-cta .form-control-lg:focus {
    border-color: white;
    background: white;
}

/* Example queries */
.example-queries {
    margin-left: auto;
    margin-right: auto;
}

/* Custom accordion styling */
.accordion-button {
    min-height: 48px; /* Minimum touch target size for accessibility */
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(60, 120, 253, 0.1);
    color: var(--bs-primary);
}

.accordion-button:focus {
    border-color: rgba(60, 120, 253, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(60, 120, 253, 0.25);
}

/* Touch target improvements for footer links */
footer a {
    display: inline-block;
    min-height: 44px; /* Accessibility - minimum touch target */
    line-height: 44px;
    padding: 0 8px; /* Add spacing between links */
}

/* Ensure buttons meet minimum touch target size */
.btn {
    min-height: 44px;
    min-width: 44px;
}

.btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
}

/* Input group buttons need proper sizing */
.input-group .btn {
    min-height: 48px;
}

/* Showcase Carousel Styles */
#showcaseCarousel .carousel-inner {
    min-height: 400px;
    padding: 1rem 0;
}

.showcase-card {
    background: white;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.showcase-card .card-body {
    display: flex;
    flex-direction: column;
}

/* Featured badge for carousel */
.featured-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
}

.featured-badge i {
    font-size: 0.7rem;
}

/* Category badges - matching showcase system */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-badge.laboral { background: #e3f2fd; color: #1976d2; }
.category-badge.civil { background: #f3e5f5; color: #7b1fa2; }
.category-badge.penal { background: #ffebee; color: #c62828; }
.category-badge.comercial { background: #e8f5e9; color: #388e3c; }
.category-badge.familia { background: #fff3e0; color: #f57c00; }
.category-badge.administrativo { background: #fce4ec; color: #c2185b; }
.category-badge.constitucional { background: #e0f2f1; color: #00796b; }
.category-badge.otros { background: #f5f5f5; color: #616161; }

/* Showcase title and description */
.showcase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.showcase-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1;
}

/* Carousel controls styling */
#showcaseCarousel .carousel-control-prev,
#showcaseCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#showcaseCarousel .carousel-control-prev:hover,
#showcaseCarousel .carousel-control-next:hover {
    opacity: 1;
}

#showcaseCarousel .carousel-control-prev-icon,
#showcaseCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
}

/* Carousel indicators */
#showcaseCarousel .carousel-indicators {
    margin-bottom: -2rem;
}

#showcaseCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(60, 120, 253, 0.4);
    border: none;
    transition: all 0.3s ease;
}

#showcaseCarousel .carousel-indicators .active {
    background-color: var(--bs-primary);
    transform: scale(1.2);
}

/* Pause animation on hover */
#showcaseCarousel:hover {
    cursor: pointer;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for primary CTA */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(60, 120, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(60, 120, 253, 0);
    }
}

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

/* Smooth fade-in for sections on scroll */
@media (prefers-reduced-motion: no-preference) {
    .what-is-card,
    .diff-card,
    .step-card {
        animation: fadeIn 0.6s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Media queries */
@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        background: var(--paper-white);
    }
    .hero-content {
        padding: 3rem 0;
    }
    .hero-demo {
        background: linear-gradient(135deg, var(--law-navy) 0%, var(--bs-primary) 100%);
        padding: 3rem 1rem;
        border-radius: 0;
    }
}

@media (max-width: 767.98px) {
    /* Hero logo responsive */
    .hero-logo {
        max-width: 160px;
    }

    /* Hero tagline responsive */
    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-sub-tagline {
        font-size: 0.8rem;
    }

    /* Better spacing for mobile */
    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-header {
        padding: 0 1rem;
    }

    /* Responsive typography */
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    /* Better card spacing on mobile */
    .hero .card {
        margin: 0 -0.5rem;
    }

    /* Form adjustments */
    .form-control-lg {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.625rem 1rem;
        white-space: nowrap;
    }

    /* Shorter placeholder text for mobile */
    input[type="email"]::placeholder {
        font-size: 0.875rem;
    }


    /* Hero stats in columns */
    .hero-header .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-header .d-flex > div {
        flex: 0 0 33.333%;
        text-align: center;
        padding: 0.5rem;
    }

    /* Step number responsive */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Carousel mobile adjustments */
    #showcaseCarousel .carousel-inner {
        min-height: 450px;
    }

    .showcase-card {
        min-height: 420px;
    }

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

    .showcase-description {
        font-size: 0.9rem;
    }

    #showcaseCarousel .carousel-control-prev,
    #showcaseCarousel .carousel-control-next {
        width: 10%;
    }

    #showcaseCarousel .carousel-indicators {
        margin-bottom: -1rem;
    }
}
