/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 20px;
}

a {
    text-decoration: none;
    color: #3498db;
}

a:hover {
    color: #2c3e50;
}

ul {
    list-style: none;
    margin-top: 10px;
}

.site-header {
    padding-left: 20px;
}

.site-header, h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h1, .site-header {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 1.75rem;
    margin-top: 30px;
    text-align: left;
}

/* Estilos de contenedores */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto !important;
    padding: 30px;
    padding-bottom: 50px !important;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
}

.header {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.header .site-header {
    margin-bottom: 0;
}

ul li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

ul li:last-child {
    border-bottom: none;
}

ul li a {
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

ul li a:hover {
    background-color: #eaeaea;
}

/* Botones */
button, .button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: #2980b9;
}

/* Estilos para los detalles de la empresa */
.company-details {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fafafa;
}

.company-details p {
    font-size: 1.1rem;
    margin: 10px 0;
}

.company-details p span {
    font-weight: bold;
}

/* Estilos adaptables para pantallas pequeñas */
@media (max-width: 768px) {
    h1, .site-header {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 10px;
    }

    ul li a {
        padding: 8px;
    }

    .company-details {
        padding: 10px;
    }
}/* Estilos del menú superior */
.navbar {
    background-color: #2c3e50;
    width: 100%;
}

.navbar .menu {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;

}

.navbar .site-header a {
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: #fff;
    background-color: #2c3e50;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}


/* Ajustes de responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .navbar .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .navbar ul li a {
        padding: 10px;
        width: 100%;
        text-align: left;
    }
}


/* Hacer que la página ocupe todo el alto de la ventana */
html, body {
    height: 100%;
    margin: 0;
}

/* Contenedor principal para el contenido */
.container {
    flex: 1; /* Ocupa el espacio disponible, empujando el footer hacia abajo */
}

/* El body se comporta como un contenedor flexible */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Altura mínima de 100% del viewport height (vh) */
}

/* Estilos del footer */
.containerfooter {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
    bottom: 0;
}

.containerfooter p {
    margin: 0;
}

/* Contenedor del listado en forma de cuadrícula */
.grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 20px; /* Espacio entre los elementos */
    margin-top: 20px;
}

.grid-list-item {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #eceeef;
    border-radius: 10px;
    border: 1.5px solid #2c3e50;
    box-shadow: 4px 4px 0px 0px #2c3e50;
}

.grid-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.grid-list-item a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
}

.grid-list-item a:hover {
    color: #3498db;
}

/* Adaptar el grid a pantallas medianas y pequeñas */
@media (max-width: 1024px) {
    .grid-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .grid-list {
        grid-template-columns: 1fr; /* 1 columna en pantallas pequeñas */
    }
}


/* Hacer que el contenedor ocupe todo el ancho disponible */
.container {
    width: 100%; /* Cambiamos de max-width a 100% */
    padding: 0 20px; /* Añadimos algo de padding lateral para que no toque los bordes */
    margin: 0 auto; /* Centrado horizontal */
}

/* Contenedor del listado en forma de cuadrícula */
.grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual tamaño */
    gap: 20px; /* Espacio entre las columnas y filas */
    margin-top: 20px;
}

.grid-list-item {
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    background-color: #eceeef;
    border: 1px solid #d8e0e4;
}

.grid-list-item:hover {
    transform: translateY(-5px); /* Efecto de elevación al pasar el cursor */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.grid-list-item a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
    
}

.grid-list-item a:hover {
    color: #3498db;
}

/* Adaptar el grid a pantallas medianas (2 columnas) */
@media (max-width: 1024px) {
    .grid-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
    }
}

/* Adaptar el grid a pantallas pequeñas (1 columna) */
@media (max-width: 768px) {
    .grid-list {
        grid-template-columns: 1fr; /* 1 columna en pantallas pequeñas */
    }
}

/* Contenedor general de la página del negocio */
.business-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 20px;
    /*background-color: #eceeef;
    border-radius: 10px;
    border: 2px solid #2c3e50;
    box-shadow: 8px 8px 0px 0px #2c3e50;*/
    padding: 20px;
    border-radius: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    background-color: #eceeef;
    border: 1px solid #d8e0e4;
}

/* Encabezado del negocio */
.business-header {
    text-align: center;
    margin-bottom: 20px;
}

