/* ============================================================
   TRANSPORTES FRANCISCO LANDING CORE — Services Widgets
   ============================================================ */

/* ------------------------------------------------------------
   Widget 1: Services Map (tflc-services-map)
   ------------------------------------------------------------ */
.tflc-services-map {
    position: relative;
    padding: 80px 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
}

/* Background Overlay removido por petición */
.tflc-services-map::before {
    display: none;
}

.tflc-services-map__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tflc-services-map__main-title {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--project-primary, #223D65);
    font-family: var(--project-font, 'Montserrat', sans-serif);
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    line-height: 1.1;
}

.tflc-services-map__content {
    font-size: 1.05rem;
    line-height: 1.8;
    font-family: var(--project-font, 'Montserrat', sans-serif);
    color: #111111;
}

.tflc-services-map__content p {
    margin-bottom: 20px;
    font-weight: 400;
}

.tflc-services-map__content strong,
.tflc-services-map__content b {
    color: var(--project-secondary, #223D65);
    font-weight: 700;
}

.tflc-services-map__logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.tflc-services-map__image-wrap {
    text-align: right;
}

.tflc-services-map__image-wrap img {
    max-width: 100%;
    height: auto;
    transform: scale(1.15);
    transform-origin: right center;
}

/* ------------------------------------------------------------
   Widget 2: Services Details (tflc-services-details)
   ------------------------------------------------------------ */
.tflc-services-details {
    max-width: 800px;
    margin: 40px auto;
    font-family: var(--project-font, 'Montserrat', sans-serif);
}

/* List */
.tflc-services-details__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

/* Timeline vertical line */
.tflc-services-details__list::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 19px;
    width: 2px;
    background-color: #eaeaea;
    z-index: 1;
}

.tflc-services-details__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.tflc-services-details__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tflc-services-details__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* First item yellow by default in the image */
.tflc-services-details__item:first-child .tflc-services-details__icon {
    background-color: var(--project-secondary, #FFC600);
    color: #ffffff;
}

.tflc-services-details__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px; /* Aligns with icon */
}

.tflc-services-details__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--project-primary, #223D65);
    margin: 0 0 5px 0;
}

.tflc-services-details__subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.tflc-services-details__subtitle p {
    margin: 0 0 5px 0;
}

.tflc-services-details__subtitle p:last-child {
    margin-bottom: 0;
}

.tflc-services-details__subtitle ul {
    margin: 5px 0 0 0;
    padding-left: 0;
    list-style-type: none;
}

.tflc-services-details__subtitle ul li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.tflc-services-details__subtitle ul li::before {
    content: '– ';
    position: absolute;
    left: 0;
    color: #666;
}

.tflc-services-details__subtitle ul li.is-hidden {
    display: none;
}

.tflc-show-more-btn {
    display: inline-block;
    margin-top: 10px;
    color: var(--project-primary, #223D65);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tflc-show-more-btn:hover {
    color: var(--project-secondary, #FFC600);
}

/* Contact Box */
.tflc-services-details__box {
    border: 1px solid rgba(34, 61, 101, 0.2);
    border-radius: 4px;
    padding: 30px;
    display: flex;
    gap: 25px;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.tflc-services-details__box-icon {
    width: 60px;
    height: 60px;
    background-color: var(--project-primary, #223D65);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--project-secondary, #FFC600);
    flex-shrink: 0;
}

.tflc-services-details__box-icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.tflc-services-details__box-content {
    flex-grow: 1;
}

.tflc-services-details__box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--project-primary, #223D65);
    margin: 0 0 15px 0;
}

.tflc-services-details__box-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    font-weight: 500;
}

.tflc-services-details__box-desc p {
    margin-bottom: 10px;
}
.tflc-services-details__box-desc p:last-child {
    margin-bottom: 0;
}

.tflc-services-details__button {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: inline-block;
    background-color: var(--project-secondary, #FFC600);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tflc-services-details__button:hover {
    background-color: #e5b200;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .tflc-services-map__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tflc-services-map__image-wrap {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .tflc-services-details__box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 70px; /* Room for absolute button */
    }
    .tflc-services-details__button {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    .tflc-services-details__button:hover {
        transform: translate(50%, -2px);
    }
}
