@font-face {
    font-family: AeroRegularSWFTE;
    src: url("fonts/Aero/Aero.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: ARIALN;
    src: url("fonts/Aero/ARIALN.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
}
:root {
    --primary-font: "ARIALN", serif;
    --primary-color: #ffd700;
    --secondary-color: #ffc107;
    --black-color: #000;
    --white-color: #fff;
    --highlight-color: yellow;
    --background-overlay: rgba(0, 0, 0, 0.4);
}
.archivo-500,
.archivo-700 {
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
.card-content h2,
.services-text {
    font-family: AeroRegularSWFTE;
    text-transform: uppercase;
}
.archivo-500 {
    font-weight: 500;
}
.archivo-700,
.banner-text,
.services-text {
    font-weight: 700;
}
.container-border,
.container-services {
    background-color: var(--black-color);
    width: 100%;
    height: auto;
    position: relative;
    padding: 25px 0;
}
.card-container,
.container-services {
    padding: 20px 0;
}
.header {
    position: relative;
    width: 100%;
    height: 100%;
    background: url("/front/images/web/topw.webp") center center no-repeat;
    background-size: cover;
    padding-bottom: 32%;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1040;
}
.invalid-feedback,
.overlay.active {
    display: block;
}
.content {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2;
}
.btn-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
.btn-schedule,
.card-content h2 {
    display: inline-block;
    font-weight: 700;
}
.btn-schedule {
    background-color: var(--primary-color);
    color: var(--black-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}
.card,
.services-banner {
    background-color: var(--highlight-color);
}
.btn-schedule:hover {
    background-color: var(--secondary-color);
}
.services-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
}
.services-banner .line-bottom-right,
.services-banner .line-top-right,
.services-banner::after,
.services-banner::before {
    content: "";
    position: absolute;
    height: 12px;
    width: 150px;
    background-color: var(--black-color);
}
.services-banner::before {
    left: 0;
    top: calc(50% - 12px);
}
.services-banner::after {
    left: 0;
    top: calc(50% + 12px);
}
.services-banner .line-top-right {
    right: 0;
    top: calc(50% - 12px);
}
.services-banner .line-bottom-right {
    right: 0;
    top: calc(50% + 12px);
}
.services-text {
    color: var(--black-color);
    font-size: 80px;
    letter-spacing: 2px;
}
.card {
    display: flex;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1100px;
    margin: auto;
    flex-direction: row;
}
.card-content {
    padding: 15px;
    flex: 2;
}
.card-content h2 {
    font-size: 40px;
    margin: 0 0 8px;
    color: var(--white-color);
    background-color: var(--black-color);
    padding: 10px 15px;
    border-radius: 10px;
}
.card-content p {
    font-size: 22px;
    line-height: 1.4;
    color: var(--black-color);
    margin-left: 35px;
}
.card-image {
    margin-top: 30px;
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.card-image img {
    max-width: 100%;
    border-radius: 10px;
}
.border-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: 300px; /* Ancho base */
    aspect-ratio: 2.5/1; /* Mantiene la relación 300/120 */
    background-color: var(--white-color); /* Color placeholder mientras carga */
}
.image-container {
    width: 300px;
    height: 120px;
    position: relative;
    overflow: hidden;
}
.border-imagen.loading {
    filter: blur(10px);
    transition: filter 0.3s ease-in-out;
}

.border-imagen.loaded {
    filter: blur(0);
}
.minor-repairs-container {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    margin-bottom: 35px;
}
.minor-repairs-title {
    display: inline-block;
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 10px 15px;
    border: 2px solid var(--black-color);
    border-radius: 10px;
    margin-bottom: 25px;
}
.minor-repairs-paragrah {
    font-size: 24px;
    background-color: var(--highlight-color);
    padding: 15px;
    border-radius: 15px;
}
.banner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background-color: var(--highlight-color);
    position: relative;
}
.banner-text,
.line {
    background-color: #000;
}
.lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 500px;
    position: absolute;
}
.line {
    height: 12px;
}
.left-lines {
    left: 0;
}
.right-lines {
    right: 0;
}
.banner-text {
    color: #fff;
    font-size: 30px;
    padding: 10px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 1;
}
#card-title-out,
.modal-backdrop {
    display: none;
}
.list-conditions {
    color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
}
.list-conditions a {
    color: #fff;
    text-decoration: underline;
}
.list-conditions a:hover {
    color: #fff;
}
.modal {
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-dialog {
    margin: 1.75rem auto;
    pointer-events: auto;
}
.modal-content {
    position: relative;
    background-color: #fff;
    pointer-events: auto;
}
.form-control {
    pointer-events: auto !important;
}
.alert {
    margin-bottom: 1rem;
}
.img-full {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .card-content h2,
    .card-content p {
        display: inline-block;
        text-align: left;
    }
    #card-title-out,
    .card-content {
        text-align: center;
    }
    .services-banner .line-bottom-right,
    .services-banner .line-top-right,
    .services-banner::after,
    .services-banner::before {
        width: 100px;
    }
    .services-text {
        font-size: 90px;
    }
    .card-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #ddd;
        padding: 20px;
        border-radius: 10px;
        max-width: 800px;
        width: 100%;
    }
    .card-content h2 {
        order: 1;
        margin-bottom: 10px;
    }
    .card-content p {
        max-width: 100%;
    }
    #card-title,
    .btn-schedule {
        display: none;
    }
    #card-title-out {
        display: block;
        background-color: var(--black-color);
        color: var(--white-color);
        padding: 10px 15px;
        border-radius: 10px;
        margin-bottom: 25px;
        font-family: var(--primary-font);
        font-weight: 700;
    }
    .banner-container {
        height: 2vh;
        padding: 35px;
        background-color: #f1f1f1;
        border-radius: 15px;
    }
    .banner-text {
        font-size: 40px;
        padding: 8px 30px;
    }
    .line {
        height: 0;
    }
    .container-border {
        min-height: 160px; /* Altura más pequeña para tablets */
    }
    .header {
        background: url("/front/images/phone/topc.webp") center center/cover
            no-repeat;
        padding-bottom: 53%;
    }
    .border-image {
        width: 50vh; /* Tamaño más pequeño para móviles */
        height: auto;
    }
    .image-container {
        width: 250px;
        height: 100px;
    }
}

