* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    padding-bottom: 60px; /* Espacio para la barra de navegaciÃ³n inferior */
}

/* Cabecera */
header {
    background-color: #d32f2f;
    color: white;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo {
    height: 40px;
}

.menu-icon {
    font-size: 24px;
}

/* Carrusel */
.carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) { /* Para m¨®viles */
    .carousel {
        height: 200px; /* Reducir altura en m¨®viles */
    }
}

@media (min-width: 1024px) { /* Para PC */
    .carousel {
        height: 700px;
    }
}


.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;  /* Ajusta la imagen sin recortarla */
    background-position: center;  /* Centra la imagen */
    background-repeat: no-repeat; /* Evita la repetici¨®n */
    position: relative;
    background-color: #897774; /* Fondo s¨®lido en caso de que haya espacios vac¨ªos */
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    font-size: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.whatsapp-button button {
    background-color: #25D366; /* Color verde de WhatsApp */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.whatsapp-button button:hover {
    background-color: #128C7E; /* Color de hover de WhatsApp */
}


.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* CategorÃ­as */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 15px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: #ff6659;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.category-icon i {
    color: white;
    font-size: 24px;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
}

/* SecciÃ³n de contenido */
.content-section {
    padding: 20px 15px;
    background-color: white;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d32f2f;
}

.places-list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.place-card {
    min-width: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    scroll-snap-align: start;
}

.place-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.place-info {
    padding: 12px;
}

.place-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.place-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.place-location {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.place-location i {
    margin-right: 5px;
    color: #d32f2f;
}

/* Mapa */
#map {
    height: 300px;
    width: 100%;
    margin: 15px 0;
}

/* Barra de navegaciÃ³n inferior */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #666;
}

.nav-item.active {
    color: #d32f2f;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

/* Estilo para iOS */
.ios-style {
    --border-radius: 10px;
    --button-color: #007aff;
}

.ios-style .place-card {
    border-radius: var(--border-radius);
}

.ios-style .category-icon {
    background-color: var(--button-color);
}

/* Estilo para Android */
.android-style {
    --border-radius: 4px;
    --button-color: #d32f2f;
}

.android-style .place-card {
    border-radius: var(--border-radius);
}

.android-style .category-icon {
    background-color: var(--button-color);
}

/* Botones */
.button {
    padding: 10px 15px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.ios-style .button {
    border-radius: 20px;
    background-color: var(--button-color);
}

/* Utilidades */
.padding {
    padding: 15px;
}

/* Ripple effect (para Android) */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}




/*############################################*/
    /* Estilos hover para los marcadores personalizados */
    .custom-marker {
        position: relative;
        transition: transform 0.3s ease;
    }
    
    .custom-marker:hover {
        transform: scale(1.25);
        z-index: 1000;
    }
    
    .marker-pin {
        width: 40px;
        height: 60px;
        position: relative;
    }
    
    .marker-pin svg {
        width: 100%;
        height: 100%;
    }
    
    .marker-logo {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
    }
    
    .popup-content {
        padding: 10px;
        text-align: center;
    }
    
    .popup-content img {
        max-width: 80px;
        max-height: 80px;
        margin-bottom: 10px;
    }
    
    .popup-title {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .popup-address {
        font-size: 12px;
        color: #666;
    }
    
    
    
    
    
    /*#####################################*/
    /* Estilos compactos para leyenda de mapa */
    .legend {
        background-color: rgba(255, 255, 255, 0.8);
        padding: 8px 10px;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        font-size: 12px;
        line-height: 1.3;
        color: #333;
        max-width: 180px;
    }

    .legend-item {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
    }

    .legend-item:last-child {
        margin-bottom: 0;
    }

    .legend-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .legend-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .legend-item span {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/*#############################################*/
/*ESTILOS PARA LA TABLA EN LA PAGINA view.php*/



    
    /* Contenedor de la tabla */
    .table-container {
        max-width: 100%;
        overflow-x: auto;
        margin: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        background: white;
    }
    
    /* Estilos de la tabla */
    table {
        width: 100%;
        border-collapse: collapse;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 0.9em;
    }
    
    /* Cabecera de la tabla */
    thead {
        background-color: #3498db;
        color: white;
        position: sticky;
        top: 0;
    }
    
    th {
        padding: 15px;
        text-align: left;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 0.8em;
    }
    
    /* Filas de la tabla */
    tbody tr {
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.2s;
    }
    
    tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }
    
    tbody tr:hover {
        background-color: #e8f4fc;
    }
    
    td {
        padding: 12px 15px;
        vertical-align: middle;
    }
    
    /* Estilo para logos */
    td img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background: white;
        padding: 3px;
        border: 1px solid #e0e0e0;
    }
    
    /* Estilos para estados */
    .estado-activo {
        color: #27ae60;
        font-weight: 600;
    }
    
    .estado-inactivo {
        color: #e74c3c;
        font-weight: 600;
    }
    
    /* Estilos para precios */
    .precio {
        font-weight: 600;
        color: #2c3e50;
    }
    
    /* Mensaje cuando no hay datos */
    .no-data {
        text-align: center;
        padding: 30px;
        color: #7f8c8d;
        font-style: italic;
        background: #f8f9fa;
        border-radius: 8px;
        margin: 20px;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        th, td {
            padding: 8px 10px;
            font-size: 0.8em;
        }
        
        td img {
            width: 40px;
            height: 40px;
        }
    }
    
    

