/* =======================
   Hero Banner Slideshow
   ======================= */

:root {
    --hero-background-shadow: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] {
    --hero-background-shadow: rgba(0, 0, 0, 0.7);
}

.hero-slideshow {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    background: var(--hero-background-shadow);
}

/* Sombreado en los bordes */
.hero-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 0 100px var(--hero-background-shadow);
}

.hero-slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slideshow__slide.active {
    opacity: 1;
    z-index: 2;
}

/* Capa de fondo */
.hero-slideshow__bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    opacity: 0.65;
    transform: scale(1.1);
}

/* Capa frontal */
.hero-slideshow__fg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 30px var(--hero-background-shadow));
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
}

.hero-slideshow__label {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    letter-spacing: 0.03em;
}

.hero-slideshow__title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
    padding: 28px 48px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 4px;
    pointer-events: none;
    width: max-content;
    max-width: 90%;
}

.hero-slideshow__title-heading {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 200;
    letter-spacing: 0.08em;
    line-height: 1.2;
    font-family: var(--ds-laseme-title-font-family, inherit);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-slideshow__title-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    .hero-slideshow {
        height: 260px;
    }
    .hero-slideshow__label {
        font-size: 1rem;
        bottom: 16px;
    }
    .hero-slideshow__title-overlay {
        padding: 18px 24px;
    }
    .hero-slideshow__title-heading {
        font-size: 1.2rem;
    }
    .hero-slideshow__title-sub {
        font-size: 0.78rem;
    }
}


/* About Section */

.section-about {
    padding: 80px 0;
}

.about-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ds-laseme-primary-color);
    margin-bottom: 18px;
}

.about-section__eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--ds-laseme-primary-color);
    flex-shrink: 0;
}

.about-section__title {
    font-size: 2.1rem;
    line-height: 1.18;
    margin-bottom: 32px;
}

.about-section__cta {
    display: inline-block;
    width: fit-content;
    margin-top: 8px;
}

.about-section__body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--ds-laseme-highlight-text-color);
    border-left: 3px solid var(--ds-laseme-primary-color);
    padding-left: 28px;
}

.about-section__body p {
    margin-bottom: 1.1rem;
}

.about-section__body p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .section-about {
        padding: 48px 0;
    }
    .about-section__title {
        font-size: 1.6rem;
    }
    .about-section__body {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--ds-laseme-primary-color);
        padding-top: 20px;
    }
}


/* Data Info Banner */
.bg-light-gray-section {
    background-color: var(--ds-laseme-primary-color-soft);
}

.data-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
    text-align: center;
}

.data-info-item {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.data-info-item:hover {
    transform: translateY(-5px);
}

.data-info-item i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.data-info-item:hover i {
    transform: scale(1.2);
    color: var(--ds-laseme-primary-color-hover);
}

.data-info-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ds-laseme-primary-color);
    font-family: var(--ds-laseme-title-font-family);
    line-height: 1;
    margin-bottom: 10px;
}

.data-info-item .text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ds-laseme-highlight-text-color);
    font-family: var(--ds-laseme-main-font-family);
    letter-spacing: 1px;
}

@media screen and (max-width: 991px) {
    .data-info {
        gap: 16px;
    }

    .data-info-item {
        min-width: 120px;
    }

    .data-info-item .number {
        font-size: 2rem;
    }

    .data-info-item .text {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .data-info {
        gap: 8px;
    }

    .data-info-item {
        min-width: 100px;
    }

    .data-info-item .number {
        font-size: 1.5rem;
    }

    .data-info-item .text {
        font-size: 0.8rem;
    }
}


/* Cities Grid Styles */

.city-card-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.city-card {
    background: var(--ds-laseme-card-background-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--ds-laseme-card-border-color);
}

.city-card__image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--ds-laseme-card-background-color);
}

.city-card__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, opacity 1s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.city-card__image.active {
    opacity: 1;
}

.city-card:hover .city-card__image {
    transform: scale(1.1);
}

.city-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-laseme-text-on-dark-color-lighter);
}

.city-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--ds-laseme-primary-color), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.city-card:hover .city-card__overlay {
    opacity: 1;
}

.city-card__content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ds-laseme-pure-color);
    z-index: 2;
}

.city-card__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ds-laseme-highlight-text-color);
    font-family: var(--ds-laseme-title-font-family);
    transition: color 0.3s ease;
}

.city-card:hover .city-card__title {
    color: var(--ds-laseme-primary-color);
}

.city-card__icon {
    width: 32px;
    height: 32px;
    background: #f7f9fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-laseme-primary-color);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.city-card:hover .city-card__icon {
    background: var(--ds-laseme-primary-color);
    color: #fff;
    transform: translateX(3px);
}

/* Category Image Placeholder for Sectors */
.category-image-placeholder {
    width: 400px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dadada 0%, #5f5f5f 100%);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}


.views-row-inner:hover .category-image-placeholder {
    transition: all 0.3s ease;
}

.category-image-placeholder i {
    transition: transform 0.3s ease;
}

.views-row-inner:hover .category-image-placeholder i {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .category-image-placeholder {
        width: 100%;
        height: 200px;
    }
}

/* Sector Image Wrapper for Overlay Effect */
.sector-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.sector-image-wrapper img {
    border-radius: 12px;
    transition: transform 0.6s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.views-row-inner:hover .city-card__overlay {
    opacity: 1;
}

.views-row-inner:hover .sector-image-wrapper img {
    transform: scale(1.1);
}

/* =============================================
   Sector Empresa Count Badge
   ============================================= */

.sector-empresa-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 52px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    pointer-events: none;
    line-height: 1;
}

.views-row-inner:hover .sector-empresa-badge,
.city-card:hover .sector-empresa-badge {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.sector-empresa-badge__count {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ds-laseme-primary-color, #e63946);
    font-family: var(--ds-laseme-title-font-family, sans-serif);
    line-height: 1;
}


@media screen and (max-width: 768px) {
    .sector-empresa-badge {
        top: 8px;
        right: 8px;
        padding: 5px 8px;
        min-width: 44px;
    }

    .sector-empresa-badge__count {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 576px) {
    .city-card__image-wrapper {
        height: 140px;
    }

    .city-card__content {
        padding: 12px;
    }

    .city-card__title {
        font-size: 0.95rem;
    }

    .category-image-placeholder {
        height: 140px !important;
    }

    .sector-empresa-badge {
        padding: 4px 6px;
        min-width: 36px;
    }

    .sector-empresa-badge__count {
        font-size: 0.9rem;
    }
}