/* Nueva media query para resolución 540px */
@media (max-width: 540px) {
    .container-border {
        min-height: 140px;
        
    }

    .header {
        background: url("/front/images/phone/topc.webp") center center no-repeat;
        background-size: cover;
        padding-bottom: 50%;
    }

    .services-text {
        font-size: 28px;
    }

    .banner-container {
        height: 2.5vh;
        padding: 35px;
    }

    .banner-text {
        font-size: 32px;
    }
}
@media (max-width: 480px) {
    .services-text {
        font-size: 24px;
    }
    .btn-schedule {
        display: none;
    }
    .banner-container {
        height: 2vh;
        width: fit-content;
        padding: 35px;
    }
    .banner-text {
        font-size: 28px;
        padding: 8px 30px;
    }
    .lines {
        display: none;
    }
    .container-border {
        min-height: 120px;
        width: 100%;
    }

    .header {
        position: relative;
        width: 100%;
        height: 100%;
        background: url("/front/images/phone/topc.webp") center center
            no-repeat;
        background-size: cover; /* Cambiado de 'auto' a 'cover' */
        min-height: 120px;
        padding-bottom: 52.95%;
    }
    .border-imagen {
        width: 100%;
        height: auto;
    }
}
/* Para pantallas muy pequeñas */
@media (max-width: 320px) {
    .container-border {
        min-height: 100px;
    }

    .header {
        padding-bottom: 85%; /* Aumentado para pantallas más pequeñas */
    }
}