.business-header h1 {
    font-size: 38px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Tarjeta que contiene los detalles de la empresa */
.business-card {
    padding: 20px;
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Columna de la izquierda: Datos del negocio */
.business-info {
    font-size: 18px;
    color: #555;
    position: relative;
}

.business-info h2 {
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.business-info p {
    margin-bottom: 10px;
}

.business-info strong {
    color: #2c3e50;
}

.business-rating {
    font-size: 18px;
    color: #f39c12; /* Color dorado */
}

/* Botón de llamada */
.call-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgb(243, 243, 21);
    color: black;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.call-button:hover {
    background-color: #2980b9;
}

/* Columna de la derecha: Mapa */
.business-map {
    text-align: center;
    margin: 0px auto;
}

.business-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: #fff;
    margin-top: 50px;
    position: relative;
    width: 100%;
    bottom: 0;
}
/* Media query para pantallas móviles */
@media (max-width: 768px) {
    .business-card {
        grid-template-columns: 1fr; /* Apilar las columnas verticalmente */
    }

    .business-map {
        margin-top: 20px; /* Reducir el margen superior para el mapa */
    }
}


/* Contenedor de las empresas relacionadas */
.related-businesses {
    margin-top: 40px;
    text-align: center;
}

.related-businesses h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Grid para las empresas relacionadas */
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;

    
}

.business-item {
    padding: 20px;
    border-radius: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    background-color: #eceeef;
    border: 1px solid #d8e0e4;
    /*border-radius: 10px;
    border: 2px solid #2c3e50;
    box-shadow: 4px 4px 0px 0px #2c3e50;*/
}

.business-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.business-item p {
    margin-bottom: 10px;
}

/* Ajuste para pantallas pequeñas (mobile) */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilos para las migas de pan */
.breadcrumb {
    margin: 20px 0;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin-right: 5px;
    color: #555;
}

.boton-CTC{
    background-color: rgb(238, 238, 122);
    padding: 10px;
    color: black;
    border: 2px solid rgb(232, 232, 102);
    border-radius: 7px;
}

hr{
    margin-bottom: 20px;
}
/* Dashed border */
hr.dashed {
    border-top: 3px dashed #bbb;
  }
  
  /* Dotted border */
  hr.dotted {
    border-top: 3px dotted #bbb;
  }
  
  /* Solid border */
  hr.solid {
    border-top: 3px solid #bbb;
  }
  
  /* Rounded border */
  hr.rounded {
    border-top: 8px solid #bbb;
    border-radius: 5px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

table th, table td {
    padding: 12px 15px;
}

table th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
}

table td {
    background-color: #f2f2f2;
}

table tr:nth-child(even) td {
    background-color: #e9e9e9;
}

table tr:hover td {
    background-color: #dae7f5;
}

table, th, td {
    border: 0px ;
}

table th:first-child {
    border-top-left-radius: 8px;
}

table th:last-child {
    border-top-right-radius: 8px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}












/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #e0f7fa; /* Color de fondo más claro */
    color: #34495e; /* Color de texto más oscuro */
    line-height: 1.6;
    margin: 20px;
}

a {
    text-decoration: none;
    color: #1abc9c; /* Verde turquesa para los enlaces */
}

a:hover {
    color: #16a085; /* Tonalidad más oscura de verde */
}

ul {
    list-style: none;
    margin-top: 10px;
}

.site-header {
    
}

.site-header, h1, h2 {
    color: #34495e;
    margin-bottom: 20px;
}

h1, .site-header {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 1.75rem;
    margin-top: 30px;
    text-align: left;
}

/* Estilos de contenedores */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto !important;
    padding: 30px;
    padding-bottom: 50px !important;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    
    background-color: #16a085; /* Cambiado el color del encabezado */
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.header .site-header {
    margin-bottom: 0;
}

ul li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

ul li:last-child {
    border-bottom: none;
}

ul li a {
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

ul li a:hover {
    background-color: #b2ebf2; /* Color de hover más claro */
}

/* Botones */
button, .button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: #16a085;
}

/* Estilos para los detalles de la empresa */
.company-details {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #e0f7fa; /* Color de fondo más suave */
}

.company-details p {
    font-size: 1.1rem;
    margin: 10px 0;
}

.company-details p span {
    font-weight: bold;
}

/* Estilos del menú superior */
.navbar {
    background-color: #16a085;
    width: 100%;
}

.navbar .menu {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #16a085;
}

.navbar .site-header a {
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
}

.navbar ul li a {
    color: #fff;
    background-color: #16a085;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

/* Estilos del footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #34495e; /* Oscurecido para contraste */
    color: #fff;
    margin-top: 50px;
    position: relative;
    width: 100%;
    bottom: 0;
}

