/**
 * public/css/home.css
 */

/**
* SECTION: Blog Image Styles
*/
.blog-image-wrapper {
    height: 100%;
    min-height: 250px;
}

.blog-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem 0 0 0.375rem;
    transition: transform 0.3s ease;
}

/* Insignia de fecha sobre la imagen del blog */
.date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--bs-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-badge .day {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.875rem;
    text-transform: uppercase;
}

/**
* SECTION: Responsive Adjustments
*/
@media (max-width: 767.98px) {
    .blog-image-wrapper {
        min-height: 200px;
        margin: -1px -1px 0 -1px;
    }

    .blog-image {
        border-radius: 0.375rem 0.375rem 0 0;
    }

    .blog-image-container:hover .blog-image {
        transform: scale(1.05);
    }
}

@media (min-width: 768px) {
    .blog-image-wrapper {
        min-height: 300px;
    }

    .blog-image-container:hover .blog-image {
        transform: scale(1.05);
    }
}

.card {
    overflow: hidden;
}

/**
* SECTION: Hero Header
*/
.hero-header {
    position: relative;
    min-height: 92vh;
    padding: 4rem 0 3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
        linear-gradient(135deg, #0b1b3c 0%, #1a2d5c 35%, #0d1a2d 80%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(12, 26, 74, 0.65), rgba(29, 78, 216, 0.35));
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
    min-height: calc(92vh - 40px);
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero-meta h4 {
    font-size: 2rem;
}

.hp-hero-panel {
    border-radius: 32px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(28px);
}

.hp-hero-panel__contact {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1.5rem;
}

.hp-hero-panel__stats {
    margin-top: 1rem;
}

.hp-hero-stat {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hp-hero-panel strong {
    letter-spacing: .3px;
}

.hero-dynamic-title {
    color: #ffffff;
    line-height: 1.1;
}

.hero-dynamic-text {
    display: inline-block;
    transition: opacity .35s ease, transform .35s ease;
}

.hero-dynamic-text.fade-out {
    opacity: 0;
    transform: translateY(-12px);
}

/**
* SECTION: Service Cards
*/
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-title {
    color: #0056e0;
}

.hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.5) !important;
    z-index: 5;
}

/**
* SECTION: Testimonials
*/
.quote-icon {
    font-size: 1.75rem;
    opacity: 0.2;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonial-name {
    font-size: 0.9rem;
    color: #2c3e50;
}

.testimonial-company {
    font-size: 0.8rem;
}

.testimonial-date {
    font-size: 0.75rem;
}

/**
* SECTION: Call to Action (CTA)
*/
.cta-title {
    font-size: 2rem;
}

/**
* SECTION: Header Carousel
*/
.header .carousel .carousel-caption {
    max-width: 640px;
}

.header .carousel .carousel-inner .carousel-title {
    line-height: 1.05;
}

/**
* SECTION: Blog Modal
*/
.blog-modal .modal-content {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.blog-modal .modal-header {
    border: 0;
    padding: 1.5rem 1.75rem 0;
}

.blog-modal .modal-body {
    padding: 0 1.75rem 1.75rem;
}

.blog-modal .modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.blog-modal .modal-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 220px;
}

.blog-modal .modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal .modal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.blog-modal .modal-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-modal .modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.blog-modal .modal-content-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

/**
* SECTION: Responsive Adjustments for Blog Modal
*/
@media (max-width: 767.98px) {
    .blog-modal .modal-content {
        border-radius: 0;
    }

    .blog-modal .modal-body {
        padding: 0 1.25rem 1.5rem;
    }

    .blog-modal .modal-header {
        padding: 1.25rem 1.25rem 0;
    }

    .blog-modal .modal-hero {
        min-height: 200px;
    }
}

/**
* SECTION: Responsive Adjustments for Header and Infos
*/
@media (max-width: 991.98px) {
    .hero-header {
        padding: 7rem 0 2rem;
    }
    body.home-open-barrier {
        padding-top: 0;
    }

    .hero-header .container {
        min-height: auto;
        justify-content: center;
    }

    .hero-content {
        gap: 2rem;
        margin-top: 2rem;
    }

    .hero-meta {
        gap: 1.5rem;
    }

    .hp-hero-panel {
        padding: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-header {
        padding: 20rem 0 2rem;
    }

    #hero-title {
        font-size: clamp(2.4rem, 9vw, 2.9rem);
    }

    .hero-content {
        margin-top: 20rem;
        padding-top: 5rem;
    }

    .hp-hero-panel__stats .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hp-hero-panel {
        padding: 1.2rem;
    }
}