/* Base styles for footer */
.footer {
    background-color: rgba(235, 235, 235, 0.9);
    padding: 2rem 0;
    color: #c41e3a;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Logo styles */
.footer-logo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-logo-image {
    width: 220px;
    height: auto;
}

/* Address and contact styles */
.footer-address,
.footer-address_office,
.footer-contact {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 1.1rem; /* Increased text size */
}

.footer-contact ,
.footer-address,
.footer-address_office {
    align-items: flex-start;
}

.footer-contact {

    margin-right: 3rem; /* Ajusta este valor para mover la sección más a la derecha */
}

.footer-address p,
.footer-address_office p,
.footer-contact p {
    margin: 0.5rem 0;
    font-size: 1rem; /* Increased link text size */
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

/* Alinear Phone y E-mail con Dispatch */
.footer-contact p {
    text-align: right;
}

.footer-contact p:nth-child(1),
.footer-contact p:nth-child(3) {
    padding-right: 1rem; /* Ajusta este valor para alinear Phone y E-mail con Dispatch */
}

/* Button styles */
.footer-button {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.be-our-customer {
    background-color: transparent;
    color: #000000;
    border: 2px solid #c41e3a;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem; /* Increased button text size */
}

.be-our-customer:hover {
    background-color: #c41e3a;
    color: #fff;
}

/* Links and images */
.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
}

.footer-image {
    width: 100px; /* Increased from 100px */
    height: auto;
    transition: transform 0.3s ease;
}

.isn-image {
    width: 50px; /* Ajusta el ancho */
    height: 50px; /* Ajusta la altura */
    object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
}

.footer-image:hover {
    transform: scale(1.1);
}

.contact-link {
    color: #c41e3a;
    text-decoration: none;
    font-size: 1.1rem; /* Increased link text size */
}

.contact-link:hover {
    text-decoration: underline;
}

/* Desktop styles (≥769px) */
@media (min-width: 769px) {
    .footer-logo {
        margin-left: -1.5rem;
    }

    .footer-address {
        margin-left: 19.5rem;
    }

    .footer-address_office {
        margin-left: 60px;
    }

    .footer-contact {
        margin-right: 3rem; /* Ajusta este valor según sea necesario */
    }
}

/* Mobile styles (≤768px) */
@media (max-width: 768px) {
    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-content,
    .footer-info,
    .footer-logo,
    .footer-address,
    .footer-address_office,
    .footer-contact,
    .footer-links {
        margin: 0;
        padding: 0;
    }

    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo,
    .footer-address,
    .footer-address_office,
    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-image {
        margin-bottom: 1rem;
    }

    .isn-image {
        width: 50px; /* Ajustamos el tamaño de ISN en móviles */
        height: 50px; /* Altura fija para mantener consistencia */
    }

    .footer-button {
        margin: 1rem 0;
    }
}

/* Mobile and Tablet styles (≤1024px) */
@media (max-width: 1024px) {
    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-content,
    .footer-info,
    .footer-logo,
    .footer-address,
    .footer-address_office,
    .footer-contact,
    .footer-links {
        margin: 0;
        padding: 0;
    }

    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo,
    .footer-address,
    .footer-address_office,
    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-image {
        margin-bottom: 1rem;
    }

    .isn-image {
        width: 50px;
        height: 50px;
    }

    .footer-button {
        margin: 1rem 0;
    }
}