body {
    font-family: Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-image: url('fondo1.jpg');
    color: #333;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
}

header {
    background-color: #2e3643;
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    padding: 0 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.breadcrumb {
    list-style: none;
    display: flex;
    padding: 20px;
    background: #ffffff;
    border-radius: 5px;
    font-size: 17px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: "Roboto Mono", monospace;
}

.breadcrumb li {
    margin: 0 8px;
}

.breadcrumb li a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #1e40af;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #6b7280;
}

.business-details {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    padding: 2rem;
    margin-bottom: 2rem;
}

.business-details h2 {
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.details-container {
    display: flex;
    justify-content: space-between;
    gap: 2.3rem;
}

.left-details,
.right-details {
    flex: 1;
}

.left-details p {
    margin: 0.5rem 0;
}

.right-details h3 {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.right-details table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
}

.right-details th,
.right-details td {
    padding: 5px;
    border: 1px solid #ddd;
}

.right-details th {
    background-color: #2e3643;
    color: #ffffff;
}

.right-details td {
    background-color: #f9f9f9;
}
.red-asterisk {
    color: red;
}
.image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    object-fit: cover;
    border-radius: 12px;
}

.slider-image.active {
    opacity: 1;
}

footer {
    text-align: center;
    background-color: white;
    position: static;
    bottom: 0;
    width: 100%;
    height: 5rem;
    margin-top: 2%;
}

footer p {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
}

footer img {
    height: 50px;
    object-fit: cover;
}
/* Estilo para el botón */
.back-to-top {
    text-align: center; /* Centra el botón */
    margin-top: 20px; /* Espacio desde el contenido */
}

.button {
    padding: 10px 20px;
    background-color: #007BFF; /* Color de fondo del botón */
    color: white; /* Color del texto */
    text-decoration: none; /* Elimina el subrayado */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 16px;
    transition: background-color 0.3s; /* Efecto de transición */
}

.button:hover {
    background-color: #0056b3; /* Color cuando el cursor pasa sobre el botón */
}

@media screen and (max-width: 480px) {
    body {
        margin: 0;
        padding: 0;
        background-image: url("fondo_movil.webp");
        background-size: cover;  /* Asegura que la imagen de fondo cubra toda el área */
        background-position: center;  /* Centra la imagen de fondo */
        height: 100%;
    }
    main, header h1 {
        padding: 1.2rem;
    }
    .business-details {
        padding: 1.5rem;
    }
    .details-container {
        display: block; /* Cambio aplicado: apila los elementos verticalmente */
    }
    .left-details,
    .right-details {
        flex: none; /* Cambio aplicado: elimina la división en columnas */
        width: 100%; /* Cambio aplicado: ocupa todo el ancho */
    }
    .image-slider {
        aspect-ratio: 4/3;
    }
    footer {
        text-align: center;
        background-color: white;
        position: static;
        bottom: 0;
        width: 100%;
        height: 6rem;
    }
    footer p {
        font-size: 12px;
        font-weight: bold;
        margin: 0;
        color: rgb(0, 0, 0);
        font-family: Arial, sans-serif;
    }
    footer img {
        content: url("../footer-mob.webp"); /* Imagen específica para móviles */
        max-height: 100px; /* Ajusta la altura de la imagen en dispositivos móviles */
        width: 100%; /* Asegura que la imagen ocupe todo el ancho del contenedor */
        height: auto; /* Mantiene la proporción de la imagen */
        object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
        position: static;
    }
    .button {
        margin-bottom: 40px; /* Asegurarse que haya suficiente espacio debajo */
        width: 100%; /* Hacer que el botón ocupe todo el ancho disponible */
    }
